Ignore:
Timestamp:
Mar 3, 2006, 2:57:39 AM (18 years ago)
Author:
rvelices
Message:

improvement: calendar navigation now uses at maximum one navigation bar
together with a next/previous date links

improvement: calendar view styles now shown in DIV.titrePage (I still need
to move padding from H2 to DIV.titrePage ...)

fix: moved all calendar css colors from template to the theme

File:
1 edited

Legend:

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

    r1059 r1062  
    261261      }
    262262    }
     263    $calendar_title =
     264        '<a href="'.$url_base.$cal_style.'-'.$cal_view.'">'
     265        .$fields[$cal_field]['label'].'</a>';
     266    $calendar_title.= $calendar->get_display_name();
     267    //this should be an assign_block_vars, but I need to assign 'calendar'
     268    //above and at that point I don't have the title yet.
     269    $template->_tpldata['calendar.'][0]['TITLE'] = $calendar_title;
    263270  } // end category calling
    264271
    265   $calendar_title =
    266       '<a href="'.$url_base.$cal_style.'-'.$cal_view.'">'
    267       .$fields[$cal_field]['label'].'</a>';
    268   $calendar_title.= $calendar->get_display_name();
    269   $template->assign_block_vars(
    270     'calendar',
    271     array(
    272       'TITLE' => '<br/>'.$calendar_title,
    273       )
    274     );
    275 
    276272  if ($must_show_list)
    277273  {
    278274    $query = 'SELECT DISTINCT(id)';
    279     $query .= $calendar->inner_sql;
    280     $query .= $calendar->get_date_where();
     275    $query .= $calendar->inner_sql.'
     276  '.$calendar->get_date_where();
    281277    if ( isset($page['super_order_by']) )
    282278    {
     
    290286        'ORDER BY '.$calendar->date_field.' DESC,', $conf['order_by']
    291287        );
    292       $query .= $order_by;
     288      $query .= '
     289  '.$order_by;
    293290    }
    294291
Note: See TracChangeset for help on using the changeset viewer.