mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-30 16:29:10 -04:00
Organize_Controller: * Remove unnecessary constants * Rename index() to dialog() * Simplify _get_micro_thumb_grid organize.js: * Move sizing code in here from organize_dialog.html.php organize_dialog.html.php: * Move CSS and JS links in here so that we only load them when we need them. * Move sizing code into organize.js organize_thumb_grid.html.php: * Move pagination logic in here, since it's view centric * Collapse the css class determination code and inline it
21 lines
625 B
PHP
21 lines
625 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<? foreach ($item->children(25, $offset) as $child): ?>
|
|
<li id="gMicroThumb_<?= $child->id ?>"
|
|
class="gMicroThumb <?= $child->is_album() ? "gAlbum" : "gPhoto" ?>"
|
|
ref="<?= $child->id ?>">
|
|
<?= $child->thumb_img(array("class" => "gThumbnail"), 90, true) ?>
|
|
</li>
|
|
<? endforeach ?>
|
|
|
|
<? if ($item->children_count() > $offset): ?>
|
|
<script>
|
|
setTimeout(function() {
|
|
$.get("<?= url::site("organize/content/$item->id/" . ($offset + 25)) ?>",
|
|
function(data) {
|
|
$("#gMicroThumbGrid").append(data);
|
|
}
|
|
);
|
|
}, 50);
|
|
</script>
|
|
<? endif ?>
|