diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-08-03 21:45:54 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-03 21:45:54 -0700 |
commit | 52147cf6f857c4c54a2f3d753e72b27b5141d028 (patch) | |
tree | 323cf4f2afb64e6a22f319e303c656d8a7cb3ef4 /modules/gallery/helpers/gallery_theme.php | |
parent | 7ad0808a117fd1db4e94da8d7763ccca1d69350a (diff) |
Combine the quick menu and the thumb menu into a single menu called
the "context" menu.
This new context menu is generated using the typical event processing
system, like our other menus. The specialized quick CSS and JS is now
gone, replaced by our generic menu handling code. It's all rolled
together currently using the thumb_menu UI for easy packaging. All
the CSS and JS is updated.
NOTE: the non-dialog links (rotate, album_cover) have a broken UI
because they return JSON which the quick.js code handled specially,
but we don't handle properly now. I need to fix this.
Diffstat (limited to 'modules/gallery/helpers/gallery_theme.php')
-rw-r--r-- | modules/gallery/helpers/gallery_theme.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php index d3751b80..8fe1c768 100644 --- a/modules/gallery/helpers/gallery_theme.php +++ b/modules/gallery/helpers/gallery_theme.php @@ -24,11 +24,6 @@ class gallery_theme_Core { if ($session->get("debug")) { $theme->css("debug.css"); } - if (($theme->page_type == "album" || $theme->page_type == "photo") - && access::can("edit", $theme->item())) { - $theme->css("quick.css"); - $theme->script("quick.js"); - } if (module::is_active("rss")) { if ($item = $theme->item()) { @@ -51,32 +46,6 @@ class gallery_theme_Core { return $buf; } - static function resize_top($theme, $item) { - if (access::can("edit", $item)) { - $edit_link = url::site("quick/pane/$item->id?page_type=photo"); - return "<div class=\"gQuick\" href=\"$edit_link\">"; - } - } - - static function resize_bottom($theme, $item) { - if (access::can("edit", $item)) { - return "</div>"; - } - } - - static function thumb_top($theme, $child) { - if (access::can("edit", $child)) { - $edit_link = url::site("quick/pane/$child->id?page_type=album"); - return "<div class=\"gQuick\" href=\"$edit_link\">"; - } - } - - static function thumb_bottom($theme, $child) { - if (access::can("edit", $child)) { - return "</div>"; - } - } - static function admin_head($theme) { $session = Session::instance(); if ($session->get("debug")) { |