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

26 lines
1.1 KiB
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.

{**
* Экшнбар / Контрол выбора объектов
*}
{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}