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/hotel-galaxy/features/hotelgalaxy-general.php
<?php 
if(! function_exists('burger_companion_hotelgalaxy_general_customizer')){

	add_action( 'customize_register', 'burger_companion_hotelgalaxy_general_customizer', 999);

	function burger_companion_hotelgalaxy_general_customizer( $wp_customize ) {

		if ( ! $wp_customize->get_panel( 'general_section' ) ) {
			$wp_customize->add_panel( 'general_section', array(
				'priority' => 20,
				'title' => __( 'General', 'hotel-galaxy'),
			) );
		}

		// height // 
		if ( class_exists( 'Burger_Customizer_Range_Control' ) ) {

			//header  
			$wp_customize->add_setting(
				'breadcrumb_size_head'
				,array(
					'capability'     	=> 'edit_theme_options',
					'sanitize_callback' => 'hotelgalaxy_sanitize_text',
				)
			);

			$wp_customize->add_control(
				'breadcrumb_size_head',
				array(
					'type' => 'hidden',
					'label' => __('Height','hotel-galaxy'),
					'section' => 'breadcrumb_section',
					'priority'  => 2,
				)
			); 

			$wp_customize->add_setting('breadcrumb_height',
				array(
					'default'			=> 400,
					'capability'     	=> 'edit_theme_options',
					'sanitize_callback' => 'hotelgalaxy_sanitize_range_value',
					'transport'         => 'postMessage',
				)
			);
			$wp_customize->add_control( 
				new Burger_Customizer_Range_Control( $wp_customize, 'breadcrumb_height', 
					array(
						'label'      => __( 'Height', 'hotel-galaxy' ),
						'section'    => 'breadcrumb_section',
						'priority'       => 2,							
						'input_attrs'    => array(							
							'min'           => 0,
							'max'           => 1000,
							'step'          => 1,							
						),						
					) ) 
			);
		}
	}
}