Changeset 1703
- Timestamp:
- Jan 9, 2007, 2:30:02 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/menubar.inc.php
- Property svn:executable deleted
r1677 r1703 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 6PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | branch : BSF (Best So Far) … … 188 188 'URL' => get_root_url().'random.php', 189 189 'TITLE' => $lang['random_cat_hint'], 190 'NAME' => $lang['random_cat'] 190 'NAME' => $lang['random_cat'], 191 'REL'=> 'rel="nofollow"' 191 192 )); 192 193 … … 197 198 'URL' => make_index_url(array('section' => 'recent_pics')), 198 199 'TITLE' => $lang['recent_pics_cat_hint'], 199 'NAME' => $lang['recent_pics_cat'] 200 'NAME' => $lang['recent_pics_cat'], 200 201 )); 201 202 // recent cats … … 205 206 'URL' => make_index_url(array('section' => 'recent_cats')), 206 207 'TITLE' => $lang['recent_cats_cat_hint'], 207 'NAME' => $lang['recent_cats_cat'] 208 'NAME' => $lang['recent_cats_cat'], 208 209 )); 209 210 … … 222 223 ), 223 224 'TITLE' => $lang['calendar_hint'], 224 'NAME' => $lang['calendar'] 225 'NAME' => $lang['calendar'], 226 'REL'=> 'rel="nofollow"' 225 227 ) 226 228 ); -
trunk/include/page_header.php
r1678 r1703 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 6PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | branch : BSF (Best So Far) 8 // | file : $ RCSfile$8 // | file : $Id$ 9 9 // | last update : $Date$ 10 10 // | last modifier : $Author$ … … 72 72 } 73 73 74 if ( !empty($page['meta_robots']) ) 75 { 76 $template->assign_block_vars('head_element', 77 array( 78 'CONTENT' => 79 '<meta name="robots" content="' 80 .implode(',', array_keys($page['meta_robots'])) 81 .'">' 82 ) 83 ); 84 } 85 74 86 // refresh 75 87 if ( isset( $refresh ) and intval($refresh) >= 0 -
trunk/include/section_init.inc.php
r1701 r1703 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 6PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | branch : BSF (Best So Far) … … 248 248 249 249 $page['list'] = array(); 250 250 251 251 // No pictures 252 252 if (empty($tokens[$next_token])) … … 351 351 'cat_id_uppercat' => $result['id_uppercat'], 352 352 'uppercats' => $result['uppercats'], 353 'title' => 353 'title' => 354 354 get_cat_display_name($result['name'], '', false), 355 'thumbnails_include' => 355 'thumbnails_include' => 356 356 (($result['nb_images'] > 0) or (isset($page['flat_recent_cat']))) 357 357 ? 'include/category_default.inc.php' … … 363 363 { 364 364 $page['title'] = $lang['no_category']; 365 $page['thumbnails_include'] = 365 $page['thumbnails_include'] = 366 366 (isset($page['flat_recent_cat'])) 367 367 ? 'include/category_default.inc.php' … … 374 374 } 375 375 376 if 376 if 377 377 ( 378 378 (!isset($page['chronology_field'])) and 379 379 ( 380 (isset($page['category'])) or 380 (isset($page['category'])) or 381 381 (isset($page['flat_recent_cat'])) 382 382 ) … … 459 459 else 460 460 { 461 $forbidden = 461 $forbidden = 462 462 get_sql_condition_FandF 463 463 ( … … 730 730 } 731 731 732 // add meta robots noindex, nofollow to avoid unnecesary robot crawls 733 $page['meta_robots']=array(); 734 if ( isset($page['chronology_field']) or isset($page['flat_recent_cat']) 735 or 'list'==$page['section'] or 'recent_pics'==$page['section'] ) 736 { 737 $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1); 738 } 739 elseif ('tags' == $page['section']) 740 { 741 if ( count($page['tag_ids'])>1 ) 742 { 743 $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1); 744 } 745 } 746 elseif ('recent_cats'==$page['section']) 747 { 748 $page['meta_robots']['nofollow']=1; 749 } 750 if ( $filter['enabled'] ) 751 { 752 $page['meta_robots']['noindex']=1; 753 } 754 732 755 trigger_action('loc_end_section_init'); 733 756 ?> -
trunk/notification.php
r1636 r1703 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 5PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | branch : BSF (Best So Far) 8 // | file : $ RCSfile$8 // | file : $Id$ 9 9 // | last update : $Date$ 10 10 // | last modifier : $Author$ … … 61 61 $title = l10n('Notification'); 62 62 $page['body_id'] = 'theNotificationPage'; 63 $template->assign_block_vars('head_element', 64 array( 65 'CONTENT' => '<meta name="robots" content="noindex,nofollow">' 66 ) 67 ); 63 $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1); 64 68 65 $template->assign_block_vars('head_element', 69 66 array( -
trunk/picture.php
r1682 r1703 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 6PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | branch : BSF (Best So Far) 8 // | file : $ RCSfile$8 // | file : $Id$ 9 9 // | last update : $Date$ 10 10 // | last modifier : $Author$ … … 428 428 ); 429 429 $redirect_msg = nl2br(l10n('redirect_msg')); 430 $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1); 430 431 } 431 432 … … 447 448 { 448 449 $url_metadata = add_url_params( $url_metadata, array('metadata'=>null) ); 450 } 451 else 452 { 453 $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1); 449 454 } 450 455 } -
trunk/template/yoga/index.tpl
r1677 r1703 33 33 34 34 <!-- BEGIN flat_recent_cat --> 35 <li><a href="{flat_recent_cat.URL}" title="{lang:flat_recent_cat_hint}" ><img src="{pwg_root}{themeconf:icon_dir}/flat_recent_cat.png" class="button" alt="{lang:flat_recent_cat_hint}"></a></li>35 <li><a href="{flat_recent_cat.URL}" title="{lang:flat_recent_cat_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/flat_recent_cat.png" class="button" alt="{lang:flat_recent_cat_hint}"></a></li> 36 36 <!-- END flat_recent_cat --> 37 37 -
trunk/template/yoga/menubar.tpl
r1677 r1703 15 15 <dl id="mbCategories"> 16 16 <!-- BEGIN start_filter --> 17 <a href="{start_filter.URL}" title="{lang:start_filter_hint}" ><img src="{pwg_root}{themeconf:icon_dir}/start_filter.png" class="buttonmenu" alt="{lang:start_filter_hint}"></a>17 <a href="{start_filter.URL}" title="{lang:start_filter_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/start_filter.png" class="buttonmenu" alt="{lang:start_filter_hint}"></a> 18 18 <!-- END start_filter --> 19 19 <!-- BEGIN stop_filter --> … … 35 35 <li> 36 36 <!-- BEGIN add --> 37 <a href="{tags.tag.add.URL}" title="{tags.tag.add.TITLE}" ><img src="{pwg_root}{themeconf:icon_dir}/add_tag.png" alt="+"></a>37 <a href="{tags.tag.add.URL}" title="{tags.tag.add.TITLE}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/add_tag.png" alt="+"></a> 38 38 <!-- END add --> 39 39 <a href="{tags.tag.URL}" class="{tags.tag.CLASS}" title="{tags.tag.TITLE}">{tags.tag.NAME}</a> … … 50 50 <ul> 51 51 <!-- BEGIN special_cat --> 52 <li><a href="{special_cat.URL}" title="{special_cat.TITLE}" >{special_cat.NAME}</a></li>52 <li><a href="{special_cat.URL}" title="{special_cat.TITLE}" {special_cat.REL}>{special_cat.NAME}</a></li> 53 53 <!-- END special_cat --> 54 54 </ul>
Note: See TracChangeset
for help on using the changeset viewer.