HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (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/html/wptrinityconsulting/wp-content/themes/finbuzz/inc/customizer/customizer.php
<?php
/**
 * @author  RadiusTheme
 * @since   1.0
 * @version 1.1
 */
namespace radiustheme\finbuzz\Customizer;
/**
 * Adds the individual sections, settings, and controls to the theme customizer
 */
class FinbuzzTheme_Customizer {
	// Get our default values
	protected $defaults;
    protected static $instance = null;

	public function __construct() {
		// Register Panels
		add_action( 'customize_register', array( $this, 'add_customizer_panels' ) );
		// Register sections
		add_action( 'customize_register', array( $this, 'add_customizer_sections' ) );
	}

    public static function instance() {
        if (null == self::$instance) {
            self::$instance = new self();
        }
        return self::$instance;
    }

    public function populated_default_data() {
        $this->defaults = rttheme_generate_defaults();
    }

	/**
	 * Customizer Panels
	 */
	public function add_customizer_panels( $wp_customize ) {

	    // Add Layput Panel
		$wp_customize->add_panel( 'rttheme_layouts_defaults',
		 	array(
				'title' => __( 'Layout Settings', 'finbuzz' ),
				'description' => esc_html__( 'Adjust the overall layout for your site.', 'finbuzz' ),
				'priority' => 5,
			)
		);

        // Add General Panel
        $wp_customize->add_panel( 'rttheme_blog_settings',
            array(
                'title' => __( 'Blog Settings', 'finbuzz' ),
                'description' => esc_html__( 'Adjust the overall layout for your site.', 'finbuzz' ),
                'priority' => 6,
            )
        );
		
		// Add General Panel
        $wp_customize->add_panel( 'rttheme_cpt_settings',
            array(
                'title' => __( 'Custom Posts', 'finbuzz' ),
                'description' => esc_html__( 'All custom posts settings here.', 'finbuzz' ),
                'priority' => 7,
            )
        );
		
	}

    /**
    * Customizer sections
    */
	public function add_customizer_sections( $wp_customize ) {

		// Rename the default Colors section
		$wp_customize->get_section( 'colors' )->title = 'Background';

		// Move the default Colors section to our new Colors Panel
		$wp_customize->get_section( 'colors' )->panel = 'colors_panel';

		// Change the Priority of the default Colors section so it's at the top of our Panel
		$wp_customize->get_section( 'colors' )->priority = 10;

		// Add General Section
		$wp_customize->add_section( 'general_section',
			array(
				'title' => __( 'General', 'finbuzz' ),
				'priority' => 1,
			)
		);
		
		// Add Color Section
		$wp_customize->add_section( 'color_section',
			array(
				'title' => __( 'Color', 'finbuzz' ),
				'priority' => 2,
			)
		);

		// Add Header Main Section
		$wp_customize->add_section( 'header_section',
			array(
				'title' => __( 'Header', 'finbuzz' ),
				'priority' => 3,
			)
		);

        // Add Footer Section
        $wp_customize->add_section( 'footer_section',
            array(
                'title' => __( 'Footer', 'finbuzz' ),
                'priority' => 4,
            )
        );
		
		// Add Footer Section
        $wp_customize->add_section( 'banner_section',
            array(
                'title' => __( 'Banner', 'finbuzz' ),
                'priority' => 5,
            )
        );
		
        // Add Pages Slug Section		
		$wp_customize->add_section( 'slug_layout_section',
            array(
                'title' => __( 'Post Type Slug', 'finbuzz' ),
                'priority' => 1,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		// Add Pages Layout Section	
        $wp_customize->add_section( 'page_layout_section',
            array(
                'title' => __( 'Pages Layout', 'finbuzz' ),
                'priority' => 2,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
        // Add Blog Archive Layout Section
        $wp_customize->add_section( 'blog_layout_section',
            array(
                'title' => __( 'Blog Archive Layout', 'finbuzz' ),
                'priority' => 3,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		
		// Add Blog Single Layout Section
        $wp_customize->add_section( 'post_single_layout_section',
            array(
                'title' => __( 'Post Single Layout', 'finbuzz' ),
                'priority' => 4,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		
		// Add Service Archive Layout Section
        $wp_customize->add_section( 'service_layout_section',
            array(
                'title' => __( 'Service Archive Layout', 'finbuzz' ),
                'priority' => 5,
                'panel' => 'rttheme_layouts_defaults',
            )
        );

		// Add Service Single Layout Section
        $wp_customize->add_section( 'service_single_layout_section',
            array(
                'title' => __( 'Service Single Layout', 'finbuzz' ),
                'priority' => 6,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		// Add Gallery Archive Layout Section
        $wp_customize->add_section( 'gallery_layout_section',
            array(
                'title' => __( 'Gallery Archive Layout', 'finbuzz' ),
                'priority' => 7,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		
		// Add Gallery Single Layout Section
        $wp_customize->add_section( 'gallery_single_layout_section',
            array(
                'title' => __( 'Gallery Single Layout', 'finbuzz' ),
                'priority' => 8,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		// Add Portfolio Archive Layout Section
        $wp_customize->add_section( 'portfolio_layout_section',
            array(
                'title' => __( 'Portfolio Archive Layout', 'finbuzz' ),
                'priority' => 9,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		
		// Add Portfolio Single Layout Section
        $wp_customize->add_section( 'portfolio_single_layout_section',
            array(
                'title' => __( 'Portfolio Single Layout', 'finbuzz' ),
                'priority' => 10,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		
		// Add Team Archive Layout Section
        $wp_customize->add_section( 'team_layout_section',
            array(
                'title' => __( 'Team Archive Layout', 'finbuzz' ),
                'priority' => 11,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		
		// Add Team Single Layout Section
        $wp_customize->add_section( 'team_single_layout_section',
            array(
                'title' => __( 'Team Single Layout', 'finbuzz' ),
                'priority' => 12,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		
		// Add Search Layout Section
        $wp_customize->add_section( 'search_layout_section',
            array(
                'title' => __( 'Search Layout', 'finbuzz' ),
                'priority' => 13,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		
		// Add Error Layout Section
        $wp_customize->add_section( 'error_layout_section',
            array(
                'title' => __( 'Error Layout', 'finbuzz' ),
                'priority' => 14,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		
		// Add Shop Archive Layout Section
        $wp_customize->add_section( 'wc_shop_layout_section',
            array(
                'title' => __( 'Shop Archive Layout', 'neeon' ),
                'priority' => 15,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		
		// Add Shop Single Layout Section
        $wp_customize->add_section( 'wc_product_layout_section',
            array(
                'title' => __( 'Product Single Layout', 'neeon' ),
                'priority' => 16,
                'panel' => 'rttheme_layouts_defaults',
            )
        );
		
        // Add Blog Settings Section -------------------------
        $wp_customize->add_section( 'blog_post_settings_section',
            array(
                'title' => __( 'Blog Settings', 'finbuzz' ),
                'priority' => 7,
                'panel' => 'rttheme_blog_settings',
            )
        );
        // Add Single Blog Settings Section
        $wp_customize->add_section( 'single_post_secttings_section',
            array(
                'title' => __( 'Post Settings', 'finbuzz' ),
                'priority' => 8,
                'panel' => 'rttheme_blog_settings',
            )
        );
		// Add Single Share Settings Section
        $wp_customize->add_section( 'single_post_share_section',
            array(
                'title' => __( 'Post/Project Share', 'finbuzz' ),
                'priority' => 9,
                'panel' => 'rttheme_blog_settings',
            )
        );
		
		// Add Portfolio Section
        $wp_customize->add_section( 'rttheme_portfolio_settings',
            array(
                'title' => __( 'Portfolio Setting', 'finbuzz' ),
                'priority' => 10,
				'panel' => 'rttheme_cpt_settings',
            )
        );
		
		// Add Team Section
        $wp_customize->add_section( 'rttheme_team_settings',
            array(
                'title' => __( 'Team Setting', 'finbuzz' ),
                'priority' => 11,
				'panel' => 'rttheme_cpt_settings',
            )
        );
		// Add Service Section
        $wp_customize->add_section( 'rttheme_service_settings',
            array(
                'title' => __( 'Service Setting', 'finbuzz' ),
                'priority' => 12,
				'panel' => 'rttheme_cpt_settings',
            )
        );
        
        // Add Service Section
        $wp_customize->add_section( 'rttheme_gallery_settings',
            array(
                'title' => __( 'Gallery Setting', 'finbuzz' ),
                'priority' => 13,
				'panel' => 'rttheme_cpt_settings',
            )
        ); 
        
        // Add Error Page Section
        $wp_customize->add_section( 'error_section',
            array(
                'title' => __( 'Error Page', 'finbuzz' ),
                'priority' => 14,
            )
        );
        // Add our wooCommerce shop Section
        $wp_customize->add_section('shop_layout_section',
            array(
               'title'    => esc_html__('Shop Archive Layout', 'neeon'),
               'priority' => 1,
               'panel'    => 'woocommerce',
            )
        );
        
        // Add our wooCommerce product Section
        $wp_customize->add_section('product_layout_section',
            array(
               'title'    => esc_html__('Shop Single Layout', 'neeon'),
               'priority' => 2,
               'panel'    => 'woocommerce',
            )
        );
	}

}