Changeset 576


Ignore:
Timestamp:
10/23/04 12:31:12 (15 years ago)
Author:
z0rglub
Message:

search links in picture informations : author, date_available, date_creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r568 r576  
    584584} 
    585585 
    586  
    587586// author 
    588587if ( !empty($picture['current']['author']) ) 
    589588{ 
     589  $search_url = PHPWG_ROOT_PATH.'category.php?cat=search'; 
     590  $search_url.= '&search=author:'.$picture['current']['author']; 
     591   
     592  $value = '<a href="'; 
     593  $value.= add_session_id($search_url); 
     594  $value.= '">'.$picture['current']['author'].'</a>'; 
     595   
    590596  $template->assign_block_vars( 
    591597    'info_line', 
    592598    array( 
    593599      'INFO'=>$lang['author'], 
    594       'VALUE'=>$picture['current']['author'] 
     600      'VALUE'=>$value 
    595601      )); 
    596602} 
     
    598604if ( !empty($picture['current']['date_creation']) ) 
    599605{ 
    600   $template->assign_block_vars('info_line', array( 
    601           'INFO'=>$lang['creation_date'], 
    602           'VALUE'=>format_date( $picture['current']['date_creation'] )  
    603           )); 
     606  $search_url = PHPWG_ROOT_PATH.'category.php?cat=search'; 
     607  $search_url.= '&amp;search='; 
     608  $search_url.= 'date_creation:'.$picture['current']['date_creation']; 
     609   
     610  $value = '<a href="'; 
     611  $value.= add_session_id($search_url); 
     612  $value.= '">'.format_date($picture['current']['date_creation']).'</a>'; 
     613   
     614  $template->assign_block_vars( 
     615    'info_line', 
     616    array( 
     617      'INFO'=>$lang['creation_date'], 
     618      'VALUE'=>$value 
     619      )); 
    604620} 
    605621// date of availability 
    606 $template->assign_block_vars('info_line', array( 
    607           'INFO'=>$lang['registration_date'], 
    608           'VALUE'=>format_date( $picture['current']['date_available'] )  
    609           )); 
     622$search_url = PHPWG_ROOT_PATH.'category.php?cat=search'; 
     623$search_url.= '&amp;search='; 
     624$search_url.= 'date_available:'.$picture['current']['date_available']; 
     625   
     626$value = '<a href="'; 
     627$value.= add_session_id($search_url); 
     628$value.= '">'.format_date($picture['current']['date_available']).'</a>'; 
     629 
     630$template->assign_block_vars( 
     631  'info_line', 
     632  array( 
     633    'INFO'=>$lang['registration_date'], 
     634    'VALUE'=>$value 
     635    )); 
    610636// size in pixels 
    611637if ($picture['current']['is_picture']) 
Note: See TracChangeset for help on using the changeset viewer.