Changeset 840 in ExiteCMS for modules/common/gallery/php-files/modules/gallery/layout/adminAlbumCommands.inc
- Timestamp:
- 09/26/07 00:39:24 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/gallery/php-files/modules/gallery/layout/adminAlbumCommands.inc
r833 r840 6 6 ?> 7 7 <!-- Begin adminAlbumCommands --> 8 < div class="admin"><?php8 <?php 9 9 10 10 /* User is allowed to delete the album */ 11 11 if ($gallery->user->canDeleteAlbum($gallery->album)) { 12 echo "\n\t". popup_link("[". gTranslate('core',"Delete album") ."]", "delete_album.php?set_albumName={$tmpAlbumName}"); 12 $iconText = getIconText('page_delete.gif', gTranslate('core',"Delete album"), 'yes'); 13 echo "\n\t". popup_link($iconText, "delete_album.php?set_albumName={$tmpAlbumName}"); 13 14 } 14 15 15 16 /* User is allowed to change the album */ 16 17 if ($gallery->user->canWriteToAlbum($gallery->album)) { 17 echo "\n\t". popup_link("[". gTranslate('core',"Move album") ."]", "move_album.php?set_albumName={$tmpAlbumName}&index=$i&reorder=0"); 18 echo "\n\t". popup_link("[". gTranslate('core',"Reorder album") ."]", "move_album.php?set_albumName={$tmpAlbumName}&index=$i&reorder=1"); 19 echo "\n\t". popup_link("[". gTranslate('core',"Rename album") ."]", "rename_album.php?set_albumName={$tmpAlbumName}&index=$i"); 18 $iconText = getIconText('page_go.gif', gTranslate('core',"Move album"), 'yes'); 19 echo "\n\t". popup_link($iconText, "move_album.php?set_albumName={$tmpAlbumName}&index=$i&reorder=0"); 20 $iconText = getIconText('page_refresh.gif', gTranslate('core',"Reorder album"), 'yes'); 21 echo "\n\t". popup_link($iconText, "move_album.php?set_albumName={$tmpAlbumName}&index=$i&reorder=1"); 22 $iconText = getIconText('page_save.gif', gTranslate('core',"Rename album"), 'yes'); 23 echo "\n\t". popup_link($iconText, "rename_album.php?set_albumName={$tmpAlbumName}&index=$i"); 20 24 } 21 25 … … 24 28 if ($gallery->user->canChangeTextOfAlbum($gallery->album) && !$gallery->session->offline) { 25 29 echo "\n\t". '<a href="'. makeGalleryUrl("captionator.php", array("set_albumName" => $tmpAlbumName)) . '">' . 26 '['. gTranslate('core',"Edit captions") . ']</a>';30 getIconText('picture_edit.gif', gTranslate('core',"Edit captions"), 'yes') . '</a>'; 27 31 } 28 32 … … 31 35 32 36 /* User is allowed to change Album Permissions */ 33 echo "\n\t". popup_link("[" . gTranslate('core',"Permissions") ."]", "album_permissions.php?set_albumName={$tmpAlbumName}"); 34 echo "\n\t". popup_link("[" . gTranslate('core',"Properties") ."]", "edit_appearance.php?set_albumName={$tmpAlbumName}", 0, true, 500, 600); 37 $iconText = getIconText('lock_edit.gif', gTranslate('core',"Permissions"), 'yes'); 38 echo "\n\t". popup_link($iconText, "album_permissions.php?set_albumName={$tmpAlbumName}"); 39 $iconText = getIconText('table_edit.gif', gTranslate('core',"Properties"), 'yes'); 40 echo "\n\t". popup_link($iconText, "edit_appearance.php?set_albumName={$tmpAlbumName}", 0, true, 500, 600); 35 41 36 42 /* User is allowed to view ALL comments */ … … 39 45 && ($gallery->album->lastCommentDate("no") != -1)) { 40 46 echo "\n\t". '<a href="'. makeGalleryUrl("view_comments.php", array("set_albumName" => $tmpAlbumName)) . '">' . 41 '[' . gTranslate('core',"View comments") . ']</a>';47 getIconText('comments.gif', gTranslate('core',"View comments"), 'yes') . '</a>'; 42 48 } 43 49 44 50 /* Watermarking support is enabled and user is allowed to watermark images/albums */ 45 51 if (!empty($gallery->app->watermarkDir) && $gallery->album->numPhotos(1)) { 46 echo "\n\t". popup_link("[" . gTranslate('core',"Watermark album") . "]", "watermark_album.php?set_albumName={$tmpAlbumName}"); 52 $iconText = getIconText('image_edit.gif', gTranslate('core',"Watermark album"), 'yes'); 53 echo "\n\t". popup_link($iconText, "watermark_album.php?set_albumName={$tmpAlbumName}"); 47 54 } 48 55 } 56 57 /* user can download this album */ 58 if ($gallery->user->canDownloadAlbum($gallery->album) && $gallery->album->numPhotos(1)) { 59 $iconText = getIconText('compress.gif', gTranslate('core', "Download entire album as archive"), 'yes'); 60 echo "\n\t". popup_link($iconText, "download.php?set_albumName=$tmpAlbumName",false,false,500,500); 61 } 49 62 ?> 50 51 </div>52 63 <!-- End adminAlbumCommands -->
Note: See TracChangeset
for help on using the changeset viewer.
