mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #2300 search engine robots should not index/follow combined categories
This commit is contained in:
@@ -613,6 +613,14 @@ elseif ('search'==$page['section'])
|
||||
{
|
||||
$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
|
||||
}
|
||||
elseif ('categories' == $page['section'])
|
||||
{
|
||||
if (isset($page['combined_categories']))
|
||||
{
|
||||
$page['meta_robots'] = array('noindex'=>1, 'nofollow'=>1);
|
||||
}
|
||||
}
|
||||
|
||||
if ( $filter['enabled'] )
|
||||
{
|
||||
$page['meta_robots']['noindex']=1;
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
{/if}
|
||||
<li>
|
||||
{if isset($cat.TITLE)}
|
||||
<a href="{if isset($cat.url)}{$cat.url}{/if}" title="{$cat.TITLE}">{$cat.name}</a>
|
||||
<a href="{if isset($cat.url)}{$cat.url}{/if}" title="{$cat.TITLE}" rel="nofollow">{$cat.name}</a>
|
||||
{else}
|
||||
<a href="{if isset($cat.url)}{$cat.url}{/if}">{$cat.name}</a>
|
||||
<a href="{if isset($cat.url)}{$cat.url}{/if}" rel="nofollow">{$cat.name}</a>
|
||||
{/if}
|
||||
{if isset($cat.count_images) and $cat.count_images > 0}
|
||||
<span class="badge" title="{$cat.count_images|translate_dec:'%d photo':'%d photos'}">{$cat.count_images}</span>
|
||||
|
||||
Reference in New Issue
Block a user