aboutsummaryrefslogtreecommitdiff
path: root/templates/trails.tmpl
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2011-11-04 19:32:41 +0000
committerSimon McVittie <smcv@debian.org>2011-11-09 22:49:37 +0000
commit156f70912213b6520e9056050a8827de66e80176 (patch)
tree13165457c8162772309ee6b725f0cbeabd65cfd9 /templates/trails.tmpl
parent7179ddce82944702f460bd931448de08c341633d (diff)
downloadikiwiki-156f70912213b6520e9056050a8827de66e80176.tar
ikiwiki-156f70912213b6520e9056050a8827de66e80176.tar.gz
trail: new plugin (3rd attempt)
Diffstat (limited to 'templates/trails.tmpl')
-rw-r--r--templates/trails.tmpl23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/trails.tmpl b/templates/trails.tmpl
new file mode 100644
index 000000000..54c046043
--- /dev/null
+++ b/templates/trails.tmpl
@@ -0,0 +1,23 @@
+<TMPL_LOOP TRAILLOOP>
+<TMPL_IF __FIRST__><TMPL_IF HTML5><nav class="trails"><TMPL_ELSE><div class="trails"></TMPL_IF></TMPL_IF>
+<div class="trail">
+<TMPL_IF PREVPAGE>
+<span class="trailprev">
+<span class="trailarrow">←</span>
+<a href="<TMPL_VAR PREVURL>"><TMPL_VAR PREVTITLE></a>
+<span class="trailsep">|</span>
+</span>
+</TMPL_IF>
+<span class="trailup">
+<a href="<TMPL_VAR TRAILURL>"><TMPL_VAR TRAILTITLE></a>
+</span>
+<TMPL_IF NEXTPAGE>
+<span class="trailnext">
+<span class="trailsep">|</span>
+<a href="<TMPL_VAR NEXTURL>"><TMPL_VAR NEXTTITLE></a>
+<span class="trailarrow">→</span>
+</span>
+</TMPL_IF>
+</div>
+<TMPL_IF __LAST__><TMPL_IF HTML5></nav><TMPL_ELSE></div></TMPL_IF></TMPL_IF>
+</TMPL_LOOP>