mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
* Компоненты перенесены в папку components * favourite.js переписан с использованием jquery widget factory * Компоненту vote добавлены rtl стили
27 lines
783 B
Smarty
27 lines
783 B
Smarty
{**
|
||
* Список с информацией
|
||
*
|
||
* @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} |