1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-17 13:54:26 +03:00
ifhub.club/application/frontend/components/user/blocks/block.users-statistics.tpl

32 lines
1.3 KiB
Smarty
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{**
* Статистика по пользователям
*}
{capture 'user_block_stat'}
<div class="user-stat">
{* @hook Начало блока с информацией о пользователях *}
{hook run='user_block_stat_begin'}
{* Кол-во пользователей *}
{component 'info-list' list=[
[ 'label' => "{lang name='user.stats.all'}:", 'content' => $usersStat.count_all ],
[ 'label' => "{lang name='user.stats.active'}:", 'content' => $usersStat.count_active ],
[ 'label' => "{lang name='user.stats.not_active'}:", 'content' => $usersStat.count_inactive ]
]}
{* Пол *}
{component 'info-list' list=[
[ 'label' => "{lang name='user.stats.men'}:", 'content' => $usersStat.count_sex_man ],
[ 'label' => "{lang name='user.stats.women'}:", 'content' => $usersStat.count_sex_woman ],
[ 'label' => "{lang name='user.stats.none'}:", 'content' => $usersStat.count_sex_other ]
]}
{* @hook Конец блока с информацией о пользователях *}
{hook run='user_block_stat_end'}
</div>
{/capture}
{component 'block'
mods = 'info users-stats'
title = {lang 'user.stats.title'}
content = $smarty.capture.user_block_stat}