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/calendar_weekly.class.php

    r1059 r1062  
    8181  assert($view_type==CAL_VIEW_LIST);
    8282
    83   $this->build_nav_bar(CYEAR); // years
    84   if ( count($this->date_components)>=1 )
     83  if ( count($this->date_components)==0 )
     84  {
     85    $this->build_nav_bar(CYEAR); // years
     86  }
     87  if ( count($this->date_components)==1 )
    8588  {
    8689    $this->build_nav_bar(CWEEK); // week nav bar 1-53
    8790  }
    88   if ( count($this->date_components)>=2 )
     91  if ( count($this->date_components)==2 )
    8992  {
    9093    $this->build_nav_bar(CDAY); // days nav bar Mon-Sun
    9194  }
     95  $this->build_next_prev();
    9296  return false;
    9397}
Note: See TracChangeset for help on using the changeset viewer.