1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 16:04:24 +03:00
ifhub.club/application/frontend/skin/developer/components/user/actions.tpl

30 lines
975 B
Smarty
Raw Normal View History

{**
* Список действий
* TODO: Add hook
*}
{$user = $smarty.local.user}
<ul class="profile-actions" id="profile_actions">
{* Добавление в друзья *}
{include 'components/user/friend_item.tpl' friendship=$user->getUserFriend() userTarget=$oUserProfile classes='js-user-friend'}
{* Отправить сообщение *}
<li>
<a href="{router page='talk'}add/?talk_users={$user->getLogin()}">
{lang name='user.actions.send_message'}
</a>
</li>
{* Подписаться *}
<li>
<a href="#" class="js-user-follow {if $user->isFollow()}active{/if}" data-id="{$user->getId()}" data-login="{$user->getLogin()}">
{lang name="user.actions.{( $user->isFollow() ) ? 'unfollow' : 'follow'}"}
</a>
</li>
{* Пожаловаться *}
<li>
<a href="#" data-type="modal-toggle" data-modal-url="{router page='profile/ajax-modal-complaint'}" data-param-user_id="{$user->getId()}">{lang 'user.actions.report'}</a>
</li>
</ul>