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:
Tim Almdal
2009-06-22 20:46:40 +08:00
parent 49975f10b9
commit fa4bb5b7ac
3 changed files with 160 additions and 91 deletions

View File

@@ -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;