mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-27 18:24:03 -04:00
- Make sure the thumbgrid will utoscroll when dragging - And an ordinal attribute to the thumbnail when generated, based on the current sort order of the album.
13 lines
521 B
PHP
13 lines
521 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<? foreach ($children as $i => $child): ?>
|
|
<? $item_class = "gPhoto"; ?>
|
|
<? if ($child->is_album()): ?>
|
|
<? $item_class = "gAlbum"; ?>
|
|
<? endif ?>
|
|
<li id="thumb_<?= $child->id ?>" class="gMicroThumbContainer" ref="<?= $child->id ?>" ordinal="<?= $offset + $i ?>">
|
|
<div id="gMicroThumb-<?= $child->id ?>" class="gMicroThumb <?= $item_class ?>">
|
|
<?= $child->thumb_tag(array("class" => "gThumbnail"), $thumbsize, true) ?>
|
|
</div>
|
|
</li>
|
|
<? endforeach ?>
|