/* Placeholder for infromation in mosaic view. */ ?>
|
if (count($children)): ?>
foreach ($children as $i => $child): ?>
$item_class = "g-photo"; ?>
if ($child->is_album()): ?>
$item_class = "g-album\" \"onclick=\"window.location='".$child->url()."/'+getAlbumHash(skimimg);"; ?>
endif ?>
$img_class = "g-thumbnail"; ?>
if ($child->is_photo()): ?>
$img_class = "g-thumbnail p-photo"; ?>
endif ?>
= $theme->thumb_top($child) ?>
if ($child->is_album()): ?>
endif ?>
if ($child->has_thumb()): ?>
= $child->thumb_img(array("class" => $img_class, "id" => "thumb_$child->id", "style" => "width: 200px; height 200px;")) ?>
endif ?>
// Begin skimming
if($child->is_album()):
$granchildren = $child->viewable()->children();
$offset = 0;
$step = round(200/count($granchildren));
foreach ($granchildren as $i => $granchild):?>
if ($child->has_thumb()): ?>
= $granchild->thumb_img(array("style" => "display: none;")) ?>
endif ?>
$offset+=$step;
endforeach;
endif;
// End skimming // ?>
= $theme->thumb_bottom($child) ?>
= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
endforeach ?>
else: ?>
if ($user->admin || access::can("add", $item)): ?>
$addurl = url::site("uploader/index/$item->id") ?>
= html::purify($child->title) ?> |