mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user