|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/nandedex/www/wp-content/themes/colormag/inc/customizer/ |
<?php
/**
* Override default customizer panels, sections, settings or controls.
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 3.0.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Override Sections.
*/
/**
* Override controls.
*/
// Outside container > background control.
$wp_customize->get_control( 'background_color' )->section = 'colormag_global_container_section';
$wp_customize->get_control( 'background_color' )->priority = 90;
$wp_customize->get_control( 'background_color' )->type = 'colormag-color';
$wp_customize->get_control( 'background_image' )->section = 'colormag_global_container_section';
$wp_customize->get_control( 'background_image' )->priority = 100;
$wp_customize->get_control( 'background_preset' )->section = 'colormag_global_container_section';
$wp_customize->get_control( 'background_preset' )->priority = 110;
$wp_customize->get_control( 'background_position' )->section = 'colormag_global_container_section';
$wp_customize->get_control( 'background_position' )->priority = 120;
$wp_customize->get_control( 'background_size' )->section = 'colormag_global_container_section';
$wp_customize->get_control( 'background_size' )->priority = 130;
$wp_customize->get_control( 'background_repeat' )->section = 'colormag_global_container_section';
$wp_customize->get_control( 'background_repeat' )->priority = 140;
$wp_customize->get_control( 'background_attachment' )->section = 'colormag_global_container_section';
$wp_customize->get_control( 'background_attachment' )->priority = 150;
// Site Identity.
$wp_customize->get_control( 'custom_logo' )->priority = 20;
$wp_customize->get_control( 'site_icon' )->priority = 40;
$wp_customize->get_control( 'blogname' )->priority = 60;
$wp_customize->get_control( 'blogdescription' )->priority = 145;
$wp_customize->get_section( 'header_image' )->panel = 'colormag_header_panel';
$wp_customize->get_section( 'header_image' )->priority = 100;
// Override Settings.
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
if ( isset( $wp_customize->selective_refresh ) ) {
$wp_customize->selective_refresh->add_partial(
'blogname',
array(
'selector' => '.cm-site-title a',
'render_callback' => array(
'ColorMag_Customizer_Partials',
'render_customize_partial_blogname',
),
)
);
$wp_customize->selective_refresh->add_partial(
'blogdescription',
array(
'selector' => '.cm-site-description',
'render_callback' => array(
'ColorMag_Customizer_Partials',
'render_customize_partial_blogdescription',
),
)
);
}
/*
* Modify WooCommerce default section priorities
*/
if ( class_exists( 'WooCommerce' ) ) {
$wp_customize->get_panel( 'woocommerce' )->priority = 70;
}