diff options
| author | wjames5 <will@tekimaki.com> | 2009-10-09 04:23:48 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2009-10-09 04:23:48 +0000 |
| commit | 3bde3080adb2665e56c79a6be90c5d649d9f1b83 (patch) | |
| tree | 89b426269b020d5f3addc42cb7d373a12d3e293c | |
| parent | 9387963412f545b848d68912d4156c3918c56f14 (diff) | |
| download | boards-3bde3080adb2665e56c79a6be90c5d649d9f1b83.tar.gz boards-3bde3080adb2665e56c79a6be90c5d649d9f1b83.tar.bz2 boards-3bde3080adb2665e56c79a6be90c5d649d9f1b83.zip | |
fix header links to support boards and topics feeds
| -rw-r--r-- | templates/header_inc.tpl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/header_inc.tpl b/templates/header_inc.tpl index ff54541..7309ce4 100644 --- a/templates/header_inc.tpl +++ b/templates/header_inc.tpl @@ -45,8 +45,13 @@ {/literal} /* ]]> */</script> - {if $gBitSystem->isPackageActive( 'rss' ) && !empty($board)} - <link rel="alternate" type="application/rss+xml" title="Board {$board->mInfo.title|escape} RSS" href="{$smarty.const.BOARDS_PKG_URL}boards_rss.php?version=rss20&b={$smarty.request.b}{if $gBitSystem->getConfig( 'rssfeed_httpauth' ) && $gBitUser->isRegistered()}&httpauth=y{/if}" /> - <link rel="alternate" type="application/rss+xml" title="Board {$board->mInfo.title|escape} ATOM" href="{$smarty.const.BOARDS_PKG_URL}boards_rss.php?version=atom&b={$smarty.request.b}{if $gBitSystem->getConfig( 'rssfeed_httpauth' ) && $gBitUser->isRegistered()}&httpauth=y{/if}" /> + {if $gBitSystem->isPackageActive( 'rss' )} + {if $smarty.request.b} + <link rel="alternate" type="application/rss+xml" title="Board {$board->mInfo.title|escape} RSS" href="{$smarty.const.BOARDS_PKG_URL}boards_rss.php?version=rss20&b={$smarty.request.b}{if $gBitSystem->getConfig( 'rssfeed_httpauth' ) && $gBitUser->isRegistered()}&httpauth=y{/if}" /> + <link rel="alternate" type="application/rss+xml" title="Board {$board->mInfo.title|escape} ATOM" href="{$smarty.const.BOARDS_PKG_URL}boards_rss.php?version=atom&b={$smarty.request.b}{if $gBitSystem->getConfig( 'rssfeed_httpauth' ) && $gBitUser->isRegistered()}&httpauth=y{/if}" /> + {elseif $smarty.request.t} + <link rel="alternate" type="application/rss+xml" title="Topic {$thread->getTitle()|escape} RSS" href="{$smarty.const.BOARDS_PKG_URL}boards_rss.php?version=rss20&t={$smarty.request.t}{if $gBitSystem->getConfig( 'rssfeed_httpauth' ) && $gBitUser->isRegistered()}&httpauth=y{/if}" /> + <link rel="alternate" type="application/rss+xml" title="Topic {$thread->getTitle()|escape} ATOM" href="{$smarty.const.BOARDS_PKG_URL}boards_rss.php?version=atom&t={$smarty.request.t}{if $gBitSystem->getConfig( 'rssfeed_httpauth' ) && $gBitUser->isRegistered()}&httpauth=y{/if}" /> + {/if} {/if} {/if} |
