HEX
Server: Apache
System: Linux eisbus 6.8.12-9-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-9 (2025-03-16T19:18Z) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/PluginBackup/burger-companion/inc/kundoo/features/kundoo-general.php
<?php
function kundoo_burger_general_setting( $wp_customize ) {
	$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
/*=========================================
	 Site Identity
	 =========================================*/

      // Logo Width // 
	 if ( class_exists( 'Burger_Customizer_Range_Control' ) ) {
	 	$wp_customize->add_setting(
	 		'logo_width',
	 		array(
	 			'default'			=> '220',
	 			'capability'     	=> 'edit_theme_options',
	 			'sanitize_callback' => 'kundoo_sanitize_range_value',
	 			'transport'         => 'postMessage',
	 		)
	 	);
	 	$wp_customize->add_control( 
	 		new Burger_Customizer_Range_Control( $wp_customize, 'logo_width', 
	 			array(
	 				'label'      => __( 'Logo Width', 'kundoo' ),
	 				'section'  => 'title_tagline',
	 				'input_attrs' => array(
	 					'min'    => 1,
	 					'max'    => 500,
	 					'step'   => 1,
					//'suffix' => 'px', //optional suffix
	 				),
	 			) ) 
	 	);
	 }
	/*=========================================
	Blog  Section
	=========================================*/
	
	$wp_customize->add_setting(
		'blog_content_head'
		,array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'kundoo_sanitize_text',
			'priority'          => 7,
		)
	);

	$wp_customize->add_control(
		'blog_content_head',
		array(
			'type' => 'hidden',
			'label' => __('Content','kundoo'),
			'section' => 'blog_setting',
		)
	);
	
	// blog_display_num
	if ( class_exists( 'Burger_Customizer_Range_Control' ) ) {
		$wp_customize->add_setting(
			'blog_display_num',
			array(
				'default' => '3',
				'capability'     	=> 'edit_theme_options',
				'sanitize_callback' => 'kundoo_sanitize_range_value',
				'priority'          => 6,
			)
		);
		$wp_customize->add_control( 
			new Burger_Customizer_Range_Control( $wp_customize, 'blog_display_num', 
				array(
					'label'      => __( 'No of Posts Display', 'kundoo' ),
					'section'  => 'blog_setting',
					'input_attrs' => array(
						'min'    => 1,
						'max'    => 100,
						'step'   => 1,
					//'suffix' => 'px', //optional suffix
					),
				) ) 
		);
	}
	/*=========================================
	Breadcrumb  Section
	=========================================*/
	
	// Breadcrumb Content Section // 
	$wp_customize->add_setting(
		'breadcrumb_contents'
			,array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'kundoo_sanitize_text',
		)
	);

	$wp_customize->add_control(
	'breadcrumb_contents',
		array(
			'type' => 'hidden',
			'label' => __('Content','kundoo'),
			'section' => 'breadcrumb_setting',
			'priority' => 5,
		)
	);
	
	// Content size // 
	$wp_customize->add_setting(
    	'breadcrumb_min_height',
    	array(
			'default'     	=> '236',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'kundoo_sanitize_range_value',
			'transport'         => 'postMessage',
		)
	);
	$wp_customize->add_control( 
		new Burger_Customizer_Range_Control( $wp_customize, 'breadcrumb_min_height', 
			array(
				'label'      => __( 'Min Height', 'kundoo'),
				'section'  => 'breadcrumb_setting',
				'priority' => 8,
				'input_attrs' => array(
					'min'    => 0,
					'max'    => 1000,
					'step'   => 1,
					//'suffix' => 'px', //optional suffix
				),
			) ) 
		);
}

add_action( 'customize_register', 'kundoo_burger_general_setting' );