{strip} {* SOCIAL ACCOUNTS *} {$auth_adapters = $wa->authAdapters(true)} {if $auth_adapters} {$_supported_icons = ["vkontakte", "facebook", "mailru", "twitter", "google", "yandex"]}
{$linked_adapters = []} {$other_adapters = []} {foreach $auth_adapters as $a} {if $wa->user("{$a->getId()}_id")} {$linked_adapters[] = $a} {else} {$other_adapters[] = $a} {/if} {/foreach} {if $other_adapters} {/if}
{/if} {/strip}