{foreach item=ribbon from=$ribbons.ribbons} {if $ribbon.class && $ribbon.text}
{$ribbon.text}
{/if} {/foreach}