2009-04-03 00:50:43 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2009-08-29 10:00:47 -07:00
|
|
|
<? foreach ($album->children(25, $offset) as $child): ?>
|
2009-10-28 23:34:53 -06:00
|
|
|
<li class="g-organize-microthumb-grid-cell g-left" ref="<?= $child->id ?>">
|
2009-11-15 22:55:09 -07:00
|
|
|
<div id="g-organize-microthumb-<?= $child->id ?>"
|
2009-10-04 00:27:22 -06:00
|
|
|
class="g-organize-microthumb <?= $child->is_album() ? "g-album" : "g-photo" ?>">
|
|
|
|
|
<?= $child->thumb_img(array("class" => "g-thumbnail", "ref" => $child->id), 90, true) ?>
|
2009-11-15 22:55:09 -07:00
|
|
|
<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>
|
2009-04-03 00:50:43 +00:00
|
|
|
<? 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() {
|
2009-09-04 21:27:23 -07:00
|
|
|
$.get("<?= url::site("organize/album/$album->id/" . ($offset + 25)) ?>",
|
|
|
|
|
{},
|
|
|
|
|
function(data) {
|
2009-10-04 00:27:22 -06:00
|
|
|
$("#g-organize-microthumb-grid").append(data.grid);
|
2009-09-04 21:27:23 -07:00
|
|
|
$.organize.set_handlers();
|
|
|
|
|
},
|
|
|
|
|
"json");
|
2009-08-06 21:36:17 -07:00
|
|
|
}, 50);
|
2009-08-05 10:26:11 -07:00
|
|
|
</script>
|
2009-08-06 21:36:17 -07:00
|
|
|
<? endif ?>
|