Ignore:
Timestamp:
09/23/07 23:49:33 (5 years ago)
Author:
hverton
Message:

changed copyright notice
added Smarty buttonlink function, to replace image buttons by real buttons using a locale for the button text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/gallery/php-files/modules/gallery/view_album.php

    r833 r836  
    606606    } 
    607607 
    608     $va_poll_box3 = sprintf(gTranslate('core', "To vote for an image, click on %s."), $options); 
    609     $va_poll_box3 .= ' '; 
    610     $va_poll_box3 .= sprintf(gTranslate('core', "You MUST click on %s for your vote to be recorded."), "<b>".gTranslate('core', "Vote")."</b>"); 
    611     $va_poll_box3 .= ' '; 
     608    $va_poll_box3 = ""; 
     609//  $va_poll_box3 = sprintf(gTranslate('core', "To vote for an image, click on %s."), $options); 
     610//  $va_poll_box3 .= ' '; 
     611//  $va_poll_box3 .= sprintf(gTranslate('core', "You MUST click on %s for your vote to be recorded."), "<b>".gTranslate('core', "Vote")."</b>"); 
     612//  $va_poll_box3 .= ' '; 
    612613    if ($gallery->album->getPollType() == 'rank') { 
    613614        $voteCount = $gallery->album->getPollScale(); 
     
    617618    } 
    618619    else { 
    619         $va_poll_box3 .= gTranslate('core', "You can change your votes later, if you wish."); 
     620//      $va_poll_box3 .= gTranslate('core', "You can change your votes later, if you wish."); 
    620621    } 
    621622 
     
    623624    echo $va_poll_box3; 
    624625    echo "\n</div>\n"; 
    625 ?> 
    626     <div align="center"> 
    627         <input type=submit name="Vote" value="<?php print gTranslate('core', "Vote") ?>"> 
    628     </div> 
    629  
    630 <?php 
    631626} 
    632627?> 
     
    809804            // Caption itself 
    810805            echo "\n<div align=\"center\" class=\"modcaption\">\n"; 
     806            $capt = ""; 
    811807            $id = $gallery->album->getPhotoId($i); 
    812808            if ($gallery->album->isHidden($i) && !$gallery->session->offline) { 
    813                 echo "(" . gTranslate('core', "hidden") .")<br>"; 
     809                $capt .= ($capt == "" ? "" : "* ") . gTranslate('core', "hidden"); 
    814810            } 
    815811            $photo = $gallery->album->getPhoto($i); 
    816812            if ($gallery->user->canWriteToAlbum($gallery->album) && 
    817813              $photo->isHighlight() && !$gallery->session->offline) { 
    818                 echo "(" . gTranslate('core', "highlight") .")<br>"; 
    819             } 
     814                $capt .= ($capt == "" ? "" : " * ") . gTranslate('core', "hightlight"); 
     815            } 
     816            echo $capt,"<br>"; 
    820817            if (isset($myAlbum)) { 
    821818                $myDescription = $myAlbum->fields['description']; 
Note: See TracChangeset for help on using the changeset viewer.