Current File : /home/pacjaorg/www/km/templates/yootheme/cache/element-90d77da1.php |
<?php // $file = /home/akoke/public_html/km2/plugins/system/djclassifiedsyt/modules/builder-joomla-source/elements/classifieds-favorite-btn/element.json
return [
'@import' => $filter->apply('path', './element.php', $file),
'name' => 'classifieds-favorite-btn',
'title' => 'Favorite button',
'group' => 'DJ-Classifieds',
'icon' => $filter->apply('url', 'images/icon.svg', $file),
'iconSmall' => $filter->apply('url', 'images/iconSmall.svg', $file),
'element' => true,
'defaults' => [
'button_style' => 'default',
'icon_align' => 'left'
],
'placeholder' => [
'props' => [
'icon' => ''
]
],
'templates' => [
'render' => $filter->apply('path', './templates/template.php', $file),
'content' => $filter->apply('path', './templates/content.php', $file)
],
'fields' => [
'advert_id' => [
'label' => 'Advert id',
'type' => 'text',
'source' => true
],
'content' => [
'label' => 'Content',
'type' => 'text',
'source' => true
],
'icon' => [
'label' => 'Icon',
'description' => 'Pick an optional icon from the icon library.',
'type' => 'icon',
'source' => true
],
'button_style' => [
'label' => 'Style',
'description' => 'Set the button style.',
'type' => 'select',
'options' => [
'Default' => 'default',
'Primary' => 'primary',
'Secondary' => 'secondary',
'Danger' => 'danger',
'Text' => 'text',
'Link' => '',
'Link Muted' => 'link-muted',
'Link Text' => 'link-text'
]
],
'icon_align' => [
'label' => 'Alignment',
'description' => 'Choose the icon position.',
'type' => 'select',
'options' => [
'Left' => 'left',
'Right' => 'right'
],
'enable' => 'icon'
],
'status' => $config->get('builder.statusItem'),
'source' => $config->get('builder.source')
],
'fieldset' => [
'default' => [
'type' => 'tabs',
'fields' => [[
'title' => 'Content',
'fields' => ['advert_id', 'content', 'link', 'link_title', 'icon']
], [
'title' => 'Settings',
'fields' => [[
'label' => 'Button',
'type' => 'group',
'divider' => true,
'fields' => ['button_style']
], [
'label' => 'Icon',
'type' => 'group',
'fields' => ['icon_align']
]]
], $config->get('builder.advancedItem')]
]
]
];