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