Thumbs navigator for Fotorama

This commit is contained in:
Krivchikov Dmitry 2015-03-07 11:17:22 +03:00
parent 1b0accdddb
commit f3e18468a0
1 changed files with 36 additions and 47 deletions

View File

@ -20,25 +20,19 @@
<div style="text-align: justify;"> <div style="text-align: justify;">
<?php <?php
if (count($text) > 4) if (count($text) > 4) {
{ for ($index = 0; $index < 4; $index++) {
for ($index = 0; $index < 4; $index++)
{
print $text[$index]; print $text[$index];
} }
} else } else {
{
print $point->descriptionHtml; print $point->descriptionHtml;
} }
?> ?>
<?php if ($photos || $point->img): ?> <?php if ($photos || $point->img): ?>
<br/><br/> <br/><br/>
<table border="0"> <div style="text-align: center;">
<tr> <div class="fotorama" data-width="555" data-height="450" data-loop="true" data-nav="thumbs" data-thumbwidth="100">
<td width="33%"></td>
<td width="34%">
<div class="fotorama" data-width="555" data-height="450" data-loop="true">
<?php if ($point->img): ?> <?php if ($point->img): ?>
<img data-thumb="<?= $point->img ?>" src="<?= $point->img ?>"> <img data-thumb="<?= $point->img ?>" src="<?= $point->img ?>">
<?php endif; ?> <?php endif; ?>
@ -47,22 +41,17 @@
<img data-thumb="/photos/small/<?= $photo->name ?>" src="/photos/middle/<?= $photo->name ?>"> <img data-thumb="/photos/small/<?= $photo->name ?>" src="/photos/middle/<?= $photo->name ?>">
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>
<span> <span data-thumb="/img/mapThumb.png">
<div id="map" style="width: 100%; height: 100%; position: static; display: block; -webkit-filter: grayscale(40%);"></div> <div id="map" style="width: 100%; height: 100%; position: static; display: block; -webkit-filter: grayscale(40%);"></div>
</span> </span>
</div> </div>
</td> </div>
<td width="33%"></td>
</tr>
</table>
<br/><br/> <br/><br/>
<?php endif; ?> <?php endif; ?>
<?php <?php
if (count($text) > 3) if (count($text) > 3) {
{ for ($index = $index; $index < count($text); $index++) {
for ($index = $index; $index < count($text); $index++)
{
print $text[$index] . ' '; print $text[$index] . ' ';
} }
} }