aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-01-07 09:29:13 +0100
committerJoey Hess <joey@kitenet.net>2011-02-22 17:33:07 -0400
commit27a80dc40aa4cad93576a35d0af1f6c117ffcb68 (patch)
tree43bd04cb9b416f05ea0c92b63512823f0a09b2d5 /templates
parentdb38cad40f9614ce1c37c818415d430db07813b8 (diff)
downloadikiwiki-27a80dc40aa4cad93576a35d0af1f6c117ffcb68.tar
ikiwiki-27a80dc40aa4cad93576a35d0af1f6c117ffcb68.tar.gz
inline: allow assigning an id to postform/feedlink
This allows per-form/feedlink group customization without having to resort to counting. (cherry picked from commit b134feb0dc2d9a8ff7ae447537fa8bc02811aabd)
Diffstat (limited to 'templates')
-rw-r--r--templates/blogpost.tmpl2
-rw-r--r--templates/feedlink.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/blogpost.tmpl b/templates/blogpost.tmpl
index b9a3bc666..9e49c474a 100644
--- a/templates/blogpost.tmpl
+++ b/templates/blogpost.tmpl
@@ -1,4 +1,4 @@
-<form action="<TMPL_VAR CGIURL>" method="get">
+<form <TMPL_IF POSTFORMID>id="<TMPL_VAR POSTFORMID ESCAPE=HTML>"</TMPL_IF> action="<TMPL_VAR CGIURL>" method="get">
<div class="blogform">
<TMPL_IF RSSURL>
<a class="feedbutton" type="application/rss+xml" rel="alternate" title="<TMPL_VAR RSSDESC>" href="<TMPL_VAR RSSURL>">RSS</a>
diff --git a/templates/feedlink.tmpl b/templates/feedlink.tmpl
index 392871e03..c67ad9c2b 100644
--- a/templates/feedlink.tmpl
+++ b/templates/feedlink.tmpl
@@ -1,4 +1,4 @@
-<div class="feedlink">
+<div <TMPL_IF ID>id="<TMPL_VAR ID ESCAPE=HTML>"</TMPL_IF> class="feedlink">
<TMPL_IF RSSURL>
<a class="feedbutton" type="application/rss+xml" rel="alternate" title="<TMPL_VAR RSSDESC>" href="<TMPL_VAR RSSURL>">RSS</a>
</TMPL_IF>