. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 87.98.249.37 / Your IP : 216.73.216.208 [ Web Server : Microsoft-IIS/10.0 System : Windows NT NS3076740 10.0 build 17763 (Windows Server 2019) AMD64 User : IWPD_292(growel19p) ( 0) PHP Version : 8.3.12 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/growel.com/httpdocs/blog1/wp-content/themes/maxwell/inc/customizer/ |
Upload File : |
<?php
/**
* Implement theme options in the Customizer
*
* @package Maxwell
*/
// Load Customizer Helper Functions.
require get_template_directory() . '/inc/customizer/functions/sanitize-functions.php';
require get_template_directory() . '/inc/customizer/functions/callback-functions.php';
// Load Custom Controls.
require get_template_directory() . '/inc/customizer/controls/category-dropdown-control.php';
require get_template_directory() . '/inc/customizer/controls/header-control.php';
require get_template_directory() . '/inc/customizer/controls/links-control.php';
require get_template_directory() . '/inc/customizer/controls/plugin-control.php';
require get_template_directory() . '/inc/customizer/controls/upgrade-control.php';
// Load Customizer Section Files.
require get_template_directory() . '/inc/customizer/sections/customizer-general.php';
require get_template_directory() . '/inc/customizer/sections/customizer-blog.php';
require get_template_directory() . '/inc/customizer/sections/customizer-post.php';
require get_template_directory() . '/inc/customizer/sections/customizer-slider.php';
require get_template_directory() . '/inc/customizer/sections/customizer-info.php';
require get_template_directory() . '/inc/customizer/sections/customizer-website.php';
/**
* Registers Theme Options panel and sets up some WordPress core settings
*
* @param object $wp_customize / Customizer Object.
*/
function maxwell_customize_register_options( $wp_customize ) {
// Add Theme Options Panel.
$wp_customize->add_panel(
'maxwell_options_panel',
array(
'priority' => 180,
'capability' => 'edit_theme_options',
'theme_supports' => '',
'title' => esc_html__( 'Theme Options', 'maxwell' ),
)
);
// Change default background section.
$wp_customize->get_control( 'background_color' )->section = 'background_image';
$wp_customize->get_section( 'background_image' )->title = esc_html__( 'Background', 'maxwell' );
}
add_action( 'customize_register', 'maxwell_customize_register_options' );
/**
* Embed JS file to make Theme Customizer preview reload changes asynchronously.
*/
function maxwell_customize_preview_js() {
wp_enqueue_script( 'maxwell-customizer-preview', get_template_directory_uri() . '/assets/js/customize-preview.js', array( 'customize-preview' ), '20200410', true );
}
add_action( 'customize_preview_init', 'maxwell_customize_preview_js' );
/**
* Embed JS for Customizer Controls.
*/
function maxwell_customizer_controls_js() {
wp_enqueue_script( 'maxwell-customizer-controls', get_template_directory_uri() . '/assets/js/customizer-controls.js', array(), '20200410', true );
}
add_action( 'customize_controls_enqueue_scripts', 'maxwell_customizer_controls_js' );
/**
* Embed CSS styles for the theme options in the Customizer
*/
function maxwell_customize_preview_css() {
wp_enqueue_style( 'maxwell-customizer-css', get_template_directory_uri() . '/assets/css/customizer.css', array(), '20200410' );
}
add_action( 'customize_controls_print_styles', 'maxwell_customize_preview_css' );