Changeset 1031 for trunk/category.php


Ignore:
Timestamp:
Feb 10, 2006, 3:10:41 AM (18 years ago)
Author:
rvelices
Message:

feature 77: standard navigation link - finalized

3 small fixes: simplified code (unnecessary $pagetab_expand),
urls in comments (at end of line nl2br issue+regex+html 4 validated) and
$pagewhere correction for most_visited

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/category.php

    r1029 r1031  
    8989}
    9090
    91 // creation of the array containing the cat ids to expand in the menu
    92 // $page['tab_expand'] contains an array with the category ids
    93 // $page['expand'] contains the string to display in URL with comma
    94 $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 expanded
    99   $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 empty
    105 if ( $user['expand'] )
    106 {
    107   $page['tab_expand'] = array();
    108 }
    10991//----------------------------------------------------- template initialization
    11092//
     
    301283'NAME'=>$lang['search'],
    302284'U_SUMMARY'=> 'search.php',
     285'REL'=> 'rel="search"'
    303286));
    304287
     
    323306    'TITLE'=>l10n('notification'),
    324307    'NAME'=>l10n('Notification'),
    325     'U_SUMMARY'=> PHPWG_ROOT_PATH.'notification.php'
     308    'U_SUMMARY'=> PHPWG_ROOT_PATH.'notification.php',
     309    'REL'=> 'rel="nofollow"'
    326310));
    327311
Note: See TracChangeset for help on using the changeset viewer.