<?php // $file = /home/bluedoor/www/dev/wp-content/plugins/fs-changelog/includes/element/fs_changelog_item/element.json

return [
  '@import' => $filter->apply('path', './element.php', $file), 
  'name' => 'changelog_item', 
  'title' => 'Item', 
  'width' => 500, 
  'placeholder' => [
    'props' => [
      'content' => 'Lorem ipsum dolor sit amet.', 
      'label' => 'Label', 
      'label_color' => ''
    ]
  ], 
  'templates' => [
    'render' => $filter->apply('path', './templates/template.php', $file), 
    'content' => $filter->apply('path', './templates/content.php', $file)
  ], 
  'fields' => [
    'label' => [
      'label' => 'Label', 
      'source' => true
    ], 
    'label_color' => [
      'label' => 'Label Color', 
      'type' => 'select', 
      'options' => [
        'Default' => '', 
        'Success' => 'success', 
        'Warning' => 'warning', 
        'Danger' => 'danger'
      ], 
      'source' => true
    ], 
    'content' => [
      'label' => 'Content', 
      'type' => 'editor', 
      'source' => true
    ], 
    'link' => $config->get('builder.link'), 
    'link_target' => $config->get('builder.link_target'), 
    'link_title' => [
      'label' => 'Link Title', 
      'description' => 'Set a link title attribute for a link tooltips support.', 
      'source' => true, 
      'enable' => 'link'
    ], 
    'link_aria_label' => [
      'label' => 'Link ARIA Label', 
      'description' => 'Set a different link ARIA label for this item.', 
      'source' => true, 
      'enable' => 'link'
    ], 
    'status' => $config->get('builder.statusItem'), 
    'source' => $config->get('builder.source')
  ], 
  'fieldset' => [
    'default' => [
      'type' => 'tabs', 
      'fields' => [[
          'title' => 'Content', 
          'fields' => ['label', 'label_color', 'content', 'link', 'link_target', 'link_title', 'link_aria_label']
        ], $config->get('builder.advancedItem')]
    ]
  ]
];
