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

$wp_customize->add_section( 'power_news_breadcrumb', array(
	'title'             => esc_html__( 'Breadcrumb','power-news' ),
	'description'       => esc_html__( 'Breadcrumb section options.', 'power-news' ),
	'panel'             => 'power_news_theme_options_panel',
) );

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

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

// Breadcrumb separator setting and control.
$wp_customize->add_setting( 'power_news_theme_options[breadcrumb_separator]', array(
	'sanitize_callback'	=> 'sanitize_text_field',
	'default'          	=> $options['breadcrumb_separator'],
) );

$wp_customize->add_control( 'power_news_theme_options[breadcrumb_separator]', array(
	'label'            	=> esc_html__( 'Separator', 'power-news' ),
	'active_callback' 	=> 'power_news_is_breadcrumb_enable',
	'section'          	=> 'power_news_breadcrumb',
) );
