Ignore:
Timestamp:
Feb 15, 2007, 1:10:41 AM (17 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/functions_calendar.inc.php

    r1759 r1820  
    198198  if (script_basename() != 'picture') // basename without file extention
    199199  {
    200     $template->assign_block_vars('calendar', array());
    201 
    202200    if ($calendar->generate_category_content())
    203201    {
    204       unset(
    205         $page['thumbnails_include'],
    206         $page['items']
    207         );
    208 
     202      $page['items'] = array();
    209203      $must_show_list = false;
    210204    }
    211205
    212     $template->assign_block_vars( 'calendar.views', array() );
    213206    foreach ($styles as $style => $style_data)
    214207    {
     
    261254        .$fields[$page['chronology_field']]['label'].'</a>';
    262255    $calendar_title.= $calendar->get_display_name();
    263     //this should be an assign_block_vars, but I need to assign 'calendar'
    264     //above and at that point I don't have the title yet.
    265     $template->_tpldata['calendar.'][0]['TITLE'] = $calendar_title;
     256    $template->merge_block_vars('calendar',
     257        array(
     258          'TITLE' => $calendar_title
     259        )
     260      );
    266261  } // end category calling
    267262
     
    294289  '.$order_by;
    295290    }
    296 
    297291    $page['items']              = array_from_query($query, 'id');
    298     $page['thumbnails_include'] = 'include/category_default.inc.php';
    299292  }
    300293  pwg_debug('end initialize_calendar');
Note: See TracChangeset for help on using the changeset viewer.