mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
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>
27 lines
876 B
PHP
27 lines
876 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<? foreach ($button_list->main as $button): ?>
|
|
<a class="<?= $button->class ?> ui-corner-all ui-state-default" href="<?= $button->href ?>"
|
|
title="<?= $button->title ?>">
|
|
<span class="ui-icon <?= $button->icon ?>">
|
|
<?= $button->title ?>
|
|
</span>
|
|
</a>
|
|
<? endforeach ?>
|
|
|
|
<? if (!empty($button_list->additional)): ?>
|
|
<a class="gButtonLink ui-corner-all ui-state-default options" href="#" title="<?= t("additional options") ?>">
|
|
<span class="ui-icon ui-icon-triangle-1-s">
|
|
<?= t("Additional options") ?>
|
|
</span>
|
|
</a>
|
|
|
|
<ul id="gQuickPaneOptions" style="display: none">
|
|
<? foreach ($button_list->additional as $button): ?>
|
|
<li><a class="<?= $button->class ?>" href="<?= $button->href ?>"
|
|
title="<?= $button->title ?>">
|
|
<?= $button->title ?>
|
|
</a></li>
|
|
<? endforeach ?>
|
|
</ul>
|
|
<? endif ?>
|