| Current Path : /home/poliximo/public_html/templates/yootheme/cache/ |
| Current File : /home/poliximo/public_html/templates/yootheme/cache/element-b814b620.php |
<?php // @file /home/poliximo/public_html/templates/yootheme/vendor/yootheme/builder/elements/accordion/element.json
return [
'@import' => $this->applyFilter('./element.php', ['path']),
'name' => 'accordion',
'title' => 'Accordion',
'icon' => $this->applyFilter('images/icon.svg', ['url']),
'iconSmall' => $this->applyFilter('images/iconSmall.svg', ['url']),
'element' => true,
'container' => true,
'width' => 500,
'defaults' => [
'show_image' => true,
'show_link' => true,
'collapsible' => true,
'image_svg_color' => 'emphasis',
'image_align' => 'top',
'image_grid_width' => '1-2',
'image_breakpoint' => 'm',
'link_text' => 'Read more',
'link_style' => 'default'
],
'placeholder' => [
'children' => [[
'type' => 'accordion_item',
'props' => []
], [
'type' => 'accordion_item',
'props' => []
], [
'type' => 'accordion_item',
'props' => []
]]
],
'templates' => [
'render' => $this->applyFilter('./templates/template.php', ['path']),
'content' => $this->applyFilter('./templates/content.php', ['path'])
],
'fields' => [
'content' => [
'label' => 'Items',
'type' => 'content-items',
'item' => 'accordion_item',
'media' => [
'type' => 'image',
'item' => [
'title' => 'title',
'image' => 'src'
]
]
],
'show_image' => [
'type' => 'checkbox',
'text' => 'Show the image'
],
'show_link' => [
'description' => 'Show or hide content fields without the need to delete the content itself.',
'type' => 'checkbox',
'text' => 'Show the link'
],
'multiple' => [
'label' => 'Behavior',
'type' => 'checkbox',
'text' => 'Allow multiple open items'
],
'collapsible' => [
'type' => 'checkbox',
'text' => 'Allow all items to be closed'
],
'content_style' => [
'label' => 'Style',
'description' => 'Select a predefined text style, including color, size and font-family.',
'type' => 'select',
'default' => '',
'options' => [
'None' => '',
'Lead' => 'lead'
]
],
'content_margin' => [
'label' => 'Margin Top',
'description' => 'Set the top margin. Note that the margin will only apply if the content field immediately follows another content field.',
'type' => 'select',
'default' => '',
'options' => [
'Small' => 'small',
'Default' => '',
'Medium' => 'medium',
'Large' => 'large',
'X-Large' => 'xlarge',
'None' => 'remove'
]
],
'image_width' => [
'attrs' => [
'placeholder' => 'auto'
],
'enable' => 'show_image'
],
'image_height' => [
'attrs' => [
'placeholder' => 'auto'
],
'enable' => 'show_image'
],
'image_border' => [
'label' => 'Border',
'description' => 'Select the image\'s border style.',
'type' => 'select',
'default' => '',
'options' => [
'None' => '',
'Rounded' => 'rounded',
'Circle' => 'circle',
'Pill' => 'pill'
],
'enable' => 'show_image'
],
'image_align' => [
'label' => 'Alignment',
'description' => 'Align the image to the top, left, right or place it between the title and the content.',
'type' => 'select',
'options' => [
'Top' => 'top',
'Bottom' => 'bottom',
'Left' => 'left',
'Right' => 'right'
],
'enable' => 'show_image'
],
'image_grid_width' => [
'label' => 'Grid Width',
'description' => 'Define the width of the image within the grid. Choose between percent and fixed widths or expand columns to the width of their content.',
'type' => 'select',
'options' => [
'Auto' => 'auto',
'50%' => '1-2',
'33%' => '1-3',
'25%' => '1-4',
'20%' => '1-5',
'Small' => 'small',
'Medium' => 'medium',
'Large' => 'large',
'X-Large' => 'xlarge',
'XX-Large' => 'xxlarge'
],
'enable' => 'show_image && (image_align == \'left\' || image_align == \'right\')'
],
'image_gutter' => [
'label' => 'Grid Gutter',
'description' => 'Select the gutter width between the image and content items.',
'type' => 'select',
'default' => '',
'options' => [
'Small' => 'small',
'Medium' => 'medium',
'Default' => '',
'Large' => 'large',
'None' => 'collapse'
],
'enable' => 'show_image && (image_align == \'left\' || image_align == \'right\')'
],
'image_breakpoint' => [
'label' => 'Grid Breakpoint',
'description' => 'Set the breakpoint from which grid cells will stack.',
'type' => 'select',
'options' => [
'Small (Phone Landscape)' => 's',
'Medium (Tablet Landscape)' => 'm',
'Large (Desktop)' => 'l'
],
'enable' => 'show_image && (image_align == \'left\' || image_align == \'right\')'
],
'image_vertical_align' => [
'label' => 'Vertical Alignment',
'description' => 'Vertically center grid cells.',
'type' => 'checkbox',
'text' => 'Center',
'enable' => 'show_image && (image_align == \'left\' || image_align == \'right\')'
],
'image_margin' => [
'label' => 'Margin Top',
'description' => 'Set the top margin. Note that the margin will only apply if the content field immediately follows another content field.',
'type' => 'select',
'default' => '',
'options' => [
'Small' => 'small',
'Default' => '',
'Medium' => 'medium',
'Large' => 'large',
'X-Large' => 'xlarge',
'None' => 'remove'
],
'enable' => 'show_image && image_align == \'bottom\''
],
'image_svg_inline' => [
'label' => 'Inline SVG',
'description' => 'Inject SVG images into the page markup, so that they can easily be styled with CSS.',
'type' => 'checkbox',
'text' => 'Make SVG stylable with CSS',
'enable' => 'show_image'
],
'image_svg_color' => [
'label' => 'SVG Color',
'description' => 'Select the SVG color. It will only apply to supported elements defined in the SVG.',
'type' => 'select',
'options' => [
'None' => '',
'Muted' => 'muted',
'Emphasis' => 'emphasis',
'Primary' => 'primary',
'Secondary' => 'secondary',
'Success' => 'success',
'Warning' => 'warning',
'Danger' => 'danger'
],
'enable' => 'show_image && image_svg_inline'
],
'link_text' => [
'label' => 'Text',
'description' => 'Enter the text for the link.',
'enable' => 'show_link'
],
'link_target' => [
'type' => 'checkbox',
'text' => 'Open in a new window',
'enable' => 'show_link'
],
'link_style' => [
'label' => 'Style',
'description' => 'Set the link style.',
'type' => 'select',
'options' => [
'Button Default' => 'default',
'Button Primary' => 'primary',
'Button Secondary' => 'secondary',
'Button Danger' => 'danger',
'Button Text' => 'text',
'Link' => '',
'Link Muted' => 'link-muted',
'Link Text' => 'link-text'
],
'enable' => 'show_link'
],
'link_size' => [
'label' => 'Button Size',
'description' => 'Set the button size.',
'type' => 'select',
'default' => '',
'options' => [
'Small' => 'small',
'Default' => '',
'Large' => 'large'
],
'enable' => 'show_link && link_style && link_style != \'link-muted\' && link_style != \'link-text\''
],
'link_margin' => [
'label' => 'Margin Top',
'description' => 'Set the top margin. Note that the margin will only apply if the content field immediately follows another content field.',
'type' => 'select',
'default' => '',
'options' => [
'Small' => 'small',
'Default' => '',
'Medium' => 'medium',
'Large' => 'large',
'X-Large' => 'xlarge',
'None' => 'remove'
],
'enable' => 'show_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_justify'),
'text_align_breakpoint' => $this->get('builder.text_align_breakpoint'),
'text_align_fallback' => $this->get('builder.text_align_justify_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>, <code>.el-item</code>, <code>.el-title</code>, <code>.el-content</code>, <code>.el-image</code>, <code>.el-link</code>',
'type' => 'editor',
'editor' => 'code',
'mode' => 'css',
'attrs' => [
'debounce' => 500
]
]
],
'fieldset' => [
'default' => [
'type' => 'tabs',
'fields' => [[
'title' => 'Content',
'fields' => ['content', 'show_image', 'show_link']
], [
'title' => 'Settings',
'fields' => [[
'label' => 'Accordion',
'type' => 'group',
'divider' => true,
'fields' => ['multiple', 'collapsible']
], [
'label' => 'Content',
'type' => 'group',
'divider' => true,
'fields' => ['content_style', 'content_margin']
], [
'label' => 'Image',
'type' => 'group',
'divider' => true,
'fields' => [[
'label' => 'Width/Height',
'description' => 'Setting just one value preserves the original proportions. The image will be resized and cropped automatically, and where possible, high resolution images will be auto-generated.',
'type' => 'grid',
'width' => '1-2',
'fields' => ['image_width', 'image_height']
], 'image_border', 'image_align', 'image_grid_width', 'image_gutter', 'image_breakpoint', 'image_vertical_align', 'image_margin', 'image_svg_inline', 'image_svg_color']
], [
'label' => 'Link',
'type' => 'group',
'divider' => true,
'fields' => ['link_text', 'link_target', 'link_style', 'link_size', 'link_margin']
], [
'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')]
]
]
];