mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 13:24:26 +03:00
* Компоненты перенесены в папку components * favourite.js переписан с использованием jquery widget factory * Компоненту vote добавлены rtl стили
26 lines
1.1 KiB
Smarty
26 lines
1.1 KiB
Smarty
{**
|
||
* Экшнбар / Контрол выбора объектов
|
||
*}
|
||
|
||
{extends './actionbar.item.tpl'}
|
||
|
||
{block 'actionbar_item'}
|
||
{* Дефолтные пункты *}
|
||
{$_aItems = [
|
||
[ 'name' => 'all', 'text' => 'Все', 'attributes' => "data-select-item=\"{$sItemSelector}\"" ],
|
||
[ 'name' => 'deselect', 'text' => 'Убрать выделение', 'attributes' => "data-select-item=\"{$sItemSelector}\" data-select-filter=\":not(*)\"" ],
|
||
[ 'name' => 'invert', 'text' => 'Инвертировать', 'attributes' => "data-select-item=\"{$sItemSelector}\" data-select-filter=\":not(.selected)\"" ],
|
||
[ 'name' => '-', 'is_enabled' => !! $smarty.local.aItems ]
|
||
]}
|
||
|
||
{* Кастомные пункты *}
|
||
{foreach $smarty.local.aItems as $aItem}
|
||
{$_aItems[] = [ 'text'=> $aItem['text'], 'attributes' => "data-select-item=\"{$sItemSelector}\" data-select-filter=\"{$aItem['filter']}\"" ]}
|
||
{/foreach}
|
||
|
||
{include 'components/dropdown/dropdown.tpl'
|
||
sName = 'actionbar_item_select'
|
||
sClasses = 'actionbar-item-link'
|
||
sText = 'Выбрать'
|
||
aMenu = $_aItems}
|
||
{/block} |