<?php

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}  
    
    /*********************
    postnavi
    *******************/
    $wp_customize->add_section('wrockmetro_postnavi_section',
    array(
        'title'       => __( 'Post Navigation', 'wrock-metro' ),
        'capability'  => 'edit_theme_options',						
        'panel'			=> 'wrockmetro_single_postsset',
        'priority'    => apply_filters( 'wrockmetro_postnavi_section_priority', 10 ),
    ));


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

    $wp_customize->add_control(
        new wrockmetro_Customizer_Heading_Control(
            $wp_customize,
            'wrockmetro_header_heading',
            array(
                'label'    => esc_html__( 'Choose Post Navi Style', 'wrock-metro' ),
                'section'  => 'wrockmetro_postnavi_section',
                'priority' => 15,
            )));
    $wp_customize->add_setting(
    'wrockmetro_postnavi_style',
    array(
        'default'           => 'styleone',
        'type'              => 'theme_mod',
        'sanitize_callback' => 'wrockmetro_customize_sanitize_select',
        'capability'        => 'edit_theme_options',
    )
);

$wp_customize->add_control(
    new wrockmetro_Image_Radio_Control(
        $wp_customize,
        'wrockmetro_postnavi_style',
        array(
            'label'       => __( 'Post Navigation Style', 'wrock-metro' ),
            'section'     => 'wrockmetro_postnavi_section',
            'choices'     => array(
                'styleone'  => get_template_directory_uri() . '/images/postnavi/postnavi1.jpg',
                'styletwo' => get_template_directory_uri() . '/images/postnavi/postnavi2.jpg',
                'stylethree' => get_template_directory_uri() . '/images/postnavi/postnavi3.jpg',
                'stylefour' => get_template_directory_uri() . '/images/postnavi/postnavi4.jpg',
            ),
            'priority'    => apply_filters( 'wrockmetro_postnavi_style_priority', 20 ),
        )
    ));
    
    $wp_customize->add_setting(
        'wrockmetro_postnavi_headingset',
        array(
            'sanitize_callback' => 'wp_kses',
        ));


        $wp_customize->add_control(
            new wrockmetro_Customizer_Heading_Control(
                $wp_customize,
                'wrockmetro_postnavi_headingset',
                array(
                    'label'    => esc_html__( 'postnavi Settings', 'wrock-metro' ),
                    'section'  => 'wrockmetro_postnavi_section',
                    'priority' => 25,
                )));
        
        $wp_customize->add_setting('wrockmetro_postnavi_on',	
        array(
            'default'			=> 'enable',
            'type'				=> 'theme_mod',
            'capability'		=> 'edit_theme_options',
            'sanitize_callback'	=> 'wrockmetro_customize_sanitize_select'
        ));
    $wp_customize->add_control('wrockmetro_postnavi_on',
         array (                             
            'type' => 'radio',
            'label' => __('Enable or Disable postnavi','wrock-metro'),
            'settings'   => 'wrockmetro_postnavi_on',
            'section' => 'wrockmetro_postnavi_section',
            'choices' => array(
                'enable' => __('Enable','wrock-metro'),
                'disable' => __('Disable','wrock-metro'),
             ),
             'priority'    => apply_filters( 'wrockmetro_postnavi_on_priority', 30 ),
         ));