<?php // $file = /home/bluedoor/www/dev/wp-content/plugins/yooessentials/modules/dynamic/config/customizer.json

return [
  'sections' => [
    'yooessentials' => [
      'items' => [
        'yooessentials-global-queries' => 'Global Queries'
      ]
    ]
  ], 
  'panels' => [
    'yooessentials-advanced' => [
      'fields' => [
        '_addons' => [
          'fields' => [
            'dynamic.state' => [
              'enable' => true
            ]
          ]
        ]
      ]
    ], 
    'yooessentials-global-queries' => [
      'priority' => -5, 
      'title' => 'Global Queries', 
      'width' => 350
    ], 
    'yooessentials-source-query-global' => [
      'title' => 'Source Query', 
      'fields' => [
        '_source' => [
          'label' => 'Dynamic Content', 
          'type' => 'yooessentials-source-select', 
          'description' => 'The content source for which to make a query.', 
          'enable' => false, 
          'omitgroups' => ['', 'Page']
        ], 
        'name' => [
          'label' => 'Name', 
          'description' => 'A name to identify this query.', 
          'attrs' => [
            'autofocus' => true
          ]
        ], 
        '_sourceArgs' => [
          'type' => 'source-query-args'
        ], 
        '_sourceField' => [
          'label' => 'Multiple Items Source', 
          'type' => 'source-field-select', 
          'description' => 'By default, fields of related sources with single items are available for mapping. Select a related source which has multiple items to map its fields.', 
          'show' => 'yootheme.builder.helpers.Source.getSourceFieldOptions(this.node)'
        ], 
        '_sourceFieldArgs' => [
          'type' => 'source-field-args'
        ], 
        '_sourceFieldDirectives' => [
          'type' => 'source-field-directives'
        ]
      ]
    ]
  ]
];
