1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-16 21:34:25 +03:00
ifhub.club/application/frontend/skin/developer/components/info_list/info_list.tpl
Denis Shakhov 4218e1ea0d Доработка компонентов
* Компоненты перенесены в папку components
* favourite.js переписан с использованием jquery widget factory
* Компоненту vote добавлены rtl стили
2014-04-28 17:30:32 +07:00

27 lines
783 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
*}
{* Название компонента *}
{$_sComponentName = 'info-list'}
{if $aInfoList}
<div class="{$_sComponentName} {mod name=$_sComponentName mods=$sMods} {$smarty.local.sClasses}" {$smarty.local.sAttributes}>
{* Заголовок *}
{if $sTitle}
<h2 class="{$_sComponentName}-title">{$sTitle}</h2>
{/if}
{* Список *}
<ul class="info-list">
{foreach $aInfoList as $aInfoListItem}
<li class="info-list-item">
<div class="info-list-item-label {if $iInfoListLabelWidth}width-{$iInfoListLabelWidth}{/if}">{$aInfoListItem['label']}</div>
<strong class="info-list-item-content">{$aInfoListItem['content']}</strong>
</li>
{/foreach}
</ul>
</div>
{/if}