mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
- $conf['meta_ref'] is a new configuration parameter (Default true)
Meta tags for description, author, and keywords are generated, except if meta robots "noindex" is forced (with some pages like search, recent cats, etc.). In addition, $conf['meta_ref'] = false is forcing "noindex, nofollow". merge -c3040 from branch 2.0 to trunk git-svn-id: http://piwigo.org/svn/trunk@3041 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -56,6 +56,13 @@ if ( !empty($header_notes) )
|
||||
$template->assign('header_notes',$header_notes);
|
||||
}
|
||||
|
||||
// No referencing is required
|
||||
if ( !$conf['meta_ref'] )
|
||||
{
|
||||
$page['meta_robots']['noindex'] = 1;
|
||||
$page['meta_robots']['nofollow'] = 1;
|
||||
}
|
||||
|
||||
if ( !empty($page['meta_robots']) )
|
||||
{
|
||||
$template->append('head_elements',
|
||||
@@ -64,6 +71,10 @@ if ( !empty($page['meta_robots']) )
|
||||
.'">'
|
||||
);
|
||||
}
|
||||
if ( !isset($page['meta_robots']['noindex']) )
|
||||
{
|
||||
$template->assign('meta_ref',1);
|
||||
}
|
||||
|
||||
// refresh
|
||||
if ( isset( $refresh ) and intval($refresh) >= 0
|
||||
|
||||
Reference in New Issue
Block a user