<?php

namespace Reach\App\Fields\Options;

use Reach\App\Theme\ThemeMenus;


/**
 * Class SiteOptionsMenu
 *
 * registerFields()
 *
 * @package Reach\App\Fields\Options
 */
class SiteOptionsMenu {

    /**
     * Register Menu Tab fields into our Site Options parent group
     *
     * @return array
     *
     * @since 1.0.0
     */
    public function registerFields() {
        $fields = [
            [
                'key'       => 'field_7518433981373',
                'label'     => __( 'Menus', 'reach' ),
                'type'      => 'tab',
                'placement' => 'left'
            ],
            [
                'key'           => 'field_554af23fg4b02',
                'label'         => __( 'Menu Locations', 'reach' ),
                'name'          => 'navigation',
                'type'          => 'checkbox',
                'instructions'  => __( 'Enable/Disable which menus will be available within this theme.', 'reach' ),
                'choices'       => ThemeMenus::getThemeMenuLocations(),
                'wrapper'       => [
                    'class' => 'reach-switch'
                ],
                'layout'        => 'vertical',
                'return_format' => 'value',
            ]
        ];

        return $fields;
    }
}
