mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-03 02:09:22 -04:00
* Clean up naming conventions for variables in the controller so that we specifically refer to albums with $album_id, etc. * Move complexity for drawing tree out of the controller and into the view. * Simplify task definitions to get rid of extraneous text * Change __PLACEHOLDERS__ to clearly define which is the album and which is the item that we're moving before/after * Remove as many CSS ids as we can from the tree view to keep things simple
23 lines
730 B
PHP
23 lines
730 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<? foreach ($album->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 ($album->children_count() > $offset): ?>
|
|
<script>
|
|
setTimeout(function() {
|
|
$.get("<?= url::site("organize/content/$album->id/" . ($offset + 25)) ?>",
|
|
function(data) {
|
|
$("#gMicroThumbGrid").append(data);
|
|
$.organize.set_handlers();
|
|
}
|
|
);
|
|
}, 50);
|
|
</script>
|
|
<? endif ?>
|