| Current Path : /home/poliximo/public_html/templates/yootheme/cache/ |
| Current File : /home/poliximo/public_html/templates/yootheme/cache/element-a83613a1.php |
<?php // @file /home/poliximo/public_html/templates/yootheme/vendor/yootheme/builder/elements/slider_item/element.json
return [
'@import' => $this->applyFilter('./element.php', ['path']),
'name' => 'slider_item',
'title' => 'Item',
'width' => 500,
'templates' => [
'render' => $this->applyFilter('./templates/template.php', ['path']),
'content' => $this->applyFilter('./templates/content.php', ['path'])
],
'fields' => [
'image' => [
'label' => 'Image',
'type' => 'image',
'show' => '!video'
],
'video' => [
'label' => 'Video',
'description' => 'Select a video file or enter a link from <a href="https://www.youtube.com" target="_blank">YouTube</a> or <a href="https://vimeo.com" target="_blank">Vimeo</a>.',
'type' => 'video',
'show' => '!image'
],
'_media' => [
'type' => 'button-panel',
'panel' => 'builder-slider-item-media',
'text' => 'Edit Settings',
'show' => 'image || video'
],
'image_alt' => [
'label' => 'Image Alt',
'show' => 'image && !video'
],
'title' => [
'label' => 'Title'
],
'meta' => [
'label' => 'Meta'
],
'content' => [
'label' => 'Content',
'type' => 'editor'
],
'link' => $this->get('builder.link'),
'text_color' => [
'label' => 'Text Color',
'description' => 'Set a different text color for this item.',
'type' => 'select',
'default' => '',
'options' => [
'None' => '',
'Light' => 'light',
'Dark' => 'dark'
]
],
'text_color_hover' => [
'type' => 'checkbox',
'text' => 'Inverse the text color on hover'
]
],
'fieldset' => [
'default' => [
'fields' => ['image', 'video', '_media', 'image_alt', 'title', 'meta', 'content', 'link', 'text_color', 'text_color_hover']
]
],
'panels' => [
'builder-slider-item-media' => [
'title' => 'Image/Video',
'width' => 500,
'fields' => [
'media_background' => [
'label' => 'Background Color',
'description' => 'Use the background color in combination with blend modes.',
'type' => 'color'
],
'media_blend_mode' => [
'label' => 'Blend Mode',
'description' => 'Determine how the image or video will blend with the background color.',
'type' => 'select',
'default' => '',
'options' => [
'Normal' => '',
'Multiply' => 'multiply',
'Screen' => 'screen',
'Overlay' => 'overlay',
'Darken' => 'darken',
'Lighten' => 'lighten',
'Color-dodge' => 'color-dodge',
'Color-burn' => 'color-burn',
'Hard-light' => 'hard-light',
'Soft-light' => 'soft-light',
'Difference' => 'difference',
'Exclusion' => 'exclusion',
'Hue' => 'hue',
'Saturation' => 'saturation',
'Color' => 'color',
'Luminosity' => 'luminosity'
],
'enable' => 'media_background'
],
'media_overlay' => [
'label' => 'Overlay Color',
'description' => 'Set an additional transparent overlay to soften the image or video.',
'type' => 'color'
]
],
'fieldset' => [
'default' => [
'fields' => ['media_background', 'media_blend_mode', 'media_overlay']
]
]
]
]
];