mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-28 20:45:00 +03:00
Мелкие исправления
This commit is contained in:
parent
c95241c565
commit
fd14810082
|
@ -1,9 +1,5 @@
|
||||||
{**
|
{**
|
||||||
* Форма поиска
|
* Форма поиска
|
||||||
*
|
|
||||||
* @styles components/search-form/search-form.css
|
|
||||||
*
|
|
||||||
* TODO: Fix submit icon position
|
|
||||||
*}
|
*}
|
||||||
|
|
||||||
{* Название компонента *}
|
{* Название компонента *}
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
* @param string $attributes Атрибуты
|
* @param string $attributes Атрибуты
|
||||||
* @param boolean $showRating Показывать рейтинг или нет
|
* @param boolean $showRating Показывать рейтинг или нет
|
||||||
* @param boolean $isLocked Блокировка голосования
|
* @param boolean $isLocked Блокировка голосования
|
||||||
*
|
|
||||||
* TODO: Добавить смарти блоки
|
|
||||||
*}
|
*}
|
||||||
|
|
||||||
{* Название компонента *}
|
{* Название компонента *}
|
||||||
|
@ -57,39 +55,37 @@
|
||||||
{* Дополнительный мод-ор для иконок *}
|
{* Дополнительный мод-ор для иконок *}
|
||||||
{$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">
|
{* Рейтинг *}
|
||||||
{if $showRating}
|
<div class="{$component}-rating js-vote-rating">
|
||||||
{$rating}
|
{if $showRating}
|
||||||
{else}
|
{$rating}
|
||||||
?
|
{else}
|
||||||
{/if}
|
?
|
||||||
</div>
|
{/if}
|
||||||
|
|
||||||
{* Воздержаться *}
|
|
||||||
{if $smarty.local.useAbstain}
|
|
||||||
<div class="{$component}-item {$component}-item-abstain js-vote-item" {if ! $vote}title="{$aLang.$component.abstain}"{/if} data-vote-value="0">
|
|
||||||
{component 'icon' icon='eye' mods=$iconMod}
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
|
||||||
|
|
||||||
{* Нравится *}
|
{* Воздержаться *}
|
||||||
<div class="{$component}-item {$component}-item-up js-vote-item" {if ! $vote}title="{$aLang.$component.up}"{/if} data-vote-value="1">
|
{if $smarty.local.useAbstain}
|
||||||
{component 'icon' icon='plus' mods=$iconMod}
|
<div class="{$component}-item {$component}-item-abstain js-vote-item" {if ! $vote}title="{$aLang.$component.abstain}"{/if} data-vote-value="0">
|
||||||
</div>
|
{component 'icon' icon='eye' mods=$iconMod}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{* Не нравится *}
|
{* Нравится *}
|
||||||
<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-up js-vote-item" {if ! $vote}title="{$aLang.$component.up}"{/if} data-vote-value="1">
|
||||||
{component 'icon' icon='minus' mods=$iconMod}
|
{component 'icon' icon='plus' mods=$iconMod}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{* Не нравится *}
|
||||||
|
<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}
|
||||||
|
</div>
|
||||||
|
{/block}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue