<?php

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}  
    
    /*********************
    404error
    *******************/
    $wp_customize->add_section('magazinestyle_404error_section',
    array(
        'title'       => __( '404 Error Page', 'magazine-style' ),
        'capability'  => 'edit_theme_options',
        'priority'    => apply_filters( 'magazinestyle_404error_section_priority', 185 ),
    ));

    /********************************************4044 */

    $wp_customize->add_setting(
        'magazinestyle_header_heading',
        array(
            'sanitize_callback' => 'wp_kses',
        ));

    $wp_customize->add_control(
        new magazinestyle_Customizer_Heading_Control(
            $wp_customize,
            'magazinestyle_header_heading',
            array(
                'label'    => esc_html__( 'Choose 404error Style', 'magazine-style' ),
                'section'  => 'magazinestyle_404error_section',
                'priority' => 15,
            )));
    $wp_customize->add_setting(
    'magazinestyle_404error_style',
    array(
        'default'           => 'styleone',
        'type'              => 'theme_mod',
        'sanitize_callback' => 'magazinestyle_customize_sanitize_select',
        'capability'        => 'edit_theme_options',
    )
);

$wp_customize->add_control(
    new magazinestyle_Image_Radio_Control(
        $wp_customize,
        'magazinestyle_404error_style',       
        array(
            'section'     => 'magazinestyle_404error_section',
            'choices'     => array(
				'stylesix' => get_template_directory_uri() . '/images/404error/404errorstyle6.jpg',
                'styleone'  => get_template_directory_uri() . '/images/404error/404errorstyle1.jpg',
                'styletwo' => get_template_directory_uri() . '/images/404error/404errorstyle2.jpg',
                'stylethree' => get_template_directory_uri() . '/images/404error/404errorstyle3.jpg',
                'stylefour' => get_template_directory_uri() . '/images/404error/404errorstyle4.jpg',
                'stylefive' => get_template_directory_uri() . '/images/404error/404errorstyle5.jpg',
            ),
            'priority'    => apply_filters( 'magazinestyle_404error_style_priority', 20 ),
        )
    ));
    
    // $wp_customize->add_setting(
    //     'magazinestyle_404error_headingset',
    //     array(
    //         'sanitize_callback' => 'wp_kses',
    //     ));


    //     $wp_customize->add_control(
    //         new magazinestyle_Customizer_Heading_Control(
    //             $wp_customize,
    //             'magazinestyle_404error_headingset',
    //             array(
    //                 'label'    => esc_html__( '404error Settings', 'magazine-style' ),
    //                 'section'  => 'magazinestyle_404error_section',
    //                 'priority' => 25,
    //             )));
        
    //     $wp_customize->add_setting('magazinestyle_404error_on',	
    //     array(
    //         'default'			=> 'enable',
    //         'type'				=> 'theme_mod',
    //         'capability'		=> 'edit_theme_options',
    //         'sanitize_callback'	=> 'magazinestyle_customize_sanitize_select'
    //     ));
    // $wp_customize->add_control('magazinestyle_404error_on',
    //      array (                             
    //         'type' => 'radio',
    //         'label' => __('Enable or Disable 404error','magazine-style'),
    //         'settings'   => 'magazinestyle_404error_on',
    //         'section' => 'magazinestyle_404error_section',
    //         'choices' => array(
    //             'enable' => __('Enable','magazine-style'),
    //             'disable' => __('Disable','magazine-style'),
    //          ),
    //          'priority'    => apply_filters( 'magazinestyle_404error_on_priority', 30 ),
    //      ));