wikipoints/ground/views/point.php

34 lines
959 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<br/><br/>
<h3><?= $point->name ?></h3>
Координаты:&nbsp;
<nobr>
<?= $point->lat > 0 ? 'N' : 'S' ?><?= $point->lat > 0 ? $point->lat : (-1 * $point->lat) ?>°
<?= $point->lng > 0 ? 'E' : 'W' ?><?= $point->lng > 0 ? $point->lng : (-1 * $point->lng) ?>°
</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>
&nbsp;&nbsp;/&nbsp;&nbsp;
<a href="/?point=<?= $point->id ?>">На карте</a>
<br/><br/>
<?= $point->descriptionHtml ?>
<br/>
<?php if ($point->img): ?>
<div style="text-align: center">
<img src="<?= $point->img ?>" style="max-width: 800px;">
</div>
<?php endif; ?>
<?php if ($photos): ?>
<div style="text-align: center">
<?php foreach ($photos as $photo): ?>
<img src="/photos/<?= $photo->name ?>" style="max-width: 800px;">
<?php endforeach; ?>
</div>
<?php endif; ?>