mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 09:24:25 +03:00
35 lines
1.2 KiB
Smarty
35 lines
1.2 KiB
Smarty
{**
|
|
* Выбор друзей для чтения в ленте активности
|
|
*
|
|
* @styles css/blocks.css
|
|
*}
|
|
|
|
{extends file='blocks/block.aside.base.tpl'}
|
|
|
|
{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} |