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/synio/blocks/block.userfeedFriends.tpl

31 lines
1 KiB
Smarty
Raw Normal View History

2013-05-04 17:10:22 +03:00
{**
* Выбор друзей для чтения в ленте
*
* @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}
2013-05-04 17:10:22 +03:00
{if $oUserCurrent && count($aUserfeedFriends)}
{block name='block_content'}
2013-05-04 17:10:22 +03:00
<small class="note">{$aLang.userfeed_settings_note_follow_friend}</small>
<ul class="user-list-mini max-height-200 js-userfeed-block-users">
{foreach $aUserfeedFriends as $oUser}
{$iUserId = $oUser->getId()}
2013-05-04 17:10:22 +03:00
<li id="userfeed-block-users-item-{$iUserId}">
<input class="input-checkbox"
type="checkbox"
data-user-id="{$iUserId}"
{if isset($aUserfeedSubscribedUsers.$iUserId)} checked{/if} />
<a href="{$oUser->getUserWebPath()}" title="{$oUser->getDisplayName()}"><img src="{$oUser->getProfileAvatarPath(24)}" alt="avatar" class="avatar" /></a>
<a href="{$oUser->getUserWebPath()}">{$oUser->getDisplayName()}</a>
2013-05-04 17:10:22 +03:00
</li>
{/foreach}
</ul>
{/block}
{/if}