Don't add enclosure divs unless we have enclosures.
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Thu, 27 Jun 2013 00:17:17 +0000 (20:17 -0400)
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Thu, 27 Jun 2013 00:17:17 +0000 (20:17 -0400)
templates/inlinepage.tmpl
templates/page.tmpl

index cf0b6037e24a8f40b2d115e8ccbd42e597e3874b..2e80a51ccad0e93fd7e5e51bfb7a79b16e1fa0a5 100644 (file)
 <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>
 
index ac60863843b1d87aff11a117672b892f5ffeec96..b8372ed8e476fdc4b4baea63d93ce51d8cb448b1 100644 (file)
 <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>