<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
?>

<!--a href="/personal/my_messenger/" class="top_header_user_im">
    <svg>
        <use xlink:href="<?= SITE_TEMPLATE_PATH ?>/img/svgicons.svg#chat_baloon"></use>
    </svg>
    <span>Сообщения</span>
    <i>- 4</i>
</a-->

<a href="/personal/" class="top_header_user_name">
    <? if (!empty($arResult['User']['PersonalPhotoImgThumbnail']['Image'])) {
        echo $arResult['User']['PersonalPhotoImgThumbnail']['Image'];
    } else {
        ?>
        <img src="/local/img/nophoto.jpg" alt="Пользователь">
        <?
    } ?>
    <span><?= $arResult['User']['NAME_FORMATTED'] ?></span>
</a>
<a href="/?logout=yes&<?= bitrix_sessid_get()?>" class="top_header_user_off">
    <svg>
        <use xlink:href="<?= SITE_TEMPLATE_PATH ?>/img/svgicons.svg#turn_power"></use>
    </svg>
</a>