Ignore:
Timestamp:
Mar 1, 2008, 2:12:07 PM (16 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)
File:
1 edited

Legend:

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

    r1900 r2231  
    201201      $must_show_list = false;
    202202    }
     203   
     204    $page['comment'] = '';
     205    $template->assign('FILE_CHRONOLOGY_VIEW', 'month_calendar.tpl');
    203206
    204207    foreach ($styles as $style => $style_data)
     
    208211        if ( $style_data['view_calendar'] or $view != CAL_VIEW_CALENDAR)
    209212        {
    210           $selected = '';
     213          $selected = false;
    211214
    212215          if ($style!=$cal_style)
     
    232235          if ($style==$cal_style and $view==$page['chronology_view'] )
    233236          {
    234             $selected = 'SELECTED';
     237            $selected = true;
    235238          }
    236239
    237           $template->assign_block_vars(
    238             'calendar.views.view',
     240          $template->append(
     241            'chronology_views',
    239242            array(
    240243              'VALUE' => $url,
     
    252255        .$fields[$page['chronology_field']]['label'].'</a>';
    253256    $calendar_title.= $calendar->get_display_name();
    254     $template->merge_block_vars('calendar',
     257    $template->assign('chronology',
    255258        array(
    256259          'TITLE' => $calendar_title
Note: See TracChangeset for help on using the changeset viewer.