1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-17 05:44:26 +03:00
ifhub.club/application/frontend/skin/developer/components/info-list/info-list.tpl

29 lines
723 B
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.

{**
* Список с информацией
*
* @styles css/common.css
*}
{* Название компонента *}
{$component = 'info-list'}
{if $list}
<div class="{$component} {cmods name=$component mods=$smarty.local.mods} {$smarty.local.classes}" {cattr list=$smarty.local.attributes}>
{* Заголовок *}
{if $smarty.local.title}
<h2 class="{$component}-title">{$smarty.local.title}</h2>
{/if}
{* Список *}
<ul class="info-list">
{foreach $list as $item}
<li class="info-list-item">
<div class="info-list-item-label">
{$item['label']}
</div>
<strong class="info-list-item-content">{$item['content']}</strong>
</li>
{/foreach}
</ul>
</div>
{/if}