{$searchText}

{if $type == 'users'}
{elseif $type == 'collections'}
{else}
{if isset($smarty.get.categories) && is_array($smarty.get.categories)} {foreach from=$smarty.get.categories item=c key=k} {/foreach} {/if}
{/if}
{if $results} {* SHOW USERS *} {if $type == 'users'}
    {foreach from=$results item=u name=foo}
  • {$u.items} {$lang.items}
    {$u.followers} {$lang.followers}
    {$lang.member_since}: {$u.register_datetime|date_format:"j F Y"}
    {if $u.freelance == 'true'} {$lang.available_freelancer}
    {/if}
    {$u.sales} {$lang.sales}
    {section name=foo1 start=1 loop=6 step=1} {if $u.rating >= $smarty.section.foo1.index} {else} {/if} {/section}
  • {/foreach}
{elseif $type == 'collections'} {else}
    {foreach from=$results item=i name=foo}

  • {$i.sales} {$lang.sales} {$i.price} {$currency.symbol}
    {section name=foo start=1 loop=6 step=1} {if $i.rating >= $smarty.section.foo.index} {else} {/if} {/section}
  • {/foreach}
{/if} {else}
{$lang.no_results_found}
{/if}