1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-30 21:45:01 +03:00

Мелкие исправления

This commit is contained in:
Denis Shakhov 2015-11-11 23:56:18 +07:00
parent c95241c565
commit fd14810082
2 changed files with 25 additions and 33 deletions

View file

@ -1,9 +1,5 @@
{** {**
* Форма поиска * Форма поиска
*
* @styles components/search-form/search-form.css
*
* TODO: Fix submit icon position
*} *}
{* Название компонента *} {* Название компонента *}

View file

@ -6,8 +6,6 @@
* @param string $attributes Атрибуты * @param string $attributes Атрибуты
* @param boolean $showRating Показывать рейтинг или нет * @param boolean $showRating Показывать рейтинг или нет
* @param boolean $isLocked Блокировка голосования * @param boolean $isLocked Блокировка голосования
*
* TODO: Добавить смарти блоки
*} *}
{* Название компонента *} {* Название компонента *}
@ -57,15 +55,12 @@
{* Дополнительный мод-ор для иконок *} {* Дополнительный мод-ор для иконок *}
{$iconMod = ( in_array( 'small', explode(' ', $mods) ) ) ? 'white' : ''} {$iconMod = ( in_array( 'small', explode(' ', $mods) ) ) ? 'white' : ''}
{block 'vote_options'}{/block}
<div class="{$component} {cmods name=$component mods=$mods} {$smarty.local.classes}" data-param-i-target-id="{$target->getId()}" {cattr list=$smarty.local.attributes}> <div class="{$component} {cmods name=$component mods=$mods} {$smarty.local.classes}" data-param-i-target-id="{$target->getId()}" {cattr list=$smarty.local.attributes}>
{* Заголовок *}
{if $showLabel}
<h4 class="{$component}-heading">{$aLang.$component.rating}</h4>
{/if}
{* Основной блок *} {* Основной блок *}
<div class="{$component}-body"> <div class="{$component}-body">
{block 'vote_body'}
{* Рейтинг *} {* Рейтинг *}
<div class="{$component}-rating js-vote-rating"> <div class="{$component}-rating js-vote-rating">
{if $showRating} {if $showRating}
@ -91,5 +86,6 @@
<div class="{$component}-item {$component}-item-down js-vote-item" {if ! $vote}title="{$aLang.$component.down}"{/if} data-vote-value="-1"> <div class="{$component}-item {$component}-item-down js-vote-item" {if ! $vote}title="{$aLang.$component.down}"{/if} data-vote-value="-1">
{component 'icon' icon='minus' mods=$iconMod} {component 'icon' icon='minus' mods=$iconMod}
</div> </div>
{/block}
</div> </div>
</div> </div>