blob: 9bdff3253d5cbfef90e92b408ea9585d5aa032c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? if ($item->type == "photo" || $item->type == "resize"): ?>
<? $title = t("Edit this photo") ?>
<? elseif ($item->type == "movie"): ?>
<? $title = t("Edit this movie") ?>
<? elseif ($item->type == "album"): ?>
<? $title = t("Edit this album") ?>
<? endif ?>
<a class="gDialogLink gButtonLink ui-corner-all ui-state-default" href="<?= url::site("quick/form_edit/$item->id") ?>"
title="<?= $title ?>">
<span class="ui-icon ui-icon-pencil">
<?= $title ?>
</span>
</a>
<? if (($item->is_photo() || $item->type == "resize") && graphics::can("rotate")): ?>
<a class="gButtonLink ui-corner-all ui-state-default" href="<?= url::site("quick/rotate/$item->id/ccw?csrf=$csrf") ?>"
title="<?= t("Rotate 90 degrees counter clockwise") ?>">
<span class="ui-icon ui-icon-rotate-ccw">
<?= t("Rotate 90 degrees counter clockwise") ?>
</span>
</a>
<a class="gButtonLink ui-corner-all ui-state-default" href="<?= url::site("quick/rotate/$item->id/cw?csrf=$csrf") ?>"
title="<?= t("Rotate 90 degrees clockwise") ?>">
<span class="ui-icon ui-icon-rotate-cw">
<?= t("Rotate 90 degrees clockwise") ?>
</span>
</a>
<? endif ?>
<? if ($item->type == "photo" || $item->type == "resize"): ?>
<? $title = t("Move this photo to another album") ?>
<? elseif ($item->type == "movie"): ?>
<? $title = t("Move this movie to another album") ?>
<? elseif ($item->type == "album"): ?>
<? $title = t("Move this album to another album") ?>
<? endif ?>
<a class="gDialogLink gButtonLink ui-corner-all ui-state-default" href="<?= url::site("move/browse/$item->id") ?>"
title="<?= $title ?>">
<span class="ui-icon ui-icon-folder-open">
<?= $title ?>
</span>
</a>
<? if (access::can("edit", $item->parent())): ?>
<? if ($item->type == "photo" || $item->type == "resize"): ?>
<? $title = t("Choose this photo as the album cover") ?>
<? elseif ($item->type == "movie"): ?>
<? $title = t("Choose this movie as the album cover") ?>
<? elseif ($item->type == "album"): ?>
<? $title = t("Choose this album as the album cover") ?>
<? endif ?>
<a class="gButtonLink ui-corner-all ui-state-default" href="<?= url::site("quick/make_album_cover/$item->id?csrf=$csrf") ?>"
title="<?= $title ?>">
<span class="ui-icon ui-icon-star">
<?= $title ?>
</span>
</a>
<? if ($item->type == "photo" || $item->type == "resize"): ?>
<? $title = t("Delete this photo") ?>
<? elseif ($item->type == "movie"): ?>
<? $title = t("Delete this movie") ?>
<? elseif ($item->type == "album"): ?>
<? $title = t("Delete this album") ?>
<? endif ?>
<a class="gButtonLink ui-corner-all ui-state-default" href="<?= url::site("quick/delete/$item->id?csrf=$csrf") ?>"
title="<?= $title ?>">
<span class="ui-icon ui-icon-trash">
<?= $title ?>
</span>
</a>
<? endif ?>
<? if ($item->is_album()): ?>
<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>
<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 ?>
|