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

return [
  'name' => 'djc2filters-radio', 
  'title' => 'Radio', 
  'group' => 'DJ-Catalog2 Filters', 
  'icon' => $filter->apply('url', 'images/icon.svg', $file), 
  'iconSmall' => $filter->apply('url', 'images/iconSmall.svg', $file), 
  'element' => true, 
  'width' => 500, 
  'templates' => [
    'render' => $filter->apply('path', './templates/template.php', $file)
  ], 
  'fields' => [
    'show_label' => [
      'label' => 'Show label', 
      'description' => 'Show or hide field label', 
      'text' => 'Show label', 
      'type' => 'checkbox'
    ], 
    'label' => [
      'label' => 'Label', 
      'description' => 'Enter field label', 
      'attrs' => [
        'placeholder' => 'Label'
      ], 
      'enable' => 'show_label'
    ], 
    'field' => [
      'label' => 'Mapped field', 
      'type' => 'DJC2ExtraFields', 
      'field' => 'radio'
    ], 
    'class' => $config->get('builder.cls'), 
    'attributes' => $config->get('builder.attrs'), 
    '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-content</code>', 
      'type' => 'editor', 
      'editor' => 'code', 
      'mode' => 'css', 
      'attrs' => [
        'debounce' => 500
      ]
    ], 
    'option_align' => [
      'label' => 'Alignment', 
      'description' => 'Align the image to the top, left, right or place it between the title and the content.', 
      'type' => 'select', 
      'options' => [
        'Default' => '', 
        'Left' => 'left', 
        'Right' => 'right'
      ]
    ], 
    'option_margin' => [
      'label' => 'Margin', 
      'description' => 'Set the margin. Note that the margin will be applied to each option assigned to the additional field', 
      'type' => 'select', 
      'options' => [
        'Small' => 'small', 
        'Default' => '', 
        'Medium' => 'medium', 
        'Large' => 'large', 
        'X-Large' => 'xlarge', 
        'None' => 'remove'
      ]
    ], 
    'option_margin_remove_top' => [
      'type' => 'checkbox', 
      'text' => 'Remove top margin', 
      'enable' => 'option_margin !== \'remove\''
    ], 
    'option_margin_remove_bottom' => [
      'type' => 'checkbox', 
      'text' => 'Remove bottom margin ', 
      'enable' => 'option_margin !== \'remove\''
    ], 
    'submit' => [
      'label' => 'Submit', 
      'type' => 'checkbox', 
      'text' => 'Send form automatically'
    ], 
    'name' => $config->get('builder.name'), 
    'id' => $config->get('builder.id'), 
    'status' => $config->get('builder.status')
  ], 
  'fieldset' => [
    'default' => [
      'type' => 'tabs', 
      'fields' => [[
          'title' => 'Content', 
          'fields' => ['show_label', 'label', 'field']
        ], [
          'title' => 'Settings', 
          'fields' => [[
              'label' => 'Options', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => ['option_align', 'option_margin', 'option_margin_remove_top', 'option_margin_remove_bottom']
            ], [
              'label' => 'Preferences', 
              'type' => 'group', 
              'divider' => true, 
              'fields' => ['submit']
            ]]
        ], [
          'title' => 'Advanced', 
          'fields' => ['access', 'attributes', 'css', 'id', 'name', 'class']
        ]]
    ]
  ]
];
