<?php // $file = /home/osribnic/public_html/web2/plugins/system/wcagimprovement/module/elements/pagination/element.json

return [
  '@import' => $filter->apply('path', './element.php', $file), 
  'name' => 'pagination', 
  'title' => 'Pagination', 
  'group' => 'system', 
  'icon' => $filter->apply('url', 'images/icon.svg', $file), 
  'iconSmall' => $filter->apply('url', 'images/iconSmall.svg', $file), 
  'element' => true, 
  'width' => 500, 
  'defaults' => [
    'pagination_type' => 'previous/next', 
    'text_align' => 'center', 
    'aria_label_next' => 'Next', 
    'aria_label_previous' => 'Previous'
  ], 
  'templates' => [
    'render' => $filter->apply('path', './templates/template.php', $file)
  ], 
  'fields' => [
    'pagination_type' => [
      'label' => 'Pagination', 
      'description' => 'Choose between the previous/next or numeric pagination. The numeric pagination is not available for single articles.', 
      'type' => 'select', 
      'options' => [
        'Previous/Next' => 'previous/next', 
        'Numeric' => 'numeric'
      ]
    ], 
    'pagination_space_between' => [
      'type' => 'checkbox', 
      'text' => 'Show space between links', 
      'enable' => 'pagination_type == \'previous/next\''
    ], 
    'aria_label_previous' => [
      'label' => 'Aria Label Prev', 
      'description' => 'Aria-label attribute for accessibility', 
      'source' => true
    ], 
    'aria_label_next' => [
      'label' => 'Aria Label Next', 
      'description' => 'Aria-label attribute for accessibility', 
      'source' => true
    ], 
    'position' => $config->get('builder.position'), 
    'position_left' => $config->get('builder.position_left'), 
    'position_right' => $config->get('builder.position_right'), 
    'position_top' => $config->get('builder.position_top'), 
    'position_bottom' => $config->get('builder.position_bottom'), 
    'position_z_index' => $config->get('builder.position_z_index'), 
    'margin' => $config->get('builder.margin'), 
    'margin_remove_top' => $config->get('builder.margin_remove_top'), 
    'margin_remove_bottom' => $config->get('builder.margin_remove_bottom'), 
    'text_align' => $config->get('builder.text_align'), 
    'text_align_breakpoint' => $config->get('builder.text_align_breakpoint'), 
    'text_align_fallback' => $config->get('builder.text_align_fallback'), 
    'animation' => $config->get('builder.animation'), 
    '_parallax_button' => $config->get('builder._parallax_button'), 
    'visibility' => $config->get('builder.visibility'), 
    'name' => $config->get('builder.name'), 
    'status' => $config->get('builder.status'), 
    'id' => $config->get('builder.id'), 
    '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>', 
      'type' => 'editor', 
      'editor' => 'code', 
      'mode' => 'css', 
      'attrs' => [
        'debounce' => 500, 
        'hints' => ['.el-element']
      ]
    ]
  ], 
  'fieldset' => [
    'default' => [
      'type' => 'tabs', 
      'fields' => [[
          'title' => 'Settings', 
          'fields' => [[
              'label' => 'Pagination', 
              'type' => 'group', 
              'fields' => ['pagination_type', 'pagination_space_between', 'aria_label_next', 'aria_label_previous']
            ], [
              'label' => 'General', 
              'type' => 'group', 
              'fields' => ['position', 'position_left', 'position_right', 'position_top', 'position_bottom', 'position_z_index', 'margin', 'margin_remove_top', 'margin_remove_bottom', 'text_align', 'text_align_breakpoint', 'text_align_fallback', 'animation', '_parallax_button', 'visibility']
            ]]
        ], $config->get('builder.advanced')]
    ]
  ]
];
