mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 11:29:24 -04:00
25 lines
969 B
PHP
25 lines
969 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<? foreach ($album->children(25, $offset) as $child): ?>
|
|
<li class="g-organize-microthumb-grid-cell g-left ui-state-default" ref="<?= $child->id ?>">
|
|
<div id="g-organize-microthumb-<?= $child->id ?>"
|
|
class="g-organize-microthumb <?= $child->is_album() ? "g-album" : "g-photo" ?> ui-state-active">
|
|
<?= $child->thumb_img(array("class" => "g-thumbnail", "ref" => $child->id), 90, true) ?>
|
|
<span<?= $child->is_album() ? " class=\"ui-icon ui-icon-note\"" : "" ?>></span>
|
|
</div>
|
|
</li>
|
|
<? endforeach ?>
|
|
|
|
<? if ($album->children_count() > $offset): ?>
|
|
<script type="text/javascript">
|
|
setTimeout(function() {
|
|
$.get("<?= url::site("organize/album/$album->id/" . ($offset + 25)) ?>",
|
|
{},
|
|
function(data) {
|
|
$("#g-organize-microthumb-grid").append(data.grid);
|
|
$.organize.set_handlers();
|
|
},
|
|
"json");
|
|
}, 50);
|
|
</script>
|
|
<? endif ?>
|