1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 09:24:25 +03:00
ifhub.club/application/frontend/skin/developer/blocks/block.activityFriends.tpl

34 lines
1,001 B
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.stream_block_users_friends}{/block}
{block name='block_type'}activity{/block}
2013-05-04 17:10:22 +03:00
{block name='block_content'}
2013-05-04 17:10:22 +03:00
{if $oUserCurrent}
<small class="note">{$aLang.stream_settings_note_follow_friend}</small>
{if $aStreamFriends}
2013-05-04 17:10:22 +03:00
<ul class="user-list-mini max-height-200 js-activity-block-users">
{foreach $aStreamFriends as $oUser}
{$iUserId = $oUser->getId()}
2013-05-04 17:10:22 +03:00
<li id="activity-block-users-item-{$iUserId}">
<input class="input-checkbox"
type="checkbox"
2013-07-29 07:30:30 +03:00
{if isset($aStreamSubscribedUsers.$iUserId)}checked{/if}
2013-05-04 17:10:22 +03:00
data-user-id="{$iUserId}" />
<a href="{$oUser->getUserWebPath()}">{$oUser->getDisplayName()}</a>
2013-05-04 17:10:22 +03:00
</li>
{/foreach}
</ul>
{else}
<small class="note">{$aLang.stream_no_subscribed_users}</small>
{/if}
{/if}
{/block}