2014-08-08 19:21:31 +03:00
|
|
|
|
{**
|
|
|
|
|
* Блок с информацией
|
|
|
|
|
*}
|
|
|
|
|
|
|
|
|
|
{$component = 'user-info-group'}
|
2016-09-01 06:14:41 +03:00
|
|
|
|
{component_define_params params=[ 'url', 'count', 'html', 'items', 'name', 'title', 'mods', 'classes', 'attributes' ]}
|
2014-08-08 19:21:31 +03:00
|
|
|
|
|
2016-04-07 12:40:28 +03:00
|
|
|
|
{hook run="{$component}-{$name}-before"}
|
2014-08-09 17:28:46 +03:00
|
|
|
|
|
|
|
|
|
{* Получаем пункты установленные плагинами *}
|
2016-04-07 12:40:28 +03:00
|
|
|
|
{hook run="{$component}-{$name}-items" assign='itemsHook' items=$items array=true}
|
2016-09-01 06:14:41 +03:00
|
|
|
|
{$items = ($itemsHook) ? $itemsHook : $items}
|
2014-08-09 17:28:46 +03:00
|
|
|
|
|
2016-04-07 12:40:28 +03:00
|
|
|
|
{if $html || $items}
|
|
|
|
|
<div class="{$component} {cmods name=$component mods=$mods} {$classes}" {cattr list=$attributes}>
|
2016-09-01 06:14:41 +03:00
|
|
|
|
{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}
|
2014-08-08 19:21:31 +03:00
|
|
|
|
|
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>
|
2014-08-09 17:28:46 +03:00
|
|
|
|
{/if}
|
|
|
|
|
|
2016-04-07 12:40:28 +03:00
|
|
|
|
{hook run="{$component}-{$name}-after"}
|