get("debug")) {
      $buf .= "";
    }
    if ($theme->page_type == "album" && access::can("edit", $theme->item())) {
      $buf .= "";
      $buf .= html::script("core/js/quick.js");
    }
    if ($theme->page_type == "photo" && access::can("view_full", $theme->item())) {
      $buf .= "";
      $buf .= html::script("core/js/fullsize.js");
    }
    return $buf;
  }
  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();
    }
  }
}