aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-02-22 01:00:39 +0000
committerrvelices <rv-github@modusoptimus.com>2006-02-22 01:00:39 +0000
commitfe8fbac3cf9af0464d2b0990c88631ff9fd803ac (patch)
tree69d79b344767d2ce6e7d3d0e48e00c55e6fc9bc2 /category.php
parent2afff7c2266c55970e666bda1b02964dd97d8f71 (diff)
calendar redesign: monthly and weekly styles + list/calendar views for monthly
git-svn-id: http://piwigo.org/svn/trunk@1050 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'category.php')
-rw-r--r--category.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/category.php b/category.php
index d8e93d1d5..4150a97c6 100644
--- a/category.php
+++ b/category.php
@@ -161,6 +161,17 @@ $calendar_view_link = PHPWG_ROOT_PATH.'category.php'
if ( ! isset($_GET['calendar']) )
{
$calendar_view_link .= (empty($_GET)? '?':'&' ) . 'calendar=';
+ $template->assign_block_vars(
+ 'calendar_view',
+ array( 'URL' => $calendar_view_link )
+ );
+}
+else
+{
+ $template->assign_block_vars(
+ 'normal_view',
+ array( 'URL' => $calendar_view_link )
+ );
}
$template->assign_vars(
@@ -200,7 +211,6 @@ $template->assign_vars(
'U_LOGOUT' => PHPWG_ROOT_PATH.'category.php?act=logout',
'U_ADMIN'=> PHPWG_ROOT_PATH.'admin.php',
'U_PROFILE'=> PHPWG_ROOT_PATH.'profile.php',
- 'U_CALENDAR' => $calendar_view_link
)
);