summaryrefslogtreecommitdiff
path: root/modules/organize/views/organize_thumb_grid.html.php
blob: 671e0ce498a7604bfedd5820ca96503a98f9875e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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 ?>