Files
gallery3/modules/organize/views/organize_thumb_grid.html.php
T

25 lines
969 B
PHP
Raw Normal View History

<?php defined("SYSPATH") or die("No direct script access.") ?>
2009-08-29 10:00:47 -07:00
<? 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>
2009-08-28 10:48:47 -07:00
</div>
2009-08-06 21:36:17 -07:00
</li>
<? endforeach ?>
2009-08-06 21:36:17 -07:00
2009-08-29 10:00:47 -07:00
<? if ($album->children_count() > $offset): ?>
2009-10-28 22:52:17 -06:00
<script type="text/javascript">
2009-08-06 21:36:17 -07:00
setTimeout(function() {
$.get("<?= url::site("organize/album/$album->id/" . ($offset + 25)) ?>",
{},
function(data) {
$("#g-organize-microthumb-grid").append(data.grid);
$.organize.set_handlers();
},
"json");
2009-08-06 21:36:17 -07:00
}, 50);
</script>
2009-08-06 21:36:17 -07:00
<? endif ?>