Don't add enclosure divs unless we have enclosures.
[hurd-web.git] / .templates / newsitem.tmpl
index 910c206..c7153bd 100644 (file)
 <TMPL_VAR CONTENT>
 <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
 
-<TMPL_IF HTML5><section id="newsenclosure"><TMPL_ELSE><div id="newsenclosure"></TMPL_IF>
 <TMPL_IF ENCLOSURE>
+<TMPL_IF HTML5><section id="newsenclosure"><TMPL_ELSE><div id="newsenclosure"></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="newsitemfooter"><TMPL_ELSE><div class="newsitemfooter"></TMPL_IF>