Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make LINK REL stuff a separate template

  • Loading branch information...
commit 50446b1358617bef88a910de64e5556b8894652e 1 parent b1acd89
@pudge pudge authored
View
1  themes/slashcode/THEME
@@ -125,6 +125,7 @@ template=templates/isEligible;metamod;default
template=templates/linkComment;misc;default
template=templates/linkCommentPages;misc;default
template=templates/linkStory;misc;default
+template=templates/linkrel;misc;default
template=templates/listTopics;topics;default
template=templates/lockTest;misc;default
template=templates/loginForm;users;default
View
1  themes/slashcode/templates/header;misc;admin
@@ -11,6 +11,7 @@ en_US
__name__
header
__template__
+[% INCLUDE linkrel %]
</HEAD>
<BODY BGCOLOR="[% user.bg.1 %]" LINK="[% user.bg.3 %]" VLINK="[% user.bg.3 %]" TOPMARGIN="0" LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">
View
21 themes/slashcode/templates/header;misc;default
@@ -13,26 +13,7 @@ en_US
__name__
header
__template__
-[%# reserved for article.pl links only ... others possible. %]
-[%# journals, comments, admin story list? %]
-[%# should this be a separate template? %]
-[% IF env.script_name.search('article\.pl') -%]
- [%- IF link.prev %]
-<LINK REL="prev" HREF="[% constants.rootdir %]/article.pl?sid=[% link.prev.sid %]" TITLE="[% link.prev.title | strip_attribute %]">
- [%- END ; IF link.next %]
-<LINK REL="next" HREF="[% constants.rootdir %]/article.pl?sid=[% link.next.sid %]" TITLE="[% link.next.title | strip_attribute %]">
- [%- END ; IF link.author # author is uid %]
-<LINK REL="author" HREF="[% constants.rootdir %]/search.pl?op=stories&amp;author=[% link.author %]">
- [%- END ;
-ELSE ; # default author link, where author is a nickname
- IF link.author %]
-<LINK REL="author" HREF="[% constants.rootdir %]/~[% link.author | fixparam %]/" TITLE="[% link.author | strip_attribute %]">
- [%- END ;
-END ; IF link.section %]
-<LINK REL="parent" HREF="[% constants.rootdir %]/index.pl?section=[% link.section | fixparam %]" TITLE="[% link.section | strip_attribute %]">
-[%- END %]
-<LINK REL="top" HREF="[% constants.rootdir %]/" TITLE="[% constants.slogan | strip_attribute %]">
-<LINK REL="search" HREF="[% constants.rootdir %]/search.pl" TITLE="Search [% constants.sitename | strip_attribute %]">
+[% INCLUDE linkrel %]
</HEAD>
<BODY BGCOLOR="[% user.bg.0 %]" TEXT="[% user.fg.1 %]" LINK="[% user.bg.3 %]" VLINK="[% user.fg.1 %]">
View
2  themes/slashcode/templates/header;misc;light
@@ -11,7 +11,7 @@ en_US
__name__
header
__template__
-[% USE Slash %]
+[% INCLUDE linkrel %]
</HEAD>
<BODY>
View
37 themes/slashcode/templates/linkrel;misc;default
@@ -0,0 +1,37 @@
+__section__
+default
+__description__
+Add LINK REL navigation stuff for header
+
+No specially passed variables
+__title__
+
+__page__
+misc
+__lang__
+en_US
+__name__
+linkrel
+__template__
+[%# reserved for article.pl links only ... others possible. %]
+[%# journals, comments, admin story list? %]
+[% IF env.script_name.search('article\.pl') -%]
+ [%- IF link.prev %]
+<LINK REL="prev" HREF="[% constants.rootdir %]/article.pl?sid=[% link.prev.sid %]" TITLE="[% link.prev.title | strip_attribute %]">
+ [%- END ; IF link.next %]
+<LINK REL="next" HREF="[% constants.rootdir %]/article.pl?sid=[% link.next.sid %]" TITLE="[% link.next.title | strip_attribute %]">
+ [%- END ; IF link.author # author is uid %]
+<LINK REL="author" HREF="[% constants.rootdir %]/search.pl?op=stories&amp;author=[% link.author %]">
+ [%- END ;
+ELSE ; # default author link, where author is a nickname
+ IF link.author %]
+<LINK REL="author" HREF="[% constants.rootdir %]/~[% link.author | fixparam %]/" TITLE="[% link.author | strip_attribute %]">
+ [%- END ;
+END ; IF link.section %]
+<LINK REL="parent" HREF="[% constants.rootdir %]/" TITLE="[% link.section | strip_attribute %]">
+[%- END %]
+<LINK REL="top" HREF="[% constants.real_rootdir %]/" TITLE="[% constants.slogan | strip_attribute %]">
+<LINK REL="search" HREF="[% constants.rootdir %]/search.pl" TITLE="Search [% constants.sitename | strip_attribute %]">
+
+__seclev__
+10000
Please sign in to comment.
Something went wrong with that request. Please try again.