aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-08-17 01:56:14 +0000
committerrvelices <rv-github@modusoptimus.com>2006-08-17 01:56:14 +0000
commit3b3e417dafe4498b0da660eb038f65a473ca9fa8 (patch)
tree31b7f91e6a41790d3bcc082a6956b2ec7acbfd79
parentd7ba4d77fe14adee382436238e40a28786791a91 (diff)
ability to add content to html head elements
git-svn-id: http://piwigo.org/svn/trunk@1539 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--notification.php14
-rw-r--r--template/yoga/header.tpl3
2 files changed, 16 insertions, 1 deletions
diff --git a/notification.php b/notification.php
index b1d1d8db7..ea6381ebf 100644
--- a/notification.php
+++ b/notification.php
@@ -51,18 +51,30 @@ INSERT INTO '.USER_FEED_TABLE.'
;';
pwg_query($query);
+$feed_url=PHPWG_ROOT_PATH.'feed.php?feed='.$page['feed'];
// +-----------------------------------------------------------------------+
// | template initialization |
// +-----------------------------------------------------------------------+
$title = l10n('Notification');
$page['body_id'] = 'theNotificationPage';
+$template->assign_block_vars('head_element',
+ array(
+ 'CONTENT' => '<meta name="robots" content="noindex,nofollow">'
+ )
+ );
+$template->assign_block_vars('head_element',
+ array(
+ 'CONTENT' => '<link rel="alternate" type="application/rss+xml" href="'.$feed_url.'">'
+ )
+ );
+
include(PHPWG_ROOT_PATH.'include/page_header.php');
$template->set_filenames(array('notification'=>'notification.tpl'));
$template->assign_vars(
array(
- 'FEED_URL' => PHPWG_ROOT_PATH.'feed.php?feed='.$page['feed'],
+ 'FEED_URL' => $feed_url,
'U_HOME' => make_index_url(),
)
);
diff --git a/template/yoga/header.tpl b/template/yoga/header.tpl
index 06d47a827..6238c5d06 100644
--- a/template/yoga/header.tpl
+++ b/template/yoga/header.tpl
@@ -34,6 +34,9 @@ the "text/nonsense" prevents gecko based browsers to load it -->
</style>
<script type="text/javascript" src="{pwg_root}template-common/pngfix.js"></script>
<![endif]-->
+<!-- BEGIN head_element -->
+{head_element.CONTENT}
+<!-- END head_element -->
</head>
<body id="{BODY_ID}">