<?php // $file = /home/bluedoor/www/dev/wp-content/plugins/dj-accessibility/module/assets/json/config.json

return [
  'sections' => [
    'accessibility' => [
      'title' => 'Accessibility Pro', 
      'priority' => 100, 
      'fields' => [
        'djacc_style' => [
          'type' => 'select', 
          'label' => 'Theme', 
          'default' => 'dark', 
          'options' => [
            'Dark' => 'dark', 
            'Light' => 'light'
          ]
        ], 
        'djacc_position' => [
          'type' => 'select', 
          'label' => 'Position type', 
          'options' => [
            'Sticky (fixed)' => 'sticky', 
            'Custom position (static)' => 'custom'
          ], 
          'default' => 'sticky'
        ], 
        'djacc_mobile_position' => [
          'type' => 'select', 
          'label' => 'Position type', 
          'options' => [
            'Sticky (fixed)' => 'sticky', 
            'Custom position (static)' => 'custom'
          ], 
          'default' => 'sticky'
        ], 
        'djacc_layout' => [
          'type' => 'select', 
          'label' => 'Layout', 
          'default' => 'popup', 
          'options' => [
            'Popup' => 'popup', 
            'Toolbar' => 'toolbar'
          ]
        ], 
        'djacc_mobile_layout' => [
          'type' => 'select', 
          'label' => 'Mobile Layout', 
          'default' => 'popup', 
          'options' => [
            'Popup' => 'popup', 
            'Toolbar' => 'toolbar'
          ]
        ], 
        'djacc_align_popup' => [
          'type' => 'select', 
          'label' => '[Popup] Position', 
          'options' => [
            'top' => 'top center', 
            'top left' => 'top left', 
            'top right' => 'top right', 
            'left' => 'center left', 
            'right' => 'center right', 
            'bottom' => 'bottom center', 
            'bottom left' => 'bottom left', 
            'bottom right' => 'bottom right'
          ], 
          'default' => 'top right', 
          'show' => 'djacc_layout==\'popup\' || djacc_mobile_layout==\'popup\''
        ], 
        'djacc_align_mobile' => [
          'type' => 'select', 
          'label' => '[Popup] Mobile position', 
          'options' => [
            'top' => 'top center', 
            'top left' => 'top left', 
            'top right' => 'top right', 
            'left' => 'center left', 
            'right' => 'center right', 
            'bottom' => 'bottom center', 
            'bottom left' => 'bottom left', 
            'bottom right' => 'bottom right'
          ], 
          'default' => 'bottom right', 
          'show' => 'djacc_layout==\'popup\' || djacc_mobile_layout==\'popup\''
        ], 
        'djacc_direction' => [
          'type' => 'select', 
          'label' => '[Popup] Open direction', 
          'options' => [
            'down' => 'top center', 
            'down left' => 'top right', 
            'down right' => 'top left', 
            'left' => 'center left', 
            'right' => 'center right', 
            'up' => 'bottom center', 
            'up left' => 'bottom right', 
            'up right' => 'bottom left'
          ], 
          'default' => 'top left', 
          'show' => 'djacc_layout==\'popup\' || djacc_mobile_layout==\'popup\''
        ], 
        'djacc_image' => [
          'label' => 'Button', 
          'type' => 'image', 
          'show' => 'djacc_layout==\'popup\' || djacc_mobile_layout==\'popup\''
        ], 
        'djacc_width' => [
          'type' => 'number', 
          'label' => 'Width', 
          'default' => '48', 
          'show' => 'djacc_layout==\'popup\' || djacc_mobile_layout==\'popup\' && djacc_image'
        ], 
        'djacc_height' => [
          'type' => 'number', 
          'label' => 'Height', 
          'default' => '48', 
          'show' => 'djacc_layout==\'popup\' || djacc_mobile_layout==\'popup\' && djacc_image'
        ], 
        'djacc_voff_popup' => [
          'type' => 'number', 
          'label' => '[Popup] Offset top/bottom', 
          'default' => '20', 
          'show' => 'djacc_layout==\'popup\' || djacc_mobile_layout==\'popup\''
        ], 
        'djacc_hoff_popup' => [
          'type' => 'number', 
          'label' => '[Popup] Offset left/right', 
          'default' => '20', 
          'show' => 'djacc_layout==\'popup\' || djacc_mobile_layout==\'popup\''
        ], 
        'djacc_align_toolbar' => [
          'type' => 'select', 
          'label' => '[Toolbar] Position', 
          'options' => [
            'top' => 'top center', 
            'left' => 'center left', 
            'right' => 'center right', 
            'bottom' => 'bottom center'
          ], 
          'default' => 'top center', 
          'show' => 'djacc_layout==\'toolbar\' || djacc_mobile_layout==\'toolbar\''
        ], 
        'djacc_space' => [
          'type' => 'checkbox', 
          'text' => '[Toolbar] Reserve space', 
          'default' => 'true', 
          'show' => 'djacc_layout==\'toolbar\' || djacc_mobile_layout==\'toolbar\''
        ], 
        'djacc_voff_toolbar' => [
          'type' => 'number', 
          'label' => '[Toolbar] Offset top/bottom', 
          'default' => '0', 
          'show' => 'djacc_layout==\'toolbar\' || djacc_mobile_layout==\'toolbar\''
        ], 
        'djacc_hoff_toolbar' => [
          'type' => 'number', 
          'label' => '[Toolbar] Offset left/right', 
          'default' => '0', 
          'show' => 'djacc_layout==\'toolbar\' || djacc_mobile_layout==\'toolbar\''
        ], 
        'djacc_load_font' => [
          'type' => 'checkbox', 
          'text' => 'Load Webfont'
        ], 
        'djacc_font_url' => [
          'type' => 'text', 
          'label' => 'Webfont URL', 
          'default' => 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap', 
          'show' => 'djacc_load_font'
        ], 
        'djacc_font_family' => [
          'type' => 'text', 
          'label' => 'Font family', 
          'default' => 'Roboto, sans-serif', 
          'show' => 'djacc_load_font'
        ], 
        'djacc_speech_settings' => [
          'type' => 'checkbox', 
          'text' => 'Screen reader advanced settings'
        ], 
        'djacc_speech_pitch' => [
          'type' => 'text', 
          'label' => 'Speech pitch', 
          'description' => 'A float representing the pitch value. It can range between 0 (lowest) and 2 (highest), with 1 being the default pitch.', 
          'default' => '1', 
          'show' => 'djacc_speech_settings'
        ], 
        'djacc_speech_rate' => [
          'type' => 'text', 
          'label' => 'Speech rate', 
          'description' => 'A float representing the rate value. It can range between 0.1 (lowest) and 10 (highest), with 1 being the default', 
          'default' => '1', 
          'show' => 'djacc_speech_settings'
        ], 
        'djacc_speech_volume' => [
          'type' => 'text', 
          'label' => 'Speech volume', 
          'description' => 'A float that represents the volume value, between 0 (lowest) and 1 (highest).', 
          'default' => '1', 
          'show' => 'djacc_speech_settings'
        ]
      ], 
      'fieldset' => [
        'default' => [
          'fields' => ['djacc_style', 'djacc_position', 'djacc_mobile_position', 'djacc_layout', 'djacc_mobile_layout', 'djacc_direction', 'djacc_align_popup', 'djacc_align_toolbar', 'djacc_align_mobile', 'djacc_space', [
              'type' => 'grid', 
              'name' => 'djacc_offset_popup', 
              'width' => '1-2', 
              'fields' => ['djacc_voff_popup', 'djacc_hoff_popup']
            ], [
              'type' => 'grid', 
              'name' => 'djacc_offset_toolbar', 
              'width' => '1-2', 
              'fields' => ['djacc_voff_toolbar', 'djacc_hoff_toolbar']
            ], 'djacc_image', [
              'type' => 'grid', 
              'name' => 'djacc_image_dimension', 
              'width' => '1-2', 
              'fields' => ['djacc_width', 'djacc_height']
            ], 'djacc_load_font', 'djacc_font_url', 'djacc_font_family', 'djacc_speech_settings', 'djacc_speech_pitch', 'djacc_speech_rate', 'djacc_speech_volume']
        ]
      ]
    ]
  ]
];
