summaryrefslogtreecommitdiff
path: root/templates/header_inc.tpl
diff options
context:
space:
mode:
authorJo-Herman Haugholt <huyderman@users.sourceforge.net>2008-07-16 08:18:52 +0000
committerJo-Herman Haugholt <huyderman@users.sourceforge.net>2008-07-16 08:18:52 +0000
commit95138a1f3943f0e0b7a08617dd33b861594d8daf (patch)
treed0c3f05279bc213e0c6fa61cde556b5cba1de196 /templates/header_inc.tpl
parent376158e36adb633937e29e511d6ea943b4704b2e (diff)
downloadblogs-95138a1f3943f0e0b7a08617dd33b861594d8daf.tar.gz
blogs-95138a1f3943f0e0b7a08617dd33b861594d8daf.tar.bz2
blogs-95138a1f3943f0e0b7a08617dd33b861594d8daf.zip
Updated the header feed links for a blog post to point to the feeds for the blogs it was posted to rather than the general blog feed
Diffstat (limited to 'templates/header_inc.tpl')
-rw-r--r--templates/header_inc.tpl12
1 files changed, 8 insertions, 4 deletions
diff --git a/templates/header_inc.tpl b/templates/header_inc.tpl
index 267fcd7..37e5d38 100644
--- a/templates/header_inc.tpl
+++ b/templates/header_inc.tpl
@@ -1,10 +1,14 @@
-{* $Header: /cvsroot/bitweaver/_bit_blogs/templates/header_inc.tpl,v 1.13 2008/07/16 07:50:09 huyderman Exp $ *}
+{* $Header: /cvsroot/bitweaver/_bit_blogs/templates/header_inc.tpl,v 1.14 2008/07/16 08:18:52 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)}" />
+ {if isset($gContent->mBlogId)}
+ <link rel="alternate" type="application/rss+xml" title="{$gContent->getTitle()}" href="{$smarty.const.BLOGS_PKG_URL}blogs_rss.php?blog_id={$gContent->blog_content_id}&amp;version={$gBitSystem->getConfig('rssfeed_default_version',0)}" />
+ {elseif isset($post_info.blogs)}
+ {foreach from=$post_info.blogs item=memberBlog key=blogContentId name=memberBlogLoop}
+ <link rel="alternate" type="application/rss+xml" title="{$memberBlog.title}" href="{$smarty.const.BLOGS_PKG_URL}blogs_rss.php?blog_id={$memberBlog.blog_id}&amp;version={$gBitSystem->getConfig('rssfeed_default_version',0)}" />
+ {/foreach}
{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)}" />
+ <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)}" />
{/if}
{/if}
{* this is for ajaxing the readmore portion of blog posts.