Lot More Options are available in MagZenPro.", 'magzen' );
$magzen_custom_widget = __( 'Custom Widget', 'magzen' );
$magzen_custom_widget_details = __( 'We offer many custom widgets that are stylized and ready for use. Simply drag & drop into place to activate!', 'magzen' );
$magzen_advanced_admin = __( 'Advanced Admin', 'magzen' );
$magzen_advanced_admin_details = __( ' you can customize any part of your site quickly and easily using customize options!', 'magzen' );
$magzen_font_awesome = __( 'Font Awesome', 'magzen' );
$magzen_font_awesome_details = __( 'Font Awesome icons are fully integrated into the theme. Use them anywhere in your site in 6 different sizes!', 'magzen' );
$magzen_responsive_layout = __( 'Responsive Layout', 'magzen' );
$magzen_responsive_layout_details = __('MagZen Pro is fully responsive and can adapt to any screen size. Resize your browser window to view it!', 'magzen' );
$magzen_social_media = __( 'Social Media', 'magzen' );
$magzen_social_media_details = __( 'Want your users to stay in touch? No problem, magzen Pro has Social Media icons all throughout the theme!', 'magzen' ); 
$magzen_view_demo = __( 'View Demo', 'magzen');
$magzen_upgrade_to_pro = __( 'Upgrade To Pro', 'magzen' );  
$magzen_why_upgrade = <<< FEATURES
        Version ); ?>
        
          
        
	   
	        
	        
	        
	    
  
        
            
        
        
             10,
		'type' => 'theme_mod',
		'panels' => apply_filters( 'magzen_customizer_options', array(
			'magzen' => array(
				'priority'       => 9,
				'title'          => __('Theme Options', 'magzen'),
				'description'    => __('Theme Options', 'magzen'),
				'sections' => array(
					'general' => array(
						'title' => __('General', 'magzen'),
						'description' => __('General settings that affects overall site', 'magzen'),
						'fields' => array(
							'breadcrumb' => array(
								'type' => 'checkbox',
								'label' => __('Enable Breadcrumb', 'magzen'),
								'default' => 0,
								'sanitize_callback' => 'magzen_boolean',
							),
							'breadcrumb_char' => array(
								'type' => 'select',
								'label' => __('Select Breadcrumb Character', 'magzen'),
								'choices' => array(
									'1' => ' » ',
									'2' => ' // ',
									'3' => ' > '
								),
								'sanitize_callback' => 'magzen_breadcrumb_char_choices',
								'default' => '1',
							),
							'numeric_pagination' => array(
                                'type' => 'checkbox',
                                'label' => __('Enable Numeric Page Navigation', 'magzen'),
                                'description' => __('Check to display numeric page navigation, instead of Previous Posts / Next Posts links.', 'magzen'),
                                'default' => 1,  
                                'sanitize_callback' => 'magzen_boolean',
                            ),
						),
					),
					'header' => array(
						'title' => __('Header', 'magzen'),
						'description' => __('Header options', 'magzen'),
						'fields' => array(
							'logo_title' => array(
								'type' => 'checkbox',
								'label' => __('Logo as Title', 'magzen'),
								'default' => 0,
								'sanitize_callback' => 'magzen_boolean',
							),
							'tagline' => array(
								'type' => 'checkbox',
								'label' => __('Show site Tagline', 'magzen'),
								'default' => 1,
								'sanitize_callback' => 'magzen_boolean',
							),
							'header_show_date' => array( 
                                'type' => 'checkbox',
                                'label' => __('Show Date in Header', 'magzen'),
                                'default' => 1,
                                'sanitize_callback' => 'magzen_boolean',
                            ),
							'header_search' => array(
                                'type' => 'checkbox',
                                'label' => __('Show Search box in Navigation', 'magzen'),
                                'default' => 1,
                                'sanitize_callback' => 'magzen_boolean', 
                            ),
                            'header_breaking_news' => array(
                                'type' => 'checkbox',
                                'label' => __('Enable Breaking News', 'magzen'),
                                'default' => 1,
                                'sanitize_callback' => 'magzen_boolean', 
                            ),
                            'header_breaking_news_title' => array(
                                'type' => 'text',
                                'label' => __('Breaking News Title', 'magzen'),
                                'description' => __('BREAKING NEWS', 'magzen'),
                                'sanitize_callback' => 'magzen_footer_copyright',
                            ),
						),
					),
					'footer' => array(
						'title' => __('Footer', 'magzen'),
						'description' => __('Footer related options', 'magzen'),
						'fields' => array(
							'footer_widgets' => array(
								'type' => 'checkbox',
								'label' => __('Footer Widget Area', 'magzen'),
								'default' => 1,
								'sanitize_callback' => 'magzen_boolean',
							),
							'copyright' => array(
                                'type' => 'textarea',
                                'label' => __('Footer Copyright Text (Validated that it\'s HTML Allowed)', 'magzen'),
                                'description' => __('HTML Allowed. 
This field is even HTML validated! ', 'magzen'),
                                'sanitize_callback' => 'magzen_footer_copyright',
                            ),
						),
					),
					'home' => array(
						'title' => __('Home', 'magzen'),
						'description' => __('Please go to Appearance → Widgets and add widget to the "Magazine Page" widget area. You can use the MagZen : Magazine Posts Boxed widgets to set up magazine page.', 'magzen'),
						'fields' => array(
							/* 'slider_field' => array(   
								'type' => 'checkbox',
								'label' => __('Enable Home Page Slider Section', 'magzen'),
								'default' => 1,
								'sanitize_callback' => 'magzen_boolean',
							),
							'slider_cat' => array(
								'type' => 'category',
								'label' => __('Slider Posts Category', 'magzen'),
								'sanitize_callback' => 'absint',
							),
							'slider_count' => array(
								'type' => 'text',
								'label' => __('No. of Sliders', 'magzen'),
								'sanitize_callback' => 'absint',
								'default' => 3,
							),
							'enable_recent_post_service' => array(
                                'type' => 'checkbox',
                                'label' => __('Enable Home Page Recent Post Section', 'magzen'),
                                'description' => __('Enable recent post section in home page', 'magzen'),
                                'default' => 1,  
                            ),
							'recent_posts_count' => array(
								'type' => 'text',
								'label' => __('No. of Recent Posts', 'magzen'),
								'sanitize_callback' => 'absint',
								'default' => 6,
							),*/
							'enable_magazine_default_content' => array(
                                'type' => 'checkbox',
                                'label' => __('Enable Magazine Page Default Content', 'magzen'),
                                'default' => 0, 
                                'sanitize_callback' => 'magzen_boolean'  
                            ), 
						),
					),
					'blog' => array(
						'title' => __('Blog', 'magzen'),
						'description' => __('Blog Related Posts options', 'magzen'),
						'fields' => array(
                             'author_bio_box' => array(
                                'type' => 'checkbox',
                                'label' => __(' Enable Author Bio Box below single post', 'magzen'),
                                'description' => __('Show Author information box below single post.', 'magzen'),
                                'default' => 0, 
                                'sanitize_callback' => 'magzen_boolean' 
                            ),
                            'related_posts' => array(
                                'type' => 'checkbox',
                                'label' => __('Show Related posts', 'magzen'),
                                'description' => __('Show related posts.', 'magzen'),
                                'default' => 0,  
                                'sanitize_callback' => 'magzen_boolean'
                            ),
                            'related_posts_hierarchy' => array(
                                'type' => 'radio',
                                'label' => __('Related Posts Must Be Shown As:', 'magzen'),
                                'choices' => array(
                                    '1' => 'Related Posts By Tags',
                                    '2' => 'Related Posts By Categories',      
                                ),
                               'default' => '1', 
                               'sanitize_callback' => 'absint'  
                            ),
                            'comments' => array(
                                'type' => 'checkbox',
                                'label' => __(' Show Comments', 'magzen'),
                                'description' => __('Show Comments', 'magzen'),
                                'default' => 1, 
                                'sanitize_callback' => 'magzen_boolean' 
                            ),
						),
					),
				)
			),
		) 
	)
	);
function magzen_boolean($value) {
	if(is_bool($value)) {
		return $value;
	} else {
		return false;
	}
}
function magzen_breadcrumb_char_choices($value='') {
	$choices = array('1','2','3');
	if( in_array($value, $choices)) {
		return $value;
	} else {
		return '1';
	}
}
if ( ! function_exists( 'magzen_footer_copyright' ) ) {
    function magzen_footer_copyright($string) {
        $allowed_tags = array(    
                            'a' => array(
                            	'href' => array(),
								'title' => array(),
								'target' => array(),
                            ),
							'img' => array(
								'src' => array(),  
								'alt' => array(),
							),
							'p' => array(),
							'br' => array(),
							'em' => array(),
                            'strong' => array(),
        );
        return wp_kses( $string,$allowed_tags);
    }
}