Changeset 1820 for trunk/include/functions_calendar.inc.php
- Timestamp:
- Feb 15, 2007, 1:10:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_calendar.inc.php
r1759 r1820 198 198 if (script_basename() != 'picture') // basename without file extention 199 199 { 200 $template->assign_block_vars('calendar', array());201 202 200 if ($calendar->generate_category_content()) 203 201 { 204 unset( 205 $page['thumbnails_include'], 206 $page['items'] 207 ); 208 202 $page['items'] = array(); 209 203 $must_show_list = false; 210 204 } 211 205 212 $template->assign_block_vars( 'calendar.views', array() );213 206 foreach ($styles as $style => $style_data) 214 207 { … … 261 254 .$fields[$page['chronology_field']]['label'].'</a>'; 262 255 $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 ); 266 261 } // end category calling 267 262 … … 294 289 '.$order_by; 295 290 } 296 297 291 $page['items'] = array_from_query($query, 'id'); 298 $page['thumbnails_include'] = 'include/category_default.inc.php';299 292 } 300 293 pwg_debug('end initialize_calendar');
Note: See TracChangeset
for help on using the changeset viewer.