aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-02-10 02:10:41 +0000
committerrvelices <rv-github@modusoptimus.com>2006-02-10 02:10:41 +0000
commitda21a99873a5fd74e4d476fdc948bb052a267949 (patch)
tree0590e5dd81ba1577f8c1f1b7ed5d6568551d02ba /category.php
parentc8e9793412ac8207754021a69753ead23a6c29d5 (diff)
feature 77: standard navigation link - finalized
3 small fixes: simplified code (unnecessary $page['tab_expand']), urls in comments (at end of line nl2br issue+regex+html 4 validated) and $page['where'] correction for most_visited git-svn-id: http://piwigo.org/svn/trunk@1031 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--category.php22
1 files changed, 3 insertions, 19 deletions
diff --git a/category.php b/category.php
index ba7e741eb..d90e76886 100644
--- a/category.php
+++ b/category.php
@@ -88,24 +88,6 @@ SELECT DISTINCT(id)
fill_caddie(array_from_query($query, 'id'));
}
-// creation of the array containing the cat ids to expand in the menu
-// $page['tab_expand'] contains an array with the category ids
-// $page['expand'] contains the string to display in URL with comma
-$page['tab_expand'] = array();
-if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) )
-{
- // the category displayed (in the URL cat=23) must be seen in the menu ->
- // parent categories must be expanded
- $uppercats = explode( ',', $page['uppercats'] );
- foreach ( $uppercats as $uppercat ) {
- array_push( $page['tab_expand'], $uppercat );
- }
-}
-// in case of expanding all authorized cats $page['tab_expand'] is empty
-if ( $user['expand'] )
-{
- $page['tab_expand'] = array();
-}
//----------------------------------------------------- template initialization
//
// Start output of page
@@ -300,6 +282,7 @@ $template->assign_block_vars('summary', array(
'TITLE'=>$lang['hint_search'],
'NAME'=>$lang['search'],
'U_SUMMARY'=> 'search.php',
+'REL'=> 'rel="search"'
));
// comments link
@@ -322,7 +305,8 @@ $template->assign_block_vars(
array(
'TITLE'=>l10n('notification'),
'NAME'=>l10n('Notification'),
- 'U_SUMMARY'=> PHPWG_ROOT_PATH.'notification.php'
+ 'U_SUMMARY'=> PHPWG_ROOT_PATH.'notification.php',
+ 'REL'=> 'rel="nofollow"'
));
if (isset($page['cat'])