mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
Visually attach the quick edit menu to the thumbnail container. Added more edit options (move, select as album cover, delete, additional options).
Need to decide which belong in the bar and which belong in a dropdown menu under "options."
This commit is contained in:
@@ -1,24 +1,54 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<? if ($item->type == "photo"): ?>
|
||||
<? if (graphics::can("rotate")): ?>
|
||||
<a class="counter-clockwise" href="<?= url::site("quick/rotate/$item->id/ccw?csrf=" . access::csrf_token()) ?>">
|
||||
<span>
|
||||
<?= t("Rotate CCW") ?>
|
||||
</span>
|
||||
</a>
|
||||
<? endif ?>
|
||||
|
||||
<a class="edit gDialogLink" href="<?= url::site("quick/form_edit/$item->id") ?>">
|
||||
<a class="edit gDialogLink" href="<?= url::site("quick/form_edit/$item->id") ?>"
|
||||
title="<?= t("Edit this item's metadata") ?>">
|
||||
<span>
|
||||
<?= t("Edit") ?>
|
||||
<?= t("Edit this item") ?>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<? if (graphics::can("rotate")): ?>
|
||||
<a class="clockwise" href="<?= url::site("quick/rotate/$item->id/cw?csrf=" . access::csrf_token()) ?>">
|
||||
<a class="clockwise" href="<?= url::site("quick/rotate/$item->id/cw?csrf=" . access::csrf_token()) ?>"
|
||||
title="<?= t("Rotate 90 degrees clockwise") ?>">
|
||||
<span>
|
||||
<?= t("Rotate CCW") ?>
|
||||
<?= 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" href="<?= url::site("quick/form_edit/$item->id") ?>"
|
||||
title="<?= t("Move this item to another album") ?>">
|
||||
<span>
|
||||
<?= t("Move this item to another album") ?>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<a class="cover" href="#"
|
||||
title="<?= t("Select as album cover") ?>">
|
||||
<span>
|
||||
<?= t("Select as album cover") ?>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<a class="delete" href="#"
|
||||
title="<?= t("Delete this item") ?>">
|
||||
<span>
|
||||
<?= t("Delete this item") ?>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<a class="options" href="#"
|
||||
title="<?= t("Additional options") ?>">
|
||||
<span>
|
||||
<?= t("Additional options") ?>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<? endif ?>
|
||||
|
||||
Reference in New Issue
Block a user