Show
Ignore:
Timestamp:
03/01/08 14:12:07 (5 years ago)
Author:
rvelices
Message:

- index.tpl, menubar.tpl, mainpage_categories.tpl and month_calendar.tpl go smarty
- better template debugging tweak (the smarty console is shown only once at the end)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/include/category_cats.inc.php

    r2201 r2231  
    33// | PhpWebGallery - a PHP based picture gallery                           | 
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 
     5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | 
    66// +-----------------------------------------------------------------------+ 
    77// | file          : $Id$ 
     
    234234      $icon_ts = get_icon($category['max_date_last'], $category['is_child_date_last']); 
    235235 
    236       $template->assign_block_vars( 
    237         'categories.category', 
     236      $tpl_var = 
    238237        array( 
    239           'SRC'   => $thumbnail_src_of[$category['representative_picture_id']], 
     238          'ID'    => $category['id'], 
     239          'TN_SRC'   => $thumbnail_src_of[$category['representative_picture_id']], 
    240240          'ALT'   => $category['name'], 
    241           'TITLE' => l10n('hint_category'), 
    242241          'ICON'  => $icon_ts, 
    243242 
     
    261260                'subcatify_category_description')), 
    262261          'NAME'  => $name, 
    263           ) 
    264         ); 
     262          ); 
    265263 
    266264      if ($conf['display_fromto']) 
     
    287285                ); 
    288286            } 
    289  
    290             $template->assign_block_vars( 
    291               'categories.category.dates', 
    292               array( 
    293                 'INFO' => $info, 
    294                 ) 
    295               ); 
     287            $tpl_var['INFO_DATES'] = $info; 
    296288          } 
    297289        } 
    298       } 
     290      }//fromto 
     291       
     292      $template->append( 'category_thumbnails', $tpl_var); 
     293 
    299294 
    300295      //plugins need to add/modify sth in this loop ?