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

return [
  '@import' => $filter->apply('path', './element.php', $file), 
  'name' => 'extended_products_grid_item', 
  'title' => 'Extended Products Grid Item', 
  'width' => 600, 
  'style' => [
    'color' => 'red'
  ], 
  'defaults' => [
    'video_controls' => true
  ], 
  'placeholder' => [
    'props' => [
      'title' => 'Title', 
      'meta' => '', 
      'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', 
      'image' => '', 
      'icon' => ''
    ]
  ], 
  'templates' => [
    'render' => $filter->apply('path', './templates/template.php', $file), 
    'content' => $filter->apply('path', './templates/content.php', $file)
  ], 
  'fields' => [
    'labels' => [
      'label' => 'Label', 
      'source' => true
    ], 
    'autolabels' => [
      'label' => 'Autolabels', 
      'source' => true
    ], 
    'image' => [
      'label' => 'Image', 
      'type' => 'image', 
      'source' => true
    ], 
    'image_alt' => [
      'label' => 'Image Alt', 
      'enable' => 'image', 
      'source' => true
    ], 
    'product_image_link' => $config->get('builder.link'), 
    'video' => [
      'label' => 'Video', 
      'type' => 'video', 
      'default' => '', 
      '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>.', 
      'source' => true
    ], 
    'video_width' => [
      'label' => 'Width', 
      'show' => 'video'
    ], 
    'video_height' => [
      'label' => 'Height', 
      'show' => 'video'
    ], 
    'video_controls' => [
      'label' => 'Options', 
      'type' => 'checkbox', 
      'text' => 'Show controls', 
      'show' => 'video', 
      'enable' => 'video && !$match(video, \'(youtube\\.com|youtube-nocookie\\.com|vimeo\\.com)\', \'i\')'
    ], 
    'video_loop' => [
      'type' => 'checkbox', 
      'text' => 'Loop video', 
      'show' => 'video', 
      'enable' => 'video && !$match(video, \'(youtube\\.com|youtube-nocookie\\.com|vimeo\\.com)\', \'i\')'
    ], 
    'video_muted' => [
      'type' => 'checkbox', 
      'text' => 'Mute video', 
      'show' => 'video', 
      'enable' => 'video && !$match(video, \'(youtube\\.com|youtube-nocookie\\.com|vimeo\\.com)\', \'i\')'
    ], 
    'video_playsinline' => [
      'type' => 'checkbox', 
      'text' => 'Play inline on mobile devices', 
      'show' => 'video', 
      'enable' => 'video && !$match(video, \'(youtube\\.com|youtube-nocookie\\.com|vimeo\\.com)\', \'i\')'
    ], 
    'video_lazyload' => [
      'type' => 'checkbox', 
      'text' => 'Lazy load video', 
      'show' => 'video', 
      'enable' => 'video && !$match(video, \'(youtube\\.com|youtube-nocookie\\.com|vimeo\\.com)\', \'i\')'
    ], 
    'video_autoplay' => [
      'label' => 'Autoplay', 
      'description' => 'Disable autoplay, start autoplay immediately or as soon as the video enters the viewport.', 
      'type' => 'select', 
      'show' => 'video', 
      'options' => [
        'Off' => '', 
        'On' => true, 
        'On (If inview)' => 'inview'
      ], 
      'enable' => 'video && !$match(video, \'(youtube\\.com|youtube-nocookie\\.com|vimeo\\.com)\', \'i\')'
    ], 
    'video_poster' => [
      'label' => 'Poster Frame', 
      'description' => 'Select an optional image which shows up until the video plays. If not selected, the first video frame is shown as the poster frame.', 
      'type' => 'image', 
      'source' => true, 
      'show' => 'video', 
      'enable' => 'video && !$match(video, \'(youtube\\.com|youtube-nocookie\\.com|youtu\\.be|vimeo\\.com)\', \'i\')'
    ], 
    'category' => [
      'label' => 'Category button content', 
      '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'
      ]
    ], 
    'producer' => [
      'label' => 'Producer button content', 
      'source' => true
    ], 
    'producer_link' => $config->get('builder.link'), 
    'title' => [
      'label' => 'Title', 
      'source' => true
    ], 
    'producer_link_title' => $config->get('builder.link_title'), 
    'producer_link_target' => [
      'label' => 'Producer Link Target', 
      'type' => 'select', 
      'options' => [
        'Same Window' => '', 
        'New Window' => 'blank', 
        'Modal' => 'modal'
      ]
    ], 
    'title_link' => $config->get('builder.link'), 
    'sku' => [
      'label' => 'SKU', 
      'source' => true
    ], 
    'price' => [
      'label' => 'Price', 
      'source' => true
    ], 
    'compare' => [
      'label' => 'Compare', 
      'source' => true
    ], 
    'wishlist' => [
      'label' => 'Wishlist', 
      'source' => true
    ], 
    'availinfo' => [
      'label' => 'Information about availability', 
      'source' => true
    ], 
    'createdby' => [
      'label' => 'Created by', 
      'source' => true
    ], 
    'createdon' => [
      'label' => 'Created on', 
      'source' => true
    ], 
    'hits' => [
      'label' => 'Hits', 
      'source' => true
    ], 
    'address' => [
      'label' => 'Address', 
      'source' => true
    ], 
    'city' => [
      'label' => 'City', 
      'source' => true
    ], 
    'postcode' => [
      'label' => 'Postcode', 
      'source' => true
    ], 
    'country' => [
      'label' => 'Country', 
      'source' => true
    ], 
    'state' => [
      'label' => 'State', 
      'source' => true
    ], 
    'phone' => [
      'label' => 'Phone', 
      'source' => true
    ], 
    'mobile' => [
      'label' => 'Mobile', 
      'source' => true
    ], 
    'fax' => [
      'label' => 'Fax', 
      'source' => true
    ], 
    'website' => [
      'label' => 'Website', 
      'source' => true
    ], 
    'email' => [
      'label' => 'Email', 
      'source' => true
    ], 
    'rating' => [
      'label' => 'Rating', 
      'source' => true
    ], 
    'vote' => [
      'label' => 'Vote', 
      'source' => true
    ], 
    'introdescription' => [
      'label' => 'Intro description', 
      'source' => true
    ], 
    'description' => [
      'label' => 'Description', 
      'source' => true
    ], 
    'attributes' => [
      'label' => 'Attributes', 
      'source' => true
    ], 
    'readmore' => [
      'label' => 'Readmore', 
      'source' => true
    ], 
    'readmore_icon' => [
      'label' => 'Readmore Icon', 
      'description' => 'Pick an optional icon.', 
      'type' => 'icon'
    ], 
    'readmore_icon_align' => [
      'label' => 'Readmore Icon Alignment', 
      'description' => 'Choose the icon position.', 
      'type' => 'select', 
      'options' => [
        'Left' => 'left', 
        'Right' => 'right'
      ], 
      'default' => 'left', 
      'enable' => 'readmore_icon'
    ], 
    'readmore_link' => $config->get('builder.link'), 
    'readmore_link_title' => $config->get('builder.link_title'), 
    'readmore_link_target' => [
      'label' => 'Readmore Link Target', 
      'type' => 'select', 
      'options' => [
        'Same Window' => '', 
        'New Window' => 'blank', 
        'Modal' => 'modal'
      ]
    ], 
    'addtocart' => [
      'label' => 'Add to cart', 
      'source' => true
    ], 
    'producer_image' => [
      'label' => 'Producer Image', 
      'type' => 'image', 
      'source' => true
    ], 
    'producer_image_alt' => [
      'label' => 'Image Alt', 
      'enable' => 'producer_image', 
      'source' => true
    ], 
    'category_image' => [
      'label' => 'Category Image', 
      'type' => 'image', 
      'source' => true
    ], 
    'category_image_alt' => [
      'label' => 'Image Alt', 
      'enable' => 'category_image', 
      'source' => true
    ], 
    'source' => $config->get('builder.source'), 
    'status' => $config->get('builder.statusItem')
  ], 
  'fieldset' => [
    'default' => [
      'type' => 'tabs', 
      'fields' => [[
          'title' => 'Content', 
          'fields' => [[
              'label' => 'Labels', 
              'type' => 'group', 
              'divider' => true, 
              'width' => 'auto'
            ], 'labels', 'autolabels', [
              'label' => 'Product image', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'image', 'image_alt', 'product_image_link', [
              'label' => 'Video', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'video', 'video_width', 'video_height', 'video_controls', 'video_loop', 'video_muted', 'video_playsinline', 'video_lazyload', 'video_autoplay', 'video_poster', [
              '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', [
              'label' => 'Title', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'title', 'title_link', [
              'label' => 'SKU', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'sku', [
              'label' => 'Hits', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'hits', [
              'label' => 'Availability information', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'availinfo', [
              'label' => 'Created by', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'createdby', [
              'label' => 'Created on', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'createdon', [
              'label' => 'Price', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'price', [
              'label' => 'Compare', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'compare', [
              'label' => 'Wishlist', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'wishlist', [
              'label' => 'Content', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'introdescription', 'description', [
              'label' => 'Attributes', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'attributes', [
              'label' => 'Readmore', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'readmore', 'readmore_link', 'readmore_link_title', 'readmore_link_target', 'readmore_icon', 'readmore_icon_align', [
              'label' => 'Add to cart', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'addtocart', [
              'label' => 'Additional', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => []
            ], 'address', 'city', 'postcode', 'country', 'state', 'phone', 'mobile', 'fax', 'website', 'email', 'rating', 'vote']
        ], $config->get('builder.advancedItem')]
    ]
  ]
];
