[gnomeweb-wp] fix feeds URLs in home, news index and press page



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').' &raquo; 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').' &raquo; 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').' &raquo; ' . 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]