Changeset 536 for trunk/picture.php
- Timestamp:
- Sep 24, 2004, 10:37:29 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r535 r536 165 165 { 166 166 $picture[$i]['src'] = $cat_directory.$row['file']; 167 // if we are working on the "current" element, we search if there is a 168 // high quality picture 169 if ($i == 'current') 170 { 171 if (@fopen($cat_directory.'high/'.$row['file'], 'r')) 172 { 173 $picture[$i]['high'] = $cat_directory.'high/'.$row['file']; 174 } 175 } 167 176 } 168 177 … … 210 219 $url_admin.= '&image_id='.$_GET['image_id']; 211 220 212 $url_slide = $picture['current']['url'].'&slideshow='.$conf['slideshow_period']; 221 $url_slide = $picture['current']['url']; 222 $url_slide.= '&slideshow='.$conf['slideshow_period']; 213 223 //----------------------------------------------------------- rate registration 214 224 if (isset($_GET['rate']) … … 387 397 if (is_numeric( $page['cat'] )) 388 398 { 389 $title_img = replace_space(get_cat_display_name( $page['cat_name'], " > "));399 $title_img = replace_space(get_cat_display_name($page['cat_name'],' > ')); 390 400 $n = $page['num'] + 1; 391 401 $title_nb = $n.'/'.$page['cat_nb_images']; … … 457 467 'L_DOWNLOAD_HINT' => $lang['download_hint'], 458 468 'L_PICTURE_METADATA' => $lang['picture_show_metadata'], 469 'L_PICTURE_HIGH' => $lang['picture_high'], 470 'L_PICTURE_HIGH_ALT' => $lang['picture_high_alt'], 459 471 460 472 'U_HOME' => add_session_id($url_home), … … 465 477 ) 466 478 ); 467 //------------------------------------------------------- -upper menu management479 //------------------------------------------------------- upper menu management 468 480 // download link if file is not a picture 469 481 if (!$picture['current']['is_picture']) 470 482 { 471 $template->assign_block_vars( 'download', array(472 'U_DOWNLOAD' => $picture['current']['download']473 483 $template->assign_block_vars( 484 'download', 485 array('U_DOWNLOAD' => $picture['current']['download'])); 474 486 } 475 487 else 476 488 { 477 $template->assign_block_vars('ecard', array( 478 'U_ECARD' => $picture['current']['url'] 479 )); 480 } 481 489 $template->assign_block_vars( 490 'ecard', 491 array('U_ECARD' => $picture['current']['url'])); 492 } 493 // display a high quality link if present 494 if (isset($picture['current']['high'])) 495 { 496 $template->assign_block_vars( 497 'high', 498 array('U_HIGH' => $picture['current']['high'])); 499 } 482 500 //------------------------------------------------------- favorite manipulation 483 501 if ( !$user['is_the_guest'] )
Note: See TracChangeset
for help on using the changeset viewer.