mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-03 06:55:03 +03:00
46 lines
1.6 KiB
Smarty
46 lines
1.6 KiB
Smarty
{**
|
|
* Выбор пользователей для чтения в ленте
|
|
*
|
|
* @styles css/blocks.css
|
|
*}
|
|
|
|
{extends file='blocks/block.aside.base.tpl'}
|
|
|
|
{block name='block_title'}{$aLang.userfeed_block_users_title}{/block}
|
|
{block name='block_type'}activity{/block}
|
|
|
|
{if $oUserCurrent}
|
|
{block name='block_content'}
|
|
<small class="note">{$aLang.userfeed_settings_note_follow_user}</small>
|
|
|
|
<div class="stream-settings-userlist">
|
|
<div class="search-form">
|
|
<div class="search-form-search">
|
|
<input type="text" id="userfeed-block-users-input" autocomplete="off" placeholder="{$aLang.userfeed_block_users_append}" class="search-form-input autocomplete-users width-full" />
|
|
<div onclick="ls.userfeed.appendUser();" class="search-form-submit"></div>
|
|
</div>
|
|
</div>
|
|
|
|
{if count($aUserfeedSubscribedUsers)}
|
|
<ul id="userfeed-block-users" class="user-list-mini max-height-200 js-userfeed-block-users">
|
|
{foreach $aUserfeedSubscribedUsers as $oUser}
|
|
{$iUserId = $oUser->getId()}
|
|
|
|
{if !isset($aUserfeedFriends.$iUserId)}
|
|
<li id="userfeed-block-users-item-{$iUserId}">
|
|
<input class="input-checkbox"
|
|
type="checkbox"
|
|
checked
|
|
data-user-id="{$iUserId}" />
|
|
<a href="{$oUser->getUserWebPath()}" title="{$oUser->getDisplayName()}"><img src="{$oUser->getProfileAvatarPath(24)}" alt="avatar" class="avatar" /></a>
|
|
<a href="{$oUser->getUserWebPath()}">{$oUser->getDisplayName()}</a>
|
|
</li>
|
|
{/if}
|
|
{/foreach}
|
|
</ul>
|
|
{else}
|
|
<ul id="userfeed_block_users_list"></ul>
|
|
{/if}
|
|
</div>
|
|
{/block}
|
|
{/if} |