Changeset 2549


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)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/extend_for_templates.php

    r2530 r2549  
    113113    'thumbnails.tpl'          => 'index_thumbnails',
    114114    'redirect.tpl'            => 'redirect',
    115     'menubar.tpl'             => 'menubar',
     115 // 'menubar.tpl'             => 'menubar', // TODO by blocks
    116116    'header.tpl'              => 'header',
    117117    'footer.tpl'              => 'tail',
     
    120120    'notification.tpl'        => 'notification',
    121121    'picture_content.tpl'     => 'default_content',
    122     'slideshow.tpl'           => 'picture', /* => slideshow is missing */
    123122    'picture.tpl'             => 'picture',
    124123    'popuphelp.tpl'           => 'popuphelp',
     
    128127    'search.tpl'              => 'search',
    129128    'search_rules.tpl'        => 'search_rules',
     129    'slideshow.tpl'           => 'slideshow',
    130130    'tags.tpl'                => 'tags',
    131131    'upload.tpl'              => 'upload',);
  • 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');
  • trunk/template-extension/distributed/samples/titling_categories.tpl

    r2547 r2549  
    1717    <div class="unbordered"> {*                                                   W3C HTML non conform *}
    1818    <h3> {*                                               2nd difference: h3 is outside of description *}
    19       <a href="{$cat.URL}">{$cat.NAME}</a>{$cat.ICON}
     19      <a href="{$cat.URL}">{$cat.NAME}</a>{$cat.ICON_TS}
    2020    </h3>
    2121    <li>
Note: See TracChangeset for help on using the changeset viewer.