Changeset 1031 for trunk/category.php
- Timestamp:
- Feb 10, 2006, 3:10:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/category.php
r1029 r1031 89 89 } 90 90 91 // creation of the array containing the cat ids to expand in the menu92 // $page['tab_expand'] contains an array with the category ids93 // $page['expand'] contains the string to display in URL with comma94 $page['tab_expand'] = array();95 if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) )96 {97 // the category displayed (in the URL cat=23) must be seen in the menu ->98 // parent categories must be expanded99 $uppercats = explode( ',', $page['uppercats'] );100 foreach ( $uppercats as $uppercat ) {101 array_push( $page['tab_expand'], $uppercat );102 }103 }104 // in case of expanding all authorized cats $page['tab_expand'] is empty105 if ( $user['expand'] )106 {107 $page['tab_expand'] = array();108 }109 91 //----------------------------------------------------- template initialization 110 92 // … … 301 283 'NAME'=>$lang['search'], 302 284 'U_SUMMARY'=> 'search.php', 285 'REL'=> 'rel="search"' 303 286 )); 304 287 … … 323 306 'TITLE'=>l10n('notification'), 324 307 'NAME'=>l10n('Notification'), 325 'U_SUMMARY'=> PHPWG_ROOT_PATH.'notification.php' 308 'U_SUMMARY'=> PHPWG_ROOT_PATH.'notification.php', 309 'REL'=> 'rel="nofollow"' 326 310 )); 327 311
Note: See TracChangeset
for help on using the changeset viewer.