<?php

namespace Reach\App\Fields\Options;

/**
 * Class SiteOptionsAdmin
 *
 * registerFields()
 *
 * @package Reach\App\Fields\Options
 */

class SiteOptionsAdmin {

    /**
     * Register Admin Tab fields into our Site Options parent group
     *
     * @return array
     *
     * @since 1.0.0
     */
    public function registerFields() {
        $fields = [
            [
                'key'       => 'field_1244817397d7',
                'label'     => __( 'Admin', 'reach' ),
                'type'      => 'tab',
                'placement' => 'left'
            ],
            [
                'key'   => 'field_1244817397d6',
                'label' => __( 'Google API Key', 'reach' ),
                'name'  => 'google_api_key',
                'type'  => 'text'
            ],
            [
                'key'   => 'field_1244817397d8',
                'label' => __( 'Google Analytics ID', 'reach' ),
                'name'  => 'google_analytics_id',
                'type'  => 'text'
            ],
            [
                'key'         => 'field_1244817397e0',
                'label'       => __( 'Header Scripts', 'reach' ),
                'description' => __( 'Scripts placed hear will appear before the opening body tag on all pages.', 'reach' ),
                'name'        => 'header_scripts',
                'type'        => 'textarea',
                'rows'        => 12
            ],
            [
                'key'         => 'field_1244817397e1',
                'label'       => __( 'Footer Scripts', 'reach' ),
                'description' => __( 'Scripts placed hear will appear before the closing body tag on all pages.', 'reach' ),
                'name'        => 'footer_scripts',
                'type'        => 'textarea',
                'rows'        => 12
            ],
            [
                'key'   => 'field_1244817397d5',
                'label' => __( 'Custom CSS', 'reach' ),
                'name'  => 'custom_css',
                'type'  => 'textarea',
                'rows'  => 20
            ],
        ];

        return $fields;
    }
}
