desc_allowbbcode): $_description = $theme->bb2html($item->description, 1); else: $_description = nl2br(html::purify($item->description)); endif; if ($theme->is_photometa_visible): $_description .= ''; endif; switch ($theme->photo_popupbox): case "preview": $include_list = FALSE; $include_single = TRUE; break; case "none": $include_list = FALSE; $include_single = FALSE; break; default: $include_list = TRUE; $include_single = TRUE; break; endswitch; ?>
get_item_title($item, TRUE); ?>

add_paginator("top", FALSE); ?> photo_top() ?> photo_descmode == "top") and ($_description)): ?>
resize_top($item) ?> resize_width; // rWatcher Edit: // Original Line: $siblings = $item->parent()->children(); $siblings = ""; if (isset($theme->dynamic_siblings)) { $siblings = $theme->dynamic_siblings; } else { $siblings = $item->parent()->children(); } // End rWatcher Edit. ?>
\n"; $script .= "$(document).ready(function() {\n"; $script .= " if (document.images) {\n"; for ($i = 0; ($i <= count($siblings) - 1); $i++): if ($siblings[$i]->rand_key == $item->rand_key): ?> " title="get_item_title($item); ?>" href="file_url() : $item->resize_url(); ?>"> resize_img(array("id" => "g-item-id-{$item->id}", "class" => "g-resize", "alt" => $_title)) ?> resize_url() . "\";\n"; endif; if ($i > 0): $script .= " var image_preload_p = new Image();\n image_preload_p.src = \"" . $siblings[$i-1]->resize_url() . "\";\n"; endif; else: if ($include_list): ?> is_album()): ?> file_url() : $siblings[$i]->resize_url(); ?>">  \n"; ?> photo_descmode): case "overlay_top": $_align = "g-align-top"; $_more = TRUE; break; case "overlay_bottom": $_align = "g-align-bottom"; $_more = TRUE; break; case "overlay_top_s": $_align = "g-align-top g-align-static"; break; case "overlay_bottom_s": $_align = "g-align-bottom g-align-static"; break; default: break; endswitch; endif; ?>
resize_bottom($item) ?>
photo_descmode == "bottom") and ($_description)): ?>
add_paginator("bottom", FALSE); ?> photo_bottom() ?>