Changeset 1730 for trunk/picture.php
- Timestamp:
- Jan 18, 2007, 12:08:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r1727 r1730 457 457 $page['body_id'] = 'thePicturePage'; 458 458 459 //------------------------------------------------------------ light slideshow 460 // Warning !!! Warning !!! Warning !!! 461 // Notice for plugins writers check if you have to act on the active template 462 // like this if ( $page['slideshow'] ) { return false; } 463 // 464 if ( isset($_GET['slideshow']) and $conf['light_slideshow'] ) 465 { 466 $page['display_tpl'] = 'slideshow.tpl'; 467 $page['slideshow'] = true; 468 unset($picture['current']['high_url']); 469 } 470 else { 471 $page['display_tpl'] = 'picture.tpl'; 472 $page['slideshow'] = false; 473 } 459 474 // maybe someone wants a special display (call it before page_header so that they 460 475 // can add stylesheets) … … 471 486 ); 472 487 } 473 $template->set_filenames(array('picture'=>'picture.tpl')); 488 489 $template->set_filenames(array( 'picture' => $page['display_tpl'] )); 490 474 491 475 492 //------------------------------------------------------- navigation management
Note: See TracChangeset
for help on using the changeset viewer.