mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 19:39:16 -04:00
23 lines
718 B
PHP
23 lines
718 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<? foreach ($item->children(25, $offset) as $child): ?>
|
|
<li class="gMicroThumbGridCell" ref="<?= $child->id ?>">
|
|
<div id="gMicroThumb_<?= $child->id ?>"
|
|
class="gMicroThumb <?= $child->is_album() ? "gAlbum" : "gPhoto" ?>">
|
|
<?= $child->thumb_img(array("class" => "gThumbnail", "ref" => $child->id), 90, true) ?>
|
|
</div>
|
|
</li>
|
|
<? endforeach ?>
|
|
|
|
<? if ($item->children_count() > $offset): ?>
|
|
<script>
|
|
setTimeout(function() {
|
|
$.get("<?= url::site("organize/content/$item->id/" . ($offset + 25)) ?>",
|
|
function(data) {
|
|
$("#gMicroThumbGrid").append(data);
|
|
$.organize.set_handlers();
|
|
}
|
|
);
|
|
}, 50);
|
|
</script>
|
|
<? endif ?>
|