1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-17 07:10:48 +03:00
ifhub.club/application/frontend/skin/synio/components/user/info-group.tpl
Denis Shakhov 11618a9ff0 Шаблон Synio
Профиль пользователя, Стена
2016-09-01 10:14:41 +07:00

40 lines
1.2 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.

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