<?php
    Redux::setSection( $opt_name, array(
        'title'  => esc_html__('Menu', 'edumodo' ),
        'icon'   => 'el-align-left',
        'id'     => 'header_menu_options',
        'fields' => array(

            // array(
            //     'id'      => 'enable_mega_menu',
            //     'type'    => 'switch',
            //     'title'   => esc_html__('Enable Mega Menu', 'edumodo'),
            //     'default'  => false,
            //     'on'      => 'Enabled',
            //     'off'     => 'Disabled',
            // ),

            array(
                'id'          => 'menu_font',
                'type'        => 'typography',
                'title' => esc_html__('Main Menu', 'edumodo'),
                'google'    => true,
                'font-style'=> true,
                'font-weight'=> true,
                'font-size' => true,
                'line-height'=> true,
                'text-align'=> false,
                'text-transform'=> true,
                'subsets'   => false,
                'color'     => false,
                'output'      => array( '.edumodo-header .navbar-v1 .navigation-main > li > a:first-child, .edumodo-header span.login a, .edumodo-header span.register-btn a' ),
                'compiler'    => array( '.edumodo-header .navbar-v1 .navigation-main > li > a:first-child, .edumodo-header span.login a, .edumodo-header span.register-btn a' ),
                'units'       => 'px',
            ),

            array(
                'id'       => 'menu_color',
                'type'     => 'color',
                'title'    => __( 'Menu Text Color', 'edumodo' ),
                'validate' => 'color',
                'output'      => array( '.edumodo-header .navbar-v1 .navigation-main > li > a:first-child, .home .edumodo-header.transparent-active.fixed-header .navbar-v1 .navigation-main > li > a:first-child, .edumodo-header.sticky-active span.login a, .edumodo-header.sticky-active.fixed-header span.login a, .edumodo-header.sticky-active.transparent-active.fixed-header span.login a' ),
            ),
            
            array(
                'id'       => 'transparent_menu_text_color',
                'type'     => 'color',
                'title'    => __( 'Transparent Menu Text Color', 'edumodo' ),
                'validate' => 'color',
                'output'      => array( '.edumodo-header.transparent-active .navbar-v1 .navigation-main > li > a:first-child, .edumodo-header.sticky-active.transparent-active span.login a' ),
                'required' => array('enable_transparent_active','=', true)
            ),

            array(
                'id'        => 'nav_bg_color',
                'type'      => 'color',
                'title'     => esc_html__('Menu Background Color', 'edumodo'),
                'output'    => array(
                    'background' => ' .edumodo-header div#edumodo-mainnav',
                ),
            ),
            
            array(
                'id'    => 'menu_active_color',
                'type'  => 'color',
                'title' => esc_html__('Menu Hover/Active Color', 'edumodo'),
                'output'    => array(
                    'color' => ' .edumodo-header.sticky-active.fixed-header .navbar-v1 .navigation-main > li.current-menu-item > a:first-child, .edumodo-header.transparent-active .navbar-v1 .navigation-main > li.current-menu-item > a:first-child, .edumodo-header .navbar-v1 .navigation-main > li.current-menu-parent > a:first-child, 
                    .edumodo-header .navbar-v1 .navigation-main > li > a:first-child:hover, .edumodo-header.sticky-active.fixed-header span.login a:hover, .edumodo-header span.login a:hover',
                ),
            ),

            array(
                'id'          => 'sub_menu_font',
                'type'        => 'typography',
                'title' => esc_html__('Sub Menu', 'edumodo'),
                'google'    => true,
                'font-style'=> true,
                'font-weight'=> true,
                'font-size' => true,
                'line-height'=> true,
                'text-align'=> false,
                'text-transform'=> true,
                'subsets'   => false,
                'color'     => false,
                'output'      => array( '.edumodo-header .navbar-v1 .navigation-main ul li > a' ),
                'compiler'    => array( '.edumodo-header .navbar-v1 .navigation-main ul li > a' ),
                'units'       => 'px',
            ),

            array(
                'id'       => 'sub_menu_color',
                'type'     => 'color',
                'title'    => __( 'Sub Menu Color', 'edumodo' ),
                'validate' => 'color',
                'output'      => array( ' .edumodo-header .navbar-v1 .navigation-main ul li > a' ),
            ),

            array(
                'id'       => 'sub_menu_bg_color',
                'type'     => 'color',
                'title'    => __( 'Sub Menu Background Color', 'edumodo' ),
                'validate' => 'color',
                'output'    => array(
                    'background' => ' .edumodo-header .navbar-v1 .navigation-main li li',
                ),
            ),

             array(
                'id'    => 'sub_menu_active_color',
                'type'  => 'color',
                'title' => esc_html__('Sub Menu Hover/Active Color', 'edumodo'),
                'output'    => array(
                    'color' => ' .edumodo-header .navbar-v1 .navigation-main .current-menu-item > a, .edumodo-header .navbar-v1 .navigation-main li:hover > a',
                ),
            ),

        )
  ));
