HEX
Server: Apache
System: Linux linplesk41.pumo.com.tw 3.10.0-962.3.2.lve1.5.27.el7.x86_64 #1 SMP Sat Nov 30 02:18:52 EST 2019 x86_64
User: rajlaw (10192)
PHP: 7.4.24
Disabled: phpinfo,passthru,exec,shell_exec,system,popen,proc_open,proc_close,show_source,pcntl_exec,escapeshellcmd,proc_get_status,proc_nice,proc_terminate,escapeshellarg
Upload Files
File: /home/httpd/vhosts/rajlaw.com.tw/httpdocs/wp-content/themes/celestium/inc/customizer.php
<?php
/**
 * Customizer
 * 
 * @package WordPress
 * @subpackage celestium
 * @since celestium 1.0
 */

/**
 * Add postMessage support for site title and description for the Theme Customizer.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */
function celestium_customize_register( $wp_customize ) {
	$wp_customize->add_section( new Celestium_Upsell_Section($wp_customize,'upsell_section',array(
		'title'            => __( 'Celestium Pro', 'celestium' ),
		'button_text'      => __( 'Upgrade Pro', 'celestium' ),
		'url'              => esc_url( CELESTIUM_BUY_NOW ),
		'priority'         => 0,
	)));
}
add_action( 'customize_register', 'celestium_customize_register' );

/**
 * Enqueue script for custom customize control.
 */
function celestium_custom_control_scripts() {
	wp_enqueue_script( 'celestium-custom-controls-js', get_template_directory_uri() . '/assets/js/custom-controls.js', array( 'jquery', 'jquery-ui-core', 'jquery-ui-sortable' ), '1.0', true );
}
add_action( 'customize_controls_enqueue_scripts', 'celestium_custom_control_scripts' );