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
This commit is contained in:
rvelices
2006-03-03 01:57:39 +00:00
parent 8f33338fed
commit 2a3d501213
9 changed files with 176 additions and 96 deletions
+7 -3
View File
@@ -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;
}