Permalink
Browse files

Add rsslink template

  • Loading branch information...
pudge committed Jan 29, 2004
1 parent 79c169e commit c61527ac585e2858b105d4afd043638f984dda9b
View
@@ -201,6 +201,7 @@ template=templates/reRegisterMail;messages;default
template=templates/recentTopics;misc;default
template=templates/regResult;users;default
template=templates/rereg_mail;messages;default
template=templates/rsslink;misc;default
template=templates/sectionindexd;misc;default
template=templates/sectionisolate;misc;default
template=templates/select;misc;default
@@ -60,7 +60,7 @@ __template__
<A HREF="[% constants.rootdir %]/faq.shtml">faq</A> |
<A HREF="[% constants.rootdir %]/authors.pl">authors</A> |
<A HREF="[% constants.rootdir %]/users.pl">preferences</A> |
<A HREF="[% constants.rootdir %]/[% Slash.sitename2filename(user.currentSection) %].rss"><IMG SRC="[% constants.imagedir %]/rssicon.gif" WIDTH="36" HEIGHT="14" ALT="RSS feed"></A> ]
<A HREF="[% PROCESS rsslink %]"><IMG SRC="[% constants.imagedir %]/rssicon.gif" WIDTH="36" HEIGHT="14" ALT="RSS feed"></A> ]
</FONT>
</CENTER>
</BODY>
@@ -14,7 +14,7 @@ __template__
[% USE Slash %]
<P>[% Slash.horizmenu() %]
<P><A HREF="[% constants.rootdir %]/[% Slash.sitename2filename(user.currentSection) %].rss">RSS</A>
<P><A HREF="[% PROCESS rsslink %]">RSS</A>
<FORM METHOD="GET" ACTION="[% constants.rootdir %]/search.pl">
<INPUT TYPE="TEXT" NAME="query" VALUE="" SIZE="20">
@@ -0,0 +1,28 @@
__section__
default
__description__
Return a proper link to RSS for current user.
__title__
__page__
misc
__lang__
en_US
__name__
rsslink
__template__
[%- IF (constants.rss_allow_index && (
user.is_admin
||
(constants.rss_allow_index > 1 && user.is_subscriber)
||
(constants.rss_allow_index > 2 && !user.is_anon)
))
%][% Slash.root2abs() %]/index.pl?content_type=rss&amp;logtoken=[% user.logtoken | fixparam %][%
ELSE
%][% constants.rootdir %]/[% Slash.sitename2filename(user.currentSection) %].rss[%
END -%]
__seclev__
10000
__version__
$Id$

0 comments on commit c61527a

Please sign in to comment.