Changeset 1730 for trunk/picture.php


Ignore:
Timestamp:
Jan 18, 2007, 12:08:41 AM (17 years ago)
Author:
vdigital
Message:

Issue 0000622: Optional light slideshow
(Active by default - Switch off by $conflight_slideshow = false)

Order by in admin/comments.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r1727 r1730  
    457457$page['body_id'] = 'thePicturePage';
    458458
     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//
     464if ( 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}
     470else {
     471  $page['display_tpl'] = 'picture.tpl';
     472  $page['slideshow'] = false; 
     473}
    459474// maybe someone wants a special display (call it before page_header so that they
    460475// can add stylesheets)
     
    471486  );
    472487}
    473 $template->set_filenames(array('picture'=>'picture.tpl'));
     488
     489$template->set_filenames(array( 'picture' => $page['display_tpl'] ));
     490
    474491
    475492//------------------------------------------------------- navigation management
Note: See TracChangeset for help on using the changeset viewer.