From da21a99873a5fd74e4d476fdc948bb052a267949 Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 10 Feb 2006 02:10:41 +0000 Subject: 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 --- category.php | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'category.php') 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']) -- cgit v1.2.3