Show
Ignore:
Timestamp:
02/15/07 01:10:41 (6 years ago)
Author:
rvelices
Message:

- feature 642: display both subcategory thumbnails and element thumbnails (if a
category has both) in the index page
- get rid of $pagecat_nb_images and $pagethumbnails_include (superfluous)
- changed sql queries in section_init.inc.php for better performance with
flat category view
- web service fixes for categories.getList

Files:
1 modified

Legend:

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

    r1722 r1820  
    182182  if ($conf['subcatify']) 
    183183  { 
    184     $template->set_filenames( 
    185       array( 
    186         'mainpage_categories' => 'mainpage_categories.tpl', 
    187         ) 
    188       ); 
     184    $template->set_filename('mainpage_categories', 'mainpage_categories.tpl'); 
    189185 
    190186    foreach ($categories as $category) 
     
    232228  else 
    233229  { 
    234     $template->set_filenames( array( 'thumbnails' => 'thumbnails.tpl',)); 
     230    $template->set_filename( 'thumbnails', 'thumbnails.tpl'); 
    235231    // first line 
    236232    $template->assign_block_vars('thumbnails.line', array()); 
     
    296292    } 
    297293 
    298     $template->assign_var_from_handle('THUMBNAILS', 'thumbnails'); 
     294    $template->assign_var_from_handle('CATEGORIES', 'thumbnails'); 
     295    unset( $template->_tpldata['thumbnails.'] );//maybe write a func for that 
    299296  } 
    300297}