Sindbad~EG File Manager

Current Path : /home/xiedrke/entrepot/wp-content/themes/realpro/inc/admin/
Upload File :
Current File : /home/xiedrke/entrepot/wp-content/themes/realpro/inc/admin/customizer-options.php

<?php
/**
 * Create Thim_Realpress_Customize
 *
 */

/**
 * Class Thim_Customize_Options
 */
class Thim_Customize_Options {
	/**
	 * Thim_Customize_Options constructor.
	 */
	public function __construct() {
		add_action( 'customize_register', [ $this, 'thim_deregister' ] );
		add_action( 'thim_customizer_register', [ $this, 'thim_create_customize_options' ] );
	}

	/**
	 * Deregister customize default unnecessary
	 *
	 * @param $wp_customize
	 */
	public function thim_deregister( $wp_customize ) {
		$wp_customize->remove_section( 'colors' );
		$wp_customize->remove_section( 'background_image' );
		$wp_customize->remove_section( 'header_image' );
		$wp_customize->remove_control( 'blogdescription' );
		$wp_customize->remove_control( 'blogname' );
		$wp_customize->remove_control( 'display_header_text' );
		$wp_customize->remove_section( 'static_front_page' );
		// Rename existing section
		$wp_customize->add_section( 'title_tagline', array(
			'title'    => esc_html__( 'Logo', 'realpro' ),
			'panel'    => 'general',
			'priority' => 20,
		) );
	}

	/**
	 * Create customize
	 *
	 * @param $wp_customize
	 */
	public function thim_create_customize_options( $wp_customize ) {

		// include sections
		$customize_path = THIM_DIR . 'inc/admin/customizer-sections/';

		//general
		require_once $customize_path . 'general-logo.php';
		require_once $customize_path . 'general-styling.php';
		require_once $customize_path . 'general-typography.php';
		require_once $customize_path . 'general-typography-heading.php';
		require_once $customize_path . 'general.php';
		require_once $customize_path . 'general-features.php';
		require_once $customize_path . 'general-sharing.php';
		require_once $customize_path . 'general-button.php';

		// Blog
		require_once $customize_path . 'blog.php';
		require_once $customize_path . 'blog-archive.php';

		// Footer
		include $customize_path . 'footer.php';

		// page
		require_once $customize_path . 'page-setting.php';

		if (class_exists('\RealPress\RealPress')) {
			require_once $customize_path . 'property-setting.php';
			require_once $customize_path . 'property-archive.php';
		}

		// WooCommerce
		if ( class_exists( 'WooCommerce' ) ) {
			require_once $customize_path . 'woocommerce.php';
			require_once $customize_path . 'woocommerce-archive.php';
			require_once $customize_path . 'woocommerce-single.php';
		}

		//
		require_once $customize_path . 'nav-menus.php';
		require_once $customize_path . 'widgets.php';
	}
}

$thim_customize = new Thim_Customize_Options();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists