From 2a3d5012138715952add2f69e9b3253353ea419d Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 3 Mar 2006 01:57:39 +0000 Subject: 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 git-svn-id: http://piwigo.org/svn/trunk@1062 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/calendar_weekly.class.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/calendar_weekly.class.php') diff --git a/include/calendar_weekly.class.php b/include/calendar_weekly.class.php index 786f90c68..817acb1b0 100644 --- a/include/calendar_weekly.class.php +++ b/include/calendar_weekly.class.php @@ -80,15 +80,19 @@ function generate_category_content($url_base, $view_type) assert($view_type==CAL_VIEW_LIST); - $this->build_nav_bar(CYEAR); // years - if ( count($this->date_components)>=1 ) + if ( count($this->date_components)==0 ) + { + $this->build_nav_bar(CYEAR); // years + } + if ( count($this->date_components)==1 ) { $this->build_nav_bar(CWEEK); // week nav bar 1-53 } - if ( count($this->date_components)>=2 ) + if ( count($this->date_components)==2 ) { $this->build_nav_bar(CDAY); // days nav bar Mon-Sun } + $this->build_next_prev(); return false; } -- cgit v1.2.3