<?php
foreach ($points as $point) {
	?>

	<h2><?= $point->name ?></h2>
	<img src="<?= $point->getImg('middle') ?>" style="float: left; margin: 0 10px 10px 0; display: block; width: 300px;"/>
	<img src="http://chart.apis.google.com/chart?cht=qr&chs=150x150&chld=H|0&chl=http://wikipoints.ru/?point=<?= $point->id ?>" style="float: right; margin: 0 0 10px 10px; display: block;"/>
	<?= $point->description ?>

	<div class="coords-container">
		http://wikipoints.ru/?point=<?= $point->id ?>
		&nbsp;&nbsp;/&nbsp;&nbsp;
		<nobr>
			<?= $point->lat > 0 ? 'N' : 'S' ?><?= number_format(abs($point->lat), 5, '.', '') ?>°
			<?= $point->lng > 0 ? 'E' : 'W' ?><?= number_format(abs($point->lng), 5, '.', '') ?>°
		</nobr>
		&nbsp;&nbsp;/&nbsp;&nbsp;
		<nobr>
			<?= $point->lat > 0 ? 'N' : 'S' ?><?= Coord::dergeeToMinute($point->lat) ?>
			<?= $point->lng > 0 ? 'E' : 'W' ?><?= Coord::dergeeToMinute($point->lng) ?>
		</nobr>
	</div>

	<hr style="clear: both;"/>
	<?php
}
?>