if ($theme->desc_allowbbcode): ?>
$_description = $theme->bb2html($item->description, 1); ?>
else: ?>
$_description = nl2br(html::purify($item->description)); ?>
endif; ?>
if ($theme->is_photometa_visible): ?>
$_description .= '
$_title = $theme->bb2html(html::purify($item->title), 1); ?>
= $_title ?>
= $theme->add_paginator("top"); ?>
= $theme->photo_top() ?>
if (($theme->photo_descmode == "top") and ($_description)): ?>
endif; ?>
= $theme->resize_top($item) ?>
if (access::can("view_full", $item)): ?>
$_url = $item->file_url() . '" class="g-sb-preview" '; ?>
else: ?>
$_url = '#"'; ?>
endif; ?>
$_resizewidth = $item->resize_width; ?>
$siblings = $item->parent()->children(); ?>
$siblings_count = count($siblings) - 1; ?>
= $theme->resize_bottom($item) ?>
if (($theme->photo_descmode == "bottom") and ($_description)): ?>
endif; ?>
= $theme->add_paginator("bottom"); ?>
= $theme->photo_bottom() ?>