<?php // $file = /home/autoabzarco1/public_html/plugins/system/djc2yootheme/modules/builder-djcatalog2-source/elements/simple_products_slider_item/element.json

return [
  '@import' => $filter->apply('path', './element.php', $file), 
  'name' => 'simple_products_slider_item', 
  'title' => 'Item', 
  'width' => 500, 
  'placeholder' => [
    'props' => [
      'image' => $filter->apply('url', '~yootheme/theme/assets/images/element-image-placeholder.png', $file), 
      'video' => '', 
      'title' => '', 
      'meta' => '', 
      'content' => ''
    ]
  ], 
  'templates' => [
    'render' => $filter->apply('path', './templates/template.php', $file), 
    'content' => $filter->apply('path', './templates/content.php', $file)
  ], 
  'fields' => [
    'image' => [
      'label' => 'Image', 
      'type' => 'image', 
      'source' => true, 
      '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', 
      'source' => true, 
      'show' => '!image'
    ], 
    '_media' => [
      'type' => 'button-panel', 
      'panel' => 'builder-slider-item-media', 
      'text' => 'Edit Settings', 
      'show' => 'image || video'
    ], 
    'image_alt' => [
      'label' => 'Image Alt', 
      'source' => true, 
      'show' => 'image && !video'
    ], 
    'title' => [
      'label' => 'Title', 
      'source' => true
    ], 
    'meta' => [
      'label' => 'Meta', 
      'source' => true
    ], 
    'content' => [
      'label' => 'Content', 
      'type' => 'editor', 
      'source' => true
    ], 
    'link' => $config->get('builder.link'), 
    'text_color' => [
      'label' => 'Text Color', 
      'description' => 'Set a different text color for this item.', 
      'type' => 'select', 
      'options' => [
        'None' => '', 
        'Light' => 'light', 
        'Dark' => 'dark'
      ], 
      'source' => true
    ], 
    'text_color_hover' => [
      'type' => 'checkbox', 
      'text' => 'Inverse the text color on hover'
    ], 
    'addtocart' => [
      'label' => 'Add to cart', 
      'source' => true
    ], 
    'price' => [
      'label' => 'Price', 
      'source' => true
    ], 
    'category' => [
      'label' => 'Category', 
      'source' => true
    ], 
    'category_link' => $config->get('builder.link'), 
    'category_link_title' => $config->get('builder.link_title'), 
    'category_link_target' => [
      'label' => 'Category Link Target', 
      'type' => 'select', 
      'options' => [
        'Same Window' => '', 
        'New Window' => 'blank', 
        'Modal' => 'modal'
      ]
    ], 
    'category_image' => [
      'label' => 'Category Image', 
      'type' => 'image', 
      'source' => true
    ], 
    'category_image_alt' => [
      'label' => 'Image Alt', 
      'enable' => 'category_image', 
      'source' => true
    ], 
    'producer' => [
      'label' => 'Producer', 
      'source' => true
    ], 
    'producer_link' => $config->get('builder.link'), 
    'producer_link_target' => [
      'label' => 'Producer Link Target', 
      'type' => 'select', 
      'options' => [
        'Same Window' => '', 
        'New Window' => 'blank', 
        'Modal' => 'modal'
      ]
    ], 
    'producer_image' => [
      'label' => 'Producer Image', 
      'type' => 'image', 
      'source' => true
    ], 
    'producer_image_alt' => [
      'label' => 'Image Alt', 
      'enable' => 'producer_image', 
      'source' => true
    ], 
    'status' => $config->get('builder.statusItem'), 
    'source' => $config->get('builder.source')
  ], 
  'fieldset' => [
    'default' => [
      'type' => 'tabs', 
      'fields' => [[
          'title' => 'Content', 
          'fields' => ['image', 'video', '_media', 'image_alt', 'title', 'meta', 'content', 'link', 'text_color', 'text_color_hover', 'addtocart', 'price', [
              'label' => 'Category', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => ['category', 'category_image', 'category_image_alt', 'category_link', 'category_link_title', 'category_link_target']
            ], [
              'label' => 'Producer', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => ['producer', 'producer_image', 'producer_image_alt', 'producer_link', 'producer_link_title', 'producer_link_target']
            ]]
        ], $config->get('builder.advancedItem')]
    ]
  ], 
  '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', 
          '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']
        ]
      ]
    ]
  ]
];
