<?php
/**
 * pagination options
 *
 * @package Theme Palace
 * @subpackage Power News
 * @since Power News 1.0.0
 */

// Add sidebar section
$wp_customize->add_section( 'power_news_pagination', array(
	'title'               => esc_html__('Pagination','power-news'),
	'description'         => esc_html__( 'Pagination section options.', 'power-news' ),
	'panel'               => 'power_news_theme_options_panel',
) );

// Sidebar position setting and control.
$wp_customize->add_setting( 'power_news_theme_options[pagination_enable]', array(
	'sanitize_callback' => 'power_news_sanitize_switch_control',
	'default'             => $options['pagination_enable'],
) );

$wp_customize->add_control( new Power_News_Switch_Control( $wp_customize, 'power_news_theme_options[pagination_enable]', array(
	'label'               => esc_html__( 'Pagination Enable', 'power-news' ),
	'section'             => 'power_news_pagination',
	'on_off_label' 		=> power_news_switch_options(),
) ) );

// Site layout setting and control.
$wp_customize->add_setting( 'power_news_theme_options[pagination_type]', array(
	'sanitize_callback'   => 'power_news_sanitize_select',
	'default'             => $options['pagination_type'],
) );

$wp_customize->add_control( 'power_news_theme_options[pagination_type]', array(
	'label'               => esc_html__( 'Pagination Type', 'power-news' ),
	'section'             => 'power_news_pagination',
	'type'                => 'select',
	'choices'			  => power_news_pagination_options(),
	'active_callback'	  => 'power_news_is_pagination_enable',
) );
