[gnomeweb-wp] fix feeds URLs in home, news index and press page
- From: Vinicius Scopel Depizzol <vdepizzol src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnomeweb-wp] fix feeds URLs in home, news index and press page
- Date: Fri, 24 Jun 2011 14:20:43 +0000 (UTC)
commit dda21577b434ca2597f76d7c89d494a324d0ae4a
Author: Vinicius Depizzol <vdepizzol gmail com>
Date: Fri Jun 24 11:20:08 2011 -0300
fix feeds URLs in home, news index and press page
wp-content/themes/gnome-grass/page-home.php | 8 ++++++++
wp-content/themes/gnome-grass/page-news.php | 10 ++++++++++
wp-content/themes/gnome-grass/page-press.php | 8 ++++++++
3 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/wp-content/themes/gnome-grass/page-home.php b/wp-content/themes/gnome-grass/page-home.php
index 852a543..7dd966c 100644
--- a/wp-content/themes/gnome-grass/page-home.php
+++ b/wp-content/themes/gnome-grass/page-home.php
@@ -6,6 +6,14 @@ add_action('wp_head', function() {
echo '<link rel="stylesheet" type="text/css" media="all" href="'.get_bloginfo('template_url').'/css/news.css" />';
});
+/*
+ * Add link to global feeds instead of current page comments
+ */
+automatic_feed_links(false);
+add_action('wp_head', function() {
+ echo '<link rel="alternate" type="application/rss+xml" title="'.get_bloginfo('name').' » Feed" href="'.home_url('/').'feed/" />';
+});
+
require_once("header.php"); ?>
<?php
diff --git a/wp-content/themes/gnome-grass/page-news.php b/wp-content/themes/gnome-grass/page-news.php
index 424a945..b0fba97 100644
--- a/wp-content/themes/gnome-grass/page-news.php
+++ b/wp-content/themes/gnome-grass/page-news.php
@@ -12,6 +12,16 @@ function add_news_stylesheet() {
$is_news_home = true;
+
+/*
+ * Add link to global feeds instead of current page comments
+ */
+automatic_feed_links(false);
+add_action('wp_head', function() {
+ echo '<link rel="alternate" type="application/rss+xml" title="'.get_bloginfo('name').' » Feed" href="'.home_url('/').'feed/" />';
+});
+
+
require_once("header.php"); ?>
<!-- container -->
diff --git a/wp-content/themes/gnome-grass/page-press.php b/wp-content/themes/gnome-grass/page-press.php
index ac4f1fa..cf94031 100644
--- a/wp-content/themes/gnome-grass/page-press.php
+++ b/wp-content/themes/gnome-grass/page-press.php
@@ -12,6 +12,14 @@ function add_news_stylesheet() {
$is_news_home = true;
+/*
+ * Add link to press feeds instead of current page comments
+ */
+automatic_feed_links(false);
+add_action('wp_head', function() {
+ echo '<link rel="alternate" type="application/rss+xml" title="'.get_bloginfo('name').' » ' . get_the_title() . ' Feed" href="'.home_url('/').'category/press/feed/" />';
+});
+
require_once("header.php"); ?>
<!-- container -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]