Files
gallery3/modules/organize/views/organize_thumb_grid.html.php
Tim Almdal 95b26db82c 1) Simplify the layout of the organize dialog content.
2) Use CSS to layout the thmbnail grid to the full dialog size.  Fixes ticker #848.
3) Separate css that can be themed into organize_theme.css.  This isolates the themed components into a separate file for easy of overriding by a theme.
2010-02-04 08:23:02 -08:00

23 lines
872 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<? foreach ($album->children(25, $offset) as $child): ?>
<div class="g-organize-microthumb-grid-cell g-left ui-state-default ui-state-active <?= $child->is_album() ? "g-album" : "g-photo" ?>"
ref="<?= $child->id ?>">
<?= $child->thumb_img(array("class" => "g-thumbnail", "ref" => $child->id), 90, true) ?>
<span<?= $child->is_album() ? " class=\"ui-icon ui-icon-note\"" : "" ?>></span>
</div>
<? endforeach ?>
<? if ($album->children_count() > $offset): ?>
<script type="text/javascript">
setTimeout(function() {
$.get("<?= url::site("organize/album/$album->id/" . ($offset + 25)) ?>",
{},
function(data) {
$("#g-organize-microthumb-grid").append(data.grid);
$.organize.set_handlers();
},
"json");
}, 50);
</script>
<? endif ?>