Changeset 2549 for trunk/picture.php


Ignore:
Timestamp:
Sep 18, 2008, 11:26:33 PM (16 years ago)
Author:
vdigital
Message:

Extend_for_templates include slideshow.tpl overides.
menubar.tpl is no longer supported by Extend_for_templates.
Titling_categories.tpl was in error (Wrong recent icon var)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r2521 r2549  
    551551  $page['slideshow'] = false;
    552552}
    553 
    554 $template->set_filenames(
    555   array(
    556     'picture' =>
    557       (($page['slideshow'] and $conf['light_slideshow']) ? 'slideshow.tpl' : 'picture.tpl'),
    558     ));
    559 
     553if ($page['slideshow'] and $conf['light_slideshow'])
     554{
     555  $template->set_filenames( array('slideshow' => 'slideshow.tpl'));
     556}
     557else
     558{
     559  $template->set_filenames( array('picture' => 'picture.tpl'));
     560}
    560561
    561562$title =  $picture['current']['name'];
     
    949950include(PHPWG_ROOT_PATH.'include/page_header.php');
    950951trigger_action('loc_end_picture');
    951 $template->pparse('picture');
     952if ($page['slideshow'] and $conf['light_slideshow'])
     953{
     954  $template->pparse('slideshow');
     955}
     956else
     957{
     958  $template->pparse('picture');
     959}
    952960//------------------------------------------------------------ log informations
    953961pwg_log($picture['current']['id'], 'picture');
Note: See TracChangeset for help on using the changeset viewer.