Files
gallery3/core/views/quick_pane.html.php
Bharat Mediratta 7ebbe189d4 Implement the "additional options" part of the quick menu. It's only
for albums, because we don't currently have additional options for
photos yet.
2009-02-08 00:42:17 +00:00

71 lines
2.2 KiB
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<a class="edit gDialogLink" href="<?= url::site("quick/form_edit/$item->id") ?>"
title="<?= t("Edit this item's metadata") ?>">
<span>
<?= t("Edit this item") ?>
</span>
</a>
<? if ($item->is_album() && graphics::can("rotate")): ?>
<a class="clockwise" href="<?= url::site("quick/rotate/$item->id/cw?csrf=" . access::csrf_token()) ?>"
title="<?= t("Rotate 90 degrees clockwise") ?>">
<span>
<?= t("Rotate 90 degrees clockwise") ?>
</span>
</a>
<a class="counter-clockwise" href="<?= url::site("quick/rotate/$item->id/ccw?csrf=" . access::csrf_token()) ?>"
title="<?= t("Rotate 90 degrees counter clockwise") ?>">
<span>
<?= t("Rotate 90 degrees counter clockwise") ?>
</span>
</a>
<? endif ?>
<a class="move gDialogLink" href="<?= url::site("move/browse/$item->id") ?>"
title="<?= t("Move this item to another album") ?>">
<span>
<?= t("Move this item to another album") ?>
</span>
</a>
<? if (access::can("edit", $item->parent())): ?>
<a class="cover" href="<?= url::site("quick/make_album_cover/$item->id?csrf=" . access::csrf_token()) ?>"
title="<?= t("Select as album cover") ?>">
<span>
<?= t("Select as album cover") ?>
</span>
</a>
<a class="delete" href="<?= url::site("quick/delete/$item->id?csrf=" . access::csrf_token()) ?>"
title="<?= t("Delete this item") ?>">
<span>
<?= t("Delete this item") ?>
</span>
</a>
<? endif ?>
<? 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 ?>