1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 09:24:25 +03:00
ifhub.club/templates/skin/synio/blocks/block.activityFriends.tpl
2013-05-06 11:33:38 +07:00

40 lines
1.3 KiB
Smarty

{**
* Выбор друзей для чтения в ленте активности
*
* @styles css/blocks.css
*}
{extends file='blocks/block.aside.base.tpl'}
{block name='block_options'}
{assign var='noBlockFooter' value=true}
{assign var='noBlockNav' value=true}
{/block}
{block name='block_title'}{$aLang.stream_block_users_friends}{/block}
{block name='block_type'}activity{/block}
{block name='block_content'}
{if $oUserCurrent}
<small class="note">{$aLang.stream_settings_note_follow_friend}</small>
{if count($aStreamFriends)}
<ul class="user-list-mini max-height-200 js-activity-block-users">
{foreach from=$aStreamFriends item=oUser}
{assign var=iUserId value=$oUser->getId()}
<li id="activity-block-users-item-{$iUserId}">
<input class="input-checkbox"
type="checkbox"
{if isset($aStreamSubscribedUsers.$iUserId)}checked="checked"{/if}
data-user-id="{$iUserId}" />
<a href="{$oUser->getUserWebPath()}" title="{$oUser->getLogin()}"><img src="{$oUser->getProfileAvatarPath(24)}" alt="avatar" class="avatar" /></a>
<a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a>
</li>
{/foreach}
</ul>
{else}
<small class="note">{$aLang.stream_no_subscribed_users}</small>
{/if}
{/if}
{/block}