HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/drakkar_site_dev/wp-content/plugins/spicebox/inc/innofit/customizer/about-section.php
<?php
/* About section */
	$wp_customize->add_section( 'about_section' , array(
		'title'      => __('About settings', 'spicebox'),
		'panel'  => 'section_settings',
		'priority'   => 3,
	) );
		
		
		// Enable service more btn
		$wp_customize->add_setting( 'home_about_section_enabled' , array( 'default' => 'on') );
		$wp_customize->add_control(	'home_about_section_enabled' , array(
				'label'    => __( 'Enable About on homepage', 'spicebox' ),
				'section'  => 'about_section',
				'type'     => 'radio',
				'choices' => array(
					'on'=>__('ON', 'spicebox'),
					'off'=>__('OFF', 'spicebox')
				)
		));
	
	//About section content
		if ( class_exists( 'Innofit_Page_Editor' ) ) {
		$about_image = SPICEB_PLUGIN_URL.'inc/innofit/images/about/about.jpg';
		$default = '<div class="row v-center">
						<div class="col-md-5 col-sm-5 col-xs-12">	
							<figure class="about-thumbnail mbottom-50">	
								<img src="'.esc_url($about_image).'" alt="About">
							</figure>
						</div>
						
						<div class="col-md-7 col-sm-7 col-xs-12">
							<div class="about-content mbottom-50">
								<h6 class="entry-subtitle"> ' . esc_html__( 'Welcome to','spicebox') .' <span class="text-default">' .esc_html__( 'Innofit','spicebox').'</span></h6>
								<h1 class="entry-title">' . esc_html__( 'We have the right solutions','spicebox').'</h1>
								<p>' . esc_html__( 'Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totame rems aperiam, eaque ipsa quae ab illo inventore veritatis quasi architecto beatae vitaes dicta sunt explicabo. Nemo enim ipsam voluptatem.','spicebox').'</p>
								<p>' . esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.','spicebox').'</p>
								<div class="ptop-15"><a href="#" class="btn-ex-small btn-border">'. esc_html__( 'Our Story','spicebox').'</a></div>
							</div>
						</div>
					</div>
					';
		$wp_customize->add_setting(
			'about_section_content', array(
				'default'           => $default,
				'sanitize_callback' => 'wp_kses_post',
				'transport'         => $selective_refresh,
			)
		);

		$wp_customize->add_control(
			new Innofit_Page_Editor(
				$wp_customize, 'about_section_content', array(
					'label'    => esc_html__( 'About content', 'spicebox' ),
					'section'  => 'about_section',
					'priority' => 10,
					'needsync' => true,
				)
			)
		);
	}
	
	
	//About image
	$wp_customize->add_setting( 'innofit_about_section_background',array('default' => ''));
	
 
	$wp_customize->add_control(
		new WP_Customize_Image_Control(
			$wp_customize,
			'innofit_about_section_background',
			array(
				'label' => __('Image','spasalon'),
				'settings' =>'innofit_about_section_background',
				'section' => 'about_section',
				'type' => 'upload',
			)
		)
	);
	
	
	/**
	* Add selective refresh for Front page about section controls.
	*/

	
	$wp_customize->selective_refresh->add_partial( 'about_section_content', array(
		'selector'            => '.about .entry-subtitle',
		'settings'            => 'about_section_content',
		
	) );
	
	
	
	
?>