| Current Path : /home/poliximo/public_html/templates/yootheme/cache/ |
| Current File : /home/poliximo/public_html/templates/yootheme/cache/element-d9472aa7.php |
<?php // @file /home/poliximo/public_html/templates/yootheme/vendor/yootheme/builder/elements/icon/element.json
return [
'@import' => $this->applyFilter('./element.php', ['path']),
'name' => 'icon',
'title' => 'Icon',
'icon' => $this->applyFilter('images/icon.svg', ['url']),
'iconSmall' => $this->applyFilter('images/iconSmall.svg', ['url']),
'element' => true,
'width' => 500,
'defaults' => [
'icon' => 'star',
'icon_ratio' => 3,
'margin' => 'default'
],
'templates' => [
'render' => $this->applyFilter('./templates/template.php', ['path']),
'content' => $this->applyFilter('./templates/content.php', ['path'])
],
'fields' => [
'icon' => [
'label' => 'Icon',
'description' => 'Click on the pencil to pick an icon from the SVG gallery.',
'type' => 'icon'
],
'link' => $this->get('builder.link'),
'link_target' => $this->get('builder.link_target'),
'icon_color' => [
'label' => 'Color',
'description' => 'Select the icon\'s color.',
'type' => 'select',
'default' => '',
'options' => [
'None' => '',
'Muted' => 'muted',
'Emphasis' => 'emphasis',
'Primary' => 'primary',
'Success' => 'success',
'Warning' => 'warning',
'Danger' => 'danger'
],
'enable' => '!link'
],
'icon_ratio' => [
'label' => 'Size',
'description' => 'Enter a size ratio, if you want the icon to appear larger than the default font size, for example 1.5 or 2 to double the size.',
'attrs' => [
'placeholder' => '1'
],
'enable' => 'link_style != \'button\''
],
'link_style' => [
'label' => 'Style',
'description' => 'Set the link style.',
'type' => 'select',
'default' => '',
'options' => [
'Default' => '',
'Button' => 'button',
'Link' => 'link',
'Link Muted' => 'muted',
'Link Text' => 'text',
'Link Reset' => 'reset'
],
'enable' => 'link'
],
'position' => $this->get('builder.position'),
'position_left' => $this->get('builder.position_left'),
'position_right' => $this->get('builder.position_right'),
'position_top' => $this->get('builder.position_top'),
'position_bottom' => $this->get('builder.position_bottom'),
'position_z_index' => $this->get('builder.position_z_index'),
'margin' => $this->get('builder.margin'),
'margin_remove_top' => $this->get('builder.margin_remove_top'),
'margin_remove_bottom' => $this->get('builder.margin_remove_bottom'),
'maxwidth' => $this->get('builder.maxwidth'),
'maxwidth_breakpoint' => $this->get('builder.maxwidth_breakpoint'),
'block_align' => $this->get('builder.block_align'),
'block_align_breakpoint' => $this->get('builder.block_align_breakpoint'),
'block_align_fallback' => $this->get('builder.block_align_fallback'),
'text_align' => $this->get('builder.text_align'),
'text_align_breakpoint' => $this->get('builder.text_align_breakpoint'),
'text_align_fallback' => $this->get('builder.text_align_fallback'),
'animation' => $this->get('builder.animation'),
'_parallax_button' => $this->get('builder._parallax_button'),
'visibility' => $this->get('builder.visibility'),
'name' => $this->get('builder.name'),
'status' => $this->get('builder.status'),
'id' => $this->get('builder.id'),
'class' => $this->get('builder.cls'),
'css' => [
'label' => 'CSS',
'description' => 'Enter your own custom CSS. The following selectors will be prefixed automatically for this element: <code>.el-element</code>',
'type' => 'editor',
'editor' => 'code',
'mode' => 'css',
'attrs' => [
'debounce' => 500
]
]
],
'fieldset' => [
'default' => [
'type' => 'tabs',
'fields' => [[
'title' => 'Content',
'fields' => ['icon', 'link', 'link_target']
], [
'title' => 'Settings',
'fields' => [[
'label' => 'Icon',
'type' => 'group',
'divider' => true,
'fields' => ['icon_color', 'icon_ratio']
], [
'label' => 'Link',
'type' => 'group',
'divider' => true,
'fields' => ['link_style']
], [
'label' => 'General',
'type' => 'group',
'fields' => ['position', 'position_left', 'position_right', 'position_top', 'position_bottom', 'position_z_index', 'margin', 'margin_remove_top', 'margin_remove_bottom', 'maxwidth', 'maxwidth_breakpoint', 'block_align', 'block_align_breakpoint', 'block_align_fallback', 'text_align', 'text_align_breakpoint', 'text_align_fallback', 'animation', '_parallax_button', 'visibility']
]]
], $this->get('builder.advanced')]
]
]
];