1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-01 05:55:02 +03:00
ifhub.club/application/frontend/components/user/info-group.tpl

40 lines
1.2 KiB
Smarty
Raw Normal View History

{**
* Блок с информацией
*}
{$component = 'user-info-group'}
{component_define_params params=[ 'url', 'count', 'html', 'items', 'name', 'title', 'mods', 'classes', 'attributes' ]}
2016-04-07 12:40:28 +03:00
{hook run="{$component}-{$name}-before"}
{* Получаем пункты установленные плагинами *}
2016-04-07 12:40:28 +03:00
{hook run="{$component}-{$name}-items" assign='itemsHook' items=$items array=true}
{$items = ($itemsHook) ? $itemsHook : $items}
2016-04-07 12:40:28 +03:00
{if $html || $items}
<div class="{$component} {cmods name=$component mods=$mods} {$classes}" {cattr list=$attributes}>
{if $title}
<h3 class="{$component}-title">
{if $url}
<a href="{$url}">{$title}</a>
{else}
{$title}
{/if}
{if $count}
<span class="user-info-group-count">{$count}</span>
{/if}
</h3>
{/if}
2015-10-27 11:02:57 +02:00
<div class="user-info-group-content">
2016-04-07 12:40:28 +03:00
{if $html}
{$html}
2015-10-27 11:02:57 +02:00
{else}
2016-04-07 12:40:28 +03:00
{component 'info-list' list=$items classes='user-info-group-items'}
2015-10-27 11:02:57 +02:00
{/if}
</div>
</div>
{/if}
2016-04-07 12:40:28 +03:00
{hook run="{$component}-{$name}-after"}