{* *}{strip} {* *} {if !empty($from) && !empty($type)} {capture assign=result} {$number = 0} {section name=images loop=1000} {$number = $number + 1} {* *} {if !empty($config->demo)} {if $number > 2}{break}{/if} {$image = [ 'url' => $theme|cat:'images/demo/slider-'|cat:$number|cat:'.png', 'alt' => '' ]} {else} {findImage from=$from type=$type num=$number view='*' assign=image} {if empty($image['found'])} {break} {/if} {/if} {* *} {if empty($image['link'])}
{$image['alt']}
{else} {$image['alt']} {/if} {/section} {/capture} {* *} {if !empty($result)}
{$result}
{/if} {/if} {/strip}