diff options
Diffstat (limited to 'core/views/quick_pane.html.php')
-rw-r--r-- | core/views/quick_pane.html.php | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/core/views/quick_pane.html.php b/core/views/quick_pane.html.php index b5f40d94..60cbb426 100644 --- a/core/views/quick_pane.html.php +++ b/core/views/quick_pane.html.php @@ -44,9 +44,27 @@ </a> <? endif ?> -<a class="options" href="#" - title="<?= t("Additional options") ?>"> +<? if ($item->is_album()): ?> +<a class="options" href="#" title="<?= t("additional options") ?>"> <span> <?= t("Additional options") ?> </span> </a> + +<div id="gQuickPaneOptions" style="display: none"> + <a class="add_item gDialogLink" href="<?= url::site("form/add/albums/$item->id?type=photo") ?>" + title="<?= t("Add a photo") ?>"> + <?= t("Add a photo") ?> + </a> + + <a class="add_album gDialogLink" href="<?= url::site("form/add/albums/$item->id?type=album") ?>" + title="<?= t("Add an album") ?>"> + <?= t("Add an album") ?> + </a> + + <a class="permissions gDialogLink" href="<?= url::site("permissions/browse/$item->id") ?>" + title="<?= t("Edit permissions") ?>"> + <?= t("Edit permissions") ?> + </a> +</div> +<? endif ?> |