get("debug")) { $buf .= ""; } if ($theme->page_type == "album" && access::can("edit", $theme->item())) { $buf .= ""; $buf .= html::script("core/js/quick.js"); } return $buf; } public static function thumb_top($theme, $child) { if ($child->type == "photo" && access::can("edit", $child)) { $edit_link = url::site("quick/pane/$child->id"); return "
"; } } public static function thumb_bottom($theme, $child) { if ($child->type == "photo" && access::can("edit", $child)) { return "
"; } } public static function admin_head($theme) { if (Session::instance()->get("debug")) { return ""; } } public static function page_bottom($theme) { if (Session::instance()->get("profiler", false)) { $profiler = new Profiler(); $profiler->render(); } } public static function admin_page_bottom($theme) { if (Session::instance()->get("profiler", false)) { $profiler = new Profiler(); $profiler->render(); } } }