aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-08-19 17:00:20 +0000
committerplegall <plg@piwigo.org>2005-08-19 17:00:20 +0000
commit939c01e410286691fd80029bed811406ede3f1e5 (patch)
tree881e88676f856217b4b107060fed9fabeeeb93fe /category.php
parentede184cacc411173ba29f05f9b8a12d18a595e0f (diff)
- improvement : standardization of categories navigation bar on top of
administration screen element_set_(global|unit), cat_modify, cat_list, cat_perm. - new : direct link to admin/cat_modify from category.php. git-svn-id: http://piwigo.org/svn/trunk@834 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'category.php')
-rw-r--r--category.php29
1 files changed, 26 insertions, 3 deletions
diff --git a/category.php b/category.php
index 9c597b23a..cfef60065 100644
--- a/category.php
+++ b/category.php
@@ -171,8 +171,7 @@ $template->assign_vars(array(
'U_REGISTER' => add_session_id( PHPWG_ROOT_PATH.'register.php' ),
'U_LOGOUT' => PHPWG_ROOT_PATH.'category.php?act=logout',
'U_ADMIN'=>add_session_id( PHPWG_ROOT_PATH.'admin.php' ),
- 'U_PROFILE'=>add_session_id(PHPWG_ROOT_PATH.'profile.php'),
- 'U_CADDIE'=>add_session_id(PHPWG_ROOT_PATH.'category.php'.get_query_string_diff(array('caddie')).'&amp;caddie=1')
+ 'U_PROFILE'=>add_session_id(PHPWG_ROOT_PATH.'profile.php')
)
);
//-------------------------------------------------------------- external links
@@ -313,6 +312,22 @@ $template->assign_block_vars(
'U_SUMMARY'=>add_session_id(PHPWG_ROOT_PATH.'notification.php')
));
+if (isset($page['cat'])
+ and is_numeric($page['cat'])
+ and 'admin' == $user['status'])
+{
+ $template->assign_block_vars(
+ 'edit',
+ array(
+ 'URL' =>
+ add_session_id(
+ PHPWG_ROOT_PATH.'admin.php?page=cat_modify'
+ .'&amp;cat_id='.$page['cat']
+ )
+ )
+ );
+}
+
//------------------------------------------------------ main part : thumbnails
if (isset($page['cat'])
and ((is_numeric($page['cat']) and $page['cat_nb_images'] != 0)
@@ -329,7 +344,15 @@ if (isset($page['cat'])
if ('admin' == $user['status'])
{
- $template->assign_block_vars('caddie', array());
+ $template->assign_block_vars(
+ 'caddie',
+ array(
+ 'URL' =>
+ add_session_id(
+ PHPWG_ROOT_PATH.'category.php'
+ .get_query_string_diff(array('caddie')).'&amp;caddie=1')
+ )
+ );
}
}
elseif (isset($page['cat']) and $page['cat'] == 'calendar')