if (isset($_GET['ajax'])) {
if ($theme->page_subtype == "search") {
$v = new View("thumbs.html");
$v->children = $content->items;
print $v;
die(0);
}
echo new View("thumbs.html");
die(0);
}
?>
if ($theme->page_subtype == "photo"):
foreach (end($parents)->viewable()->children() as $i => $child)
if(!($child->is_album() || $child->is_movie()))
if($child->url() == $_SERVER['REQUEST_URI']) {
?>
html_attributes() ?> xml:lang="en" lang="en">
if(!empty($parents)): ?>
foreach ($parents as $parent): ?>
if (!module::get_var("th_pear4gallery3", "show_breadcrumbs")) $parent = end($parents); ?>
if (!module::get_var("th_pear4gallery3", "show_breadcrumbs")) break; ?>
endforeach ?>
elseif (!($theme->item() && $theme->item()->id == item::root()->id)): ?>
endif ?>
if ($theme->item()): ?>
= html::purify(text::limit_chars($theme->item()->title, 40)) ?>
if (!module::get_var("th_pear4gallery3", "hide_item_count")): ?>
(= count($theme->item()->children()) ?>)
endif ?>
else: ?>
if ($page_title): ?>
= html::purify(text::limit_chars($page_title, 40)) ?>
else: ?>
if ($theme->tag()): ?>
= t("Photos tagged with %tag_title", array("tag_title" => $theme->tag()->name)) ?>
else: /* Not an item, not a tag, no page_title specified. Help! */ ?>
= html::purify(text::limit_chars(item::root()->title, 40)) ?>
endif ?>
endif ?>
endif ?>
= $theme->messages() ?>
= $content ?>
endif ?>