Don't add enclosure divs unless we have enclosures.

master
Amitai Schlair 2013-06-26 20:17:17 -04:00
parent 313a094e4c
commit 6a1cbe6f09
2 changed files with 4 additions and 4 deletions

View File

@ -23,11 +23,11 @@
<TMPL_VAR CONTENT> <TMPL_VAR CONTENT>
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> <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 ENCLOSURE>
<TMPL_IF HTML5><section id="inlineenclosure"><TMPL_ELSE><div id="inlineenclosure"></TMPL_IF>
<a href="<TMPL_VAR ENCLOSURE>">Download this episode</a> <a href="<TMPL_VAR ENCLOSURE>">Download this episode</a>
</TMPL_IF>
<TMPL_IF HTML5></section><TMPL_ELSE></div></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> <TMPL_IF HTML5><footer class="inlinefooter"><TMPL_ELSE><div class="inlinefooter"></TMPL_IF>

View File

@ -128,11 +128,11 @@
<TMPL_VAR CONTENT> <TMPL_VAR CONTENT>
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> <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 ENCLOSURE>
<TMPL_IF HTML5><section id="enclosure"><TMPL_ELSE><div id="enclosure"></TMPL_IF>
<a href="<TMPL_VAR ENCLOSURE>">Download this episode</a> <a href="<TMPL_VAR ENCLOSURE>">Download this episode</a>
</TMPL_IF>
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
</TMPL_IF>
<TMPL_UNLESS DYNAMIC> <TMPL_UNLESS DYNAMIC>
<TMPL_IF COMMENTS> <TMPL_IF COMMENTS>