вопрос
Привет всем, подскажите как shortstory.tpl сделать так что бы сполер не показывался когда нету изображений в доп полях под сполером?
[xfgiven_img]<a href="[xfvalue_img]" onclick="return hs.expand(this)"><img src="[xfvalue_img] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img]?
[xfgiven_img1]<a href="[xfvalue_img1]" onclick="return hs.expand(this)"><img src="[xfvalue_img1] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img1]
[xfgiven_img2]<a href="[xfvalue_img2]" onclick="return hs.expand(this)"><img src="[xfvalue_img2] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img2]
<div class="spoil">
<div class="smallfont"><input type="button" value="Развернуть" class="input-button" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Свернуть'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Развернуть'; }"/>
</div>
<div class="alt2">
<div style="display: none;">
<div style="width: 500px; margin: 0 auto;">
[xfgiven_img3]<a href="[xfvalue_img3]" onclick="return hs.expand(this)"><img src="[xfvalue_img3] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img3]
[xfgiven_img4]<a href="[xfvalue_img4]" onclick="return hs.expand(this)"><img src="[xfvalue_img4] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img4]
[xfgiven_img5]<a href="[xfvalue_img5]" onclick="return hs.expand(this)"><img src="[xfvalue_img5] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img5]
[xfgiven_img6]<a href="[xfvalue_img6]" onclick="return hs.expand(this)"><img src="[xfvalue_img6] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img6]
[xfgiven_img7]<a href="[xfvalue_img7]" onclick="return hs.expand(this)"><img src="[xfvalue_img7] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img7]
[xfgiven_img8]<a href="[xfvalue_img8]" onclick="return hs.expand(this)"><img src="[xfvalue_img8] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img8]
[xfgiven_img9]<a href="[xfvalue_img9]" onclick="return hs.expand(this)"><img src="[xfvalue_img9] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img9]
[xfgiven_img0]<a href="[xfvalue_img0]" onclick="return hs.expand(this)"><img src="[xfvalue_img0] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img0]
[xfgiven_img11]<a href="[xfvalue_img11]" onclick="return hs.expand(this)"><img src="[xfvalue_img11] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img11]
[xfgiven_img12]<a href="[xfvalue_img12]" onclick="return hs.expand(this)"><img src="[xfvalue_img12] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img12]
[xfgiven_img13]<a href="[xfvalue_img13]" onclick="return hs.expand(this)"><img src="[xfvalue_img13] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img13]
[xfgiven_img14]<a href="[xfvalue_img14]" onclick="return hs.expand(this)"><img src="[xfvalue_img14] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img14]
[xfgiven_img15]<a href="[xfvalue_img15]" onclick="return hs.expand(this)"><img src="[xfvalue_img15] "alt="{title}" width="700" height="450" border="0"></a>[/xfgiven_img15]
</div>
</div>
</div>
</div>