{if $show == 'random'} {section name=r_list loop=$random}
{$random[r_list].title|truncate:30}
{/section} {/if} {if $show == 'latest'} {section name=r_list loop=$latest}
{$latest[r_list].title|truncate:30}
{/section} {/if}