Re: Code for hiding block titles |
Subject: Re: Code for hiding block titles by Will on 2008/2/15 7:47:24 change:
<{foreach item=block from=$xoBlocks.canvas_left}><{includeq file="$theme_name/theme_blockleft.html"}>
<br />
<{/foreach}>
To:
<{foreach item=block from=$xoBlocks.canvas_left}>
<{if $block.title|regex_replace:"/.*none*/":"none" ne "none"}>
<div class="<{cycle values="blockTitle"}>">
<{$block.title}></div><{/if}><div class="blockContent">
<{$block.content}></div>
<{/foreach}>
clear templates, should work the same. |