<div class="vk-user">
    <table border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td align="left" valign="top" class="vk-user-icon">
                <img src="<?php echo $view['assets']->getUrl('images/vkontakte_32.png') ?>" width="32" height="32" border="0" alt="VKontakte" />
            </td>
            <td align="left" valign="top" class="vk-user-text">
                <?php if (!$is_logged_in): ?>
                <a href="<?php echo htmlspecialchars($login_link) ?>">
                    VKontakte<br />
                    Войти >> 
                </a>
                <?php else: ?>
                <a href="http://vk.com/id<?php echo $user_id ?>"><?php echo $first_name.' '.$last_name ?></a>
                <br />
                    <a href="<?php echo htmlspecialchars($logout_link) ?>">Выйти >></a>
                <?php endif; ?>
            </td>
        </tr>
    </table>
</div>