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/lib/content.php

    r833 r840  
    4040        $buf .= '</a>'; 
    4141    } 
     42    $buf .= '&nbsp;'; 
    4243 
    4344    if ($gallery->user->canChangeTextOfAlbum($album)) { 
     
    4546            $buf = "<i>&lt;". gTranslate('common', "Empty") . "&gt;</i>"; 
    4647        } 
    47         $url = "edit_field.php?set_albumName={$album->fields['name']}&field=$field"; // should replace with &amp; for validatation 
    48         $buf .= ' <span class="editlink">'; 
    49         $buf .= popup_link( "[". sprintf(gTranslate('common', "edit %s"), gTranslate('common', $field)) . "]", $url) ; 
    50         $buf .= '</span>'; 
     48        $iconText = getIconText('page_edit.gif', gTranslate('core', sprintf(gTranslate('common', "edit %s"), gTranslate('common', $field))), 'yes'); 
     49        $buf .= popup_link($iconText, "edit_field.php?set_albumName={$album->fields['name']}&field=$field"); 
     50 
    5151    } 
    5252 
     
    149149</tr> 
    150150<tr> 
    151     <td colspan="2" class="commentboxfooter" align="right"><input name="save" type="submit" value="<?php echo gTranslate('common', "Post comment") ?>"></td> 
     151    <td colspan="2" class="commentboxfooter" align="right"><input name="save" type="submit" class="button" value="<?php echo gTranslate('common', "Post comment") ?>"></td> 
    152152</tr> 
    153153</table> 
     
    557557        } 
    558558 
    559         if (file_exists("$base/images/icons/$iconName")) { 
     559        if (file_exists(PATH_THEME."images/$iconName")) { 
     560            $imgSrc = THEME .'images/'. $iconName; 
     561            $linkText = "<img src=\"$imgSrc\" title=\"$altText\" alt=\"$altText\" style=\"border: none;\">"; 
     562 
     563            if ($iconMode == "both") { 
     564                $linkText .= "<br>$text"; 
     565            } 
     566        } elseif (file_exists("$base/images/icons/$iconName")) { 
    560567            $imgSrc = $gallery->app->photoAlbumURL .'/images/icons/'. $iconName; 
    561568            $linkText = "<img src=\"$imgSrc\" title=\"$altText\" alt=\"$altText\" style=\"border: none;\">"; 
Note: See TracChangeset for help on using the changeset viewer.