mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-29 15:59:22 -04:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user