summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/quick.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-06-22 20:46:40 +0800
committerTim Almdal <tnalmdal@shaw.ca>2009-06-22 21:08:35 +0800
commitfa4bb5b7ac89bbbd0325e5c336c2e9b31f59d12b (patch)
treea26e8a4ceae58aa24f8cbbe5c81d4c2479d6d969 /modules/gallery/controllers/quick.php
parent49975f10b9982d95b36681be536f3f70fa46dbf4 (diff)
Change the quick pan from static to dynamic. This allows modules to add buttons to the
quick pane. The quick pane is now divided into 4 sections: left, center, right and additional. Additional items appear in the drop down box. Buttons are not sorted within the groupings. In addition, the quick pane will overflow onto the "additional" dropdown if there is not enough room to display all the buttons. The use case is the digibug printing module needed to add a button to the quick pane, and I don't like putting code into core that says if module is active... That's another one of those code smells :-) Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
Diffstat (limited to 'modules/gallery/controllers/quick.php')
-rw-r--r--modules/gallery/controllers/quick.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/controllers/quick.php b/modules/gallery/controllers/quick.php
index cff6686b..6203728c 100644
--- a/modules/gallery/controllers/quick.php
+++ b/modules/gallery/controllers/quick.php
@@ -25,6 +25,8 @@ class Quick_Controller extends Controller {
}
$view = new View("quick_pane.html");
+ $view->button_list =
+ gallery_quick::get_quick_buttons($item, Input::instance()->get("page_type"));
$view->item = $item;
$view->page_type = Input::instance()->get("page_type");
print $view;