Ignore:
Timestamp:
09/26/07 00:39:24 (5 years ago)
Author:
hverton
Message:

minor bugfixes
further work on Gallery integration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/gallery/php-files/modules/gallery/layout/adminAlbumCommands.inc

    r833 r840  
    66?> 
    77<!-- Begin adminAlbumCommands --> 
    8 <div class="admin"><?php 
     8<?php 
    99 
    1010/* User is allowed to delete the album */ 
    1111if ($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}"); 
    1314} 
    1415 
    1516/* User is allowed to change the album */ 
    1617if ($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"); 
    2024} 
    2125 
     
    2428if ($gallery->user->canChangeTextOfAlbum($gallery->album) && !$gallery->session->offline) { 
    2529    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>'; 
    2731} 
    2832 
     
    3135 
    3236    /* 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); 
    3541 
    3642    /* User is allowed to view ALL comments */ 
     
    3945        && ($gallery->album->lastCommentDate("no") != -1)) { 
    4046            echo "\n\t". '<a href="'. makeGalleryUrl("view_comments.php", array("set_albumName" => $tmpAlbumName)) . '">' . 
    41             '[' . gTranslate('core',"View&nbsp;comments") . ']</a>'; 
     47                getIconText('comments.gif', gTranslate('core',"View&nbsp;comments"), 'yes') . '</a>'; 
    4248    } 
    4349 
    4450    /* Watermarking support is enabled and user is allowed to watermark images/albums */ 
    4551    if (!empty($gallery->app->watermarkDir) && $gallery->album->numPhotos(1)) { 
    46         echo "\n\t". popup_link("[" . gTranslate('core',"Watermark&nbsp;album") . "]", "watermark_album.php?set_albumName={$tmpAlbumName}"); 
     52        $iconText = getIconText('image_edit.gif', gTranslate('core',"Watermark&nbsp;album"), 'yes'); 
     53        echo "\n\t". popup_link($iconText, "watermark_album.php?set_albumName={$tmpAlbumName}"); 
    4754    } 
    4855} 
     56 
     57/* user can download this album */ 
     58if ($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} 
    4962?> 
    50  
    51 </div> 
    5263<!-- End adminAlbumCommands --> 
Note: See TracChangeset for help on using the changeset viewer.