Ignore:
Timestamp:
Feb 15, 2007, 1:10:41 AM (18 years ago)
Author:
rvelices
Message:
  • feature 642: display both subcategory thumbnails and element thumbnails (if a

category has both) in the index page

flat category view

  • web service fixes for categories.getList
File:
1 edited

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}
Note: See TracChangeset for help on using the changeset viewer.