mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 16:04:24 +03:00
30 lines
1.1 KiB
Smarty
30 lines
1.1 KiB
Smarty
{**
|
||
* Список пользователей с элементами управления
|
||
*}
|
||
|
||
{* Заголовок *}
|
||
{if $sUserListSmallTitle}
|
||
<h3 class="user-list-small-title">{$sUserListSmallTitle}</h3>
|
||
{/if}
|
||
|
||
{* Список пользователей *}
|
||
{if $aUserList || ! $bUserListDisplay|default:true}
|
||
<ul class="user-list-small js-user-list-small {$sUserListSmallClasses}" {if ! $bUserListDisplay|default:true}style="display: none"{/if}>
|
||
{foreach $aUserList as $oUser}
|
||
{if $oUser->getUser()}{$oUser = $oUser->getUser()}{/if}
|
||
|
||
{if ! $aUserListSmallExclude || ! in_array($oUser->getId(), $aUserListSmallExclude)}
|
||
{include $sUserListSmallItemPath|default:'user_list_small_item.tpl' bUserListItemShowRemove=! $aUserListSmallExcludeRemove || ! in_array($iUserId, $aUserListSmallExcludeRemove)}
|
||
{/if}
|
||
{/foreach}
|
||
</ul>
|
||
{/if}
|
||
|
||
{* Уведомление о пустом списке *}
|
||
{if ! $aUserList}
|
||
{include 'alert.tpl'
|
||
mAlerts = $aLang.common.empty
|
||
sAlertStyle = 'empty'
|
||
sAlertClasses = 'js-user-list-small-empty'
|
||
sAlertAttributes = ( ! $aUserList ) ? '' : 'style="display: none"'}
|
||
{/if} |