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

return [
  '@import' => $filter->apply('path', './element.php', $file), 
  'name' => 'simple_products_grid_item', 
  'title' => 'Item', 
  'width' => 500, 
  'placeholder' => [
    'props' => [
      'product_id' => '', 
      'title' => 'Title', 
      'meta' => '', 
      'price' => '', 
      'cart' => '', 
      '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' => [
    'product_id' => [
      'label' => 'Product ID', 
      'source' => true
    ], 
    'title' => [
      'label' => 'Title', 
      'source' => true
    ], 
    'meta' => [
      'label' => 'Meta', 
      'source' => true
    ], 
    'price' => [
      'label' => 'Price', 
      'source' => true
    ], 
    'cart' => [
      'label' => 'Cart', 
      'source' => true
    ], 
    'content' => [
      'label' => 'Content', 
      'type' => 'editor', 
      'source' => true
    ], 
    'image' => $config->get('builder.image'), 
    'image_alt' => [
      'label' => 'Image Alt', 
      'enable' => 'image', 
      'source' => true
    ], 
    'icon' => [
      'label' => 'Icon', 
      'description' => 'Instead of using a custom image, you can click on the pencil to pick an icon from the icon library.', 
      'type' => 'icon', 
      'source' => true, 
      'enable' => '!image'
    ], 
    '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
    ], 
    'link' => $config->get('builder.link'), 
    'tags' => [
      'label' => 'Tags', 
      'description' => 'Enter a comma-separated list of tags, for example, <code>blue, white, black</code>.', 
      'source' => true
    ], 
    'status' => $config->get('builder.statusItem'), 
    'source' => $config->get('builder.source')
  ], 
  'fieldset' => [
    'default' => [
      'type' => 'tabs', 
      'fields' => [[
          'title' => 'Content', 
          'fields' => ['product_id', 'title', 'meta', 'price', 'cart', 'content', 'image', 'image_alt', 'icon', 'link', 'tags', [
              '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')]
    ]
  ]
];
