summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJo-Herman Haugholt <huyderman@users.sourceforge.net>2008-07-16 07:50:09 +0000
committerJo-Herman Haugholt <huyderman@users.sourceforge.net>2008-07-16 07:50:09 +0000
commit376158e36adb633937e29e511d6ea943b4704b2e (patch)
treeaf12ddda864a155e6db6037fa18df107a3f125dd /templates
parent2cd273e108710f0d2c0b9839f8bb1d24da255e25 (diff)
downloadblogs-376158e36adb633937e29e511d6ea943b4704b2e.tar.gz
blogs-376158e36adb633937e29e511d6ea943b4704b2e.tar.bz2
blogs-376158e36adb633937e29e511d6ea943b4704b2e.zip
Made the header RSS link reference the feed of the current blog instead of the general blog feed when the user is viewing a specific blog. (Works better with crawlers such as Technocrati)
Diffstat (limited to 'templates')
-rw-r--r--templates/header_inc.tpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/header_inc.tpl b/templates/header_inc.tpl
index 7de28ad..267fcd7 100644
--- a/templates/header_inc.tpl
+++ b/templates/header_inc.tpl
@@ -1,7 +1,11 @@
-{* $Header: /cvsroot/bitweaver/_bit_blogs/templates/header_inc.tpl,v 1.12 2008/07/14 21:29:33 wjames5 Exp $ *}
+{* $Header: /cvsroot/bitweaver/_bit_blogs/templates/header_inc.tpl,v 1.13 2008/07/16 07:50:09 huyderman Exp $ *}
{strip}
{if $gBitSystem->isPackageActive( 'rss' ) and $gBitSystem->isFeatureActive( 'blogs_rss' ) and $smarty.const.ACTIVE_PACKAGE eq 'blogs' and $gBitUser->hasPermission( 'p_blogs_view' )}
+ {if !isset($gContent->mBlogId)}
<link rel="alternate" type="application/rss+xml" title="{$gBitSystem->getConfig('blogs_rss_title',"{tr}Blogs{/tr} RSS")}" href="{$smarty.const.BLOGS_PKG_URL}blogs_rss.php?version={$gBitSystem->getConfig('rssfeed_default_version',0)}" />
+ {else}
+ <link rel="alternate" type="application/rss+xml" title="{$gContent->getTitle()}" href="{$smarty.const.BLOGS_PKG_URL}blogs_rss.php?blog_id={$gContent->mBlogId}&amp;version={$gBitSystem->getConfig('rssfeed_default_version',0)}" />
+ {/if}
{/if}
{* this is for ajaxing the readmore portion of blog posts.
* this is ugly, but because recent posts are handled by dynamic center outside of the blog package we have