{capture assign='nocontent'}
{text key='photo+no_photo'}
{/capture} {capture assign='cmp'}
{foreach from=$latest item='p'} {foreachelse} {$nocontent} {/foreach}
{if $featured} {/if}
{/capture} {$cmp}