aboutsummaryrefslogtreecommitdiffstats
path: root/include/calendar_weekly.class.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-03-03 01:57:39 +0000
committerrvelices <rv-github@modusoptimus.com>2006-03-03 01:57:39 +0000
commit2a3d5012138715952add2f69e9b3253353ea419d (patch)
tree0edda816004ca51c4781bf12517f0c95ad422eae /include/calendar_weekly.class.php
parent8f33338fed3809c2b964cbe610658b143c96b6c9 (diff)
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
Diffstat (limited to 'include/calendar_weekly.class.php')
-rw-r--r--include/calendar_weekly.class.php10
1 files changed, 7 insertions, 3 deletions
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;
}