Changeset 588


Ignore:
Timestamp:
10/30/04 18:51:01 (15 years ago)
Author:
z0rglub
Message:
  • differentiation of links "up to thumbnails" and "home"
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/language/en_UK.iso-8859-1/common.lang.php

    r566 r588  
    301301$lang['random_cat_hint'] = 'Displays a set of random pictures'; 
    302302$lang['picture_high'] = 'Click on the picture to see it in high definition'; 
    303  
     303$lang['up_hint'] = 'Up to the thumbnails'; 
     304$lang['up_alt'] = 'up'; 
    304305?> 
  • trunk/picture.php

    r587 r588  
    169169    // if we are working on the "current" element, we search if there is a 
    170170    // high quality picture 
     171    // FIXME : with remote pictures, this "remote fopen" takes long... 
    171172    if ($i == 'current') 
    172173    { 
     
    203204} 
    204205 
    205 $url_home = PHPWG_ROOT_PATH.'category.php?cat='.$page['cat'].'&'; 
    206 $url_home.= 'num='.$page['num'];  
     206$url_up = PHPWG_ROOT_PATH.'category.php?cat='.$page['cat'].'&'; 
     207$url_up.= 'num='.$page['num'];  
    207208if ( $page['cat'] == 'search' ) 
    208209{ 
    209   $url_home.= "&search=".$_GET['search']; 
     210  $url_up.= "&search=".$_GET['search']; 
    210211} 
    211212 
     
    274275      // there is no favorite picture anymore we redirect the user to the 
    275276      // category page 
    276       $url = add_session_id( $url_home ); 
    277       redirect( $url ); 
     277      $url = add_session_id($url_up); 
     278      redirect($url); 
    278279    } 
    279280    else if (!$has_prev) 
     
    462463  'L_PICTURE_METADATA' => $lang['picture_show_metadata'], 
    463464  'L_PICTURE_HIGH' => $lang['picture_high'], 
    464    
    465   'U_HOME' => add_session_id($url_home), 
     465  'L_UP_HINT' => $lang['up_hint'], 
     466  'L_UP_ALT' => $lang['up_alt'], 
     467   
     468  'U_HOME' => add_session_id(PHPWG_ROOT_PATH.'category.php'), 
     469  'U_UP' => add_session_id($url_up), 
    466470  'U_METADATA' => add_session_id($url_metadata), 
    467471  'U_ADMIN' => add_session_id($url_admin), 
  • trunk/template/default/picture.tpl

    r574 r588  
    1010<div id="imgBarMenu"> 
    1111<div class="imgMenu" id="left"> 
    12   <a href="{U_HOME}" title="{L_HOME}"> 
    13         <img src="template/default/theme/categories.gif" alt="{L_HOME}" /> 
     12  <a href="{U_UP}" title="{L_UP_HINT}"> 
     13        <img src="template/default/theme/categories.gif" alt="{L_UP_ALT}" /> 
    1414  </a> 
    1515</div> 
Note: See TracChangeset for help on using the changeset viewer.