Яндекс.Директ автомат {if !empty($DATA.DIRECT) AND $FRAMEWORK.controller=="direct/index/phrase"} / {if !empty($DATA.DIRECT.USER)}Ставки / {foreach from=$DATA.DIRECT.ACCOUNT item=VALUE}{$VALUE.login} / {/foreach}{else}Компании / {/if}{$DATA.DIRECT.COMPANY.name} / {$DATA.DIRECT.GROUP.name} {elseif !empty($DATA.DIRECT) AND $FRAMEWORK.controller=="direct/index/group"} / {if !empty($DATA.DIRECT.USER)}Ставки / {foreach from=$DATA.DIRECT.ACCOUNT item=VALUE}{$VALUE.login} / {/foreach}{else}Компании / {/if}{$DATA.DIRECT.COMPANY.name} {else} {if !empty($DATA.DIRECT) AND !empty($DATA.PARAM.user) AND $FRAMEWORK.controller=="direct/index/company"} / Ставки{foreach from=$DATA.DIRECT.ACCOUNT item=VALUE name=element} / {if !$smarty.foreach.element.last}{/if}{$VALUE.login}{/foreach} {else} {/if} {/if}