mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 16:04:24 +03:00
31 lines
1 KiB
Smarty
31 lines
1 KiB
Smarty
{**
|
|
* Выбор друзей для чтения в ленте
|
|
*
|
|
* @styles css/blocks.css
|
|
*}
|
|
|
|
{extends file='blocks/block.aside.base.tpl'}
|
|
|
|
{block name='block_title'}{$aLang.userfeed_block_users_friends}{/block}
|
|
{block name='block_type'}activity{/block}
|
|
|
|
{if $oUserCurrent && count($aUserfeedFriends)}
|
|
{block name='block_content'}
|
|
<small class="note">{$aLang.userfeed_settings_note_follow_friend}</small>
|
|
|
|
<ul class="user-list-mini max-height-200 js-userfeed-block-users">
|
|
{foreach from=$aUserfeedFriends item=oUser}
|
|
{assign var=iUserId value=$oUser->getId()}
|
|
|
|
<li id="userfeed-block-users-item-{$iUserId}">
|
|
<input class="input-checkbox"
|
|
type="checkbox"
|
|
data-user-id="{$iUserId}"
|
|
{if isset($aUserfeedSubscribedUsers.$iUserId)} checked="checked"{/if} />
|
|
<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>
|
|
{/block}
|
|
{/if} |