aboutsummaryrefslogtreecommitdiffstats
path: root/include/page_header.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-01-09 01:30:02 +0000
committerrvelices <rv-github@modusoptimus.com>2007-01-09 01:30:02 +0000
commit1e7b286faaf29ae55b60a0bd28b8f5ce74ab6654 (patch)
tree596056b7e67c61841a6acd1faa1beff65b6bf64f /include/page_header.php
parentf68903ec234fe7d76cddbbaa99fb0096d329582c (diff)
feature 606: search engine spider restrictions (meta robots)
git-svn-id: http://piwigo.org/svn/trunk@1703 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/page_header.php')
-rw-r--r--include/page_header.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/page_header.php b/include/page_header.php
index 2a82d5e4b..8b0d69d2d 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -2,10 +2,10 @@
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
-// | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net |
+// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far)
-// | file : $RCSfile$
+// | file : $Id$
// | last update : $Date$
// | last modifier : $Author$
// | revision : $Revision$
@@ -71,6 +71,18 @@ if (count($header_notes) > 0)
}
}
+if ( !empty($page['meta_robots']) )
+{
+ $template->assign_block_vars('head_element',
+ array(
+ 'CONTENT' =>
+ '<meta name="robots" content="'
+ .implode(',', array_keys($page['meta_robots']))
+ .'">'
+ )
+ );
+}
+
// refresh
if ( isset( $refresh ) and intval($refresh) >= 0
and isset( $url_link ) and isset( $redirect_msg ) )