<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
if ($USER->IsAuthorized()) {
    ?>
    <div class="aside_personal">
        <div class="aside_personal_name">
            <? if (!empty($arResult['User']['PersonalPhotoImgThumbnail']['Image'])) {
                echo $arResult['User']['PersonalPhotoImgThumbnail']['Image'];
            } else {
                ?>
                <img src="/local/img/nophoto.jpg" alt="Пользователь">
                <?
            } ?>
            <div class="aside_personal_name_block">
                <h5><?= $arResult['User']['NAME_FORMATTED'] ?></h5>
                <a href="/personal/my_messenger/" class="aside_personal_im">
                    <svg>
                        <use xlink:href="<?= SITE_TEMPLATE_PATH ?>/img/svgicons.svg#chat_baloon"></use>
                    </svg>
                    <span>Сообщения</span>
                    <i>- 4</i>
                </a>
            </div>
        </div>
    </div>
<? } ?>



