aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2013-06-26 20:17:17 -0400
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2013-06-26 20:17:17 -0400
commit6a1cbe6f09e20ead8393de184480a403bc20cda1 (patch)
treecb871ddaa329ec5702200eec8520b07d3261896f /templates
parent313a094e4c22fabe719dbdf0156a2fd7e329408b (diff)
downloadikiwiki-6a1cbe6f09e20ead8393de184480a403bc20cda1.tar
ikiwiki-6a1cbe6f09e20ead8393de184480a403bc20cda1.tar.gz
Don't add enclosure divs unless we have enclosures.
Diffstat (limited to 'templates')
-rw-r--r--templates/inlinepage.tmpl4
-rw-r--r--templates/page.tmpl4
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/inlinepage.tmpl b/templates/inlinepage.tmpl
index cf0b6037e..2e80a51cc 100644
--- a/templates/inlinepage.tmpl
+++ b/templates/inlinepage.tmpl
@@ -23,11 +23,11 @@
<TMPL_VAR CONTENT>
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
-<TMPL_IF HTML5><section id="inlineenclosure"><TMPL_ELSE><div id="inlineenclosure"></TMPL_IF>
<TMPL_IF ENCLOSURE>
+<TMPL_IF HTML5><section id="inlineenclosure"><TMPL_ELSE><div id="inlineenclosure"></TMPL_IF>
<a href="<TMPL_VAR ENCLOSURE>">Download this episode</a>
-</TMPL_IF>
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
+</TMPL_IF>
<TMPL_IF HTML5><footer class="inlinefooter"><TMPL_ELSE><div class="inlinefooter"></TMPL_IF>
diff --git a/templates/page.tmpl b/templates/page.tmpl
index ac6086384..b8372ed8e 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -128,11 +128,11 @@
<TMPL_VAR CONTENT>
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
-<TMPL_IF HTML5><section id="enclosure"><TMPL_ELSE><div id="enclosure"></TMPL_IF>
<TMPL_IF ENCLOSURE>
+<TMPL_IF HTML5><section id="enclosure"><TMPL_ELSE><div id="enclosure"></TMPL_IF>
<a href="<TMPL_VAR ENCLOSURE>">Download this episode</a>
-</TMPL_IF>
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
+</TMPL_IF>
<TMPL_UNLESS DYNAMIC>
<TMPL_IF COMMENTS>