| Server IP : 151.101.66.159 / Your IP : 216.73.216.66 Web Server : Flywheel/5.1.0 System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64 User : root ( ) PHP Version : 7.4.33.18 Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wp-content/themes/consultstreet/inc/customizer/ |
Upload File : |
<?php
/**
* Extend default customizer section.
*
* @package consultstreet
*
* @see WP_Customize_Section
* @access public
*/
require CONSULTSTREET_PARENT_INC_DIR . '/customizer/webfont.php';
require CONSULTSTREET_PARENT_INC_DIR . '/customizer/controls/code/consultstreet-customize-typography-control.php';
require CONSULTSTREET_PARENT_INC_DIR . '/customizer/controls/code/consultstreet-customize-plugin-control.php';
require CONSULTSTREET_PARENT_INC_DIR . '/customizer/controls/code/consultstreet-customize-category-control.php';
require CONSULTSTREET_PARENT_INC_DIR . '/customizer/customizer-repeater/functions.php';
function consultstreet_customizer_theme_settings( $wp_customize ){
$active_callback = isset( $array['active_callback'] ) ? $array['active_callback'] : null;
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
$wp_customize->get_section( 'header_image' )->panel = 'consultstreet_theme_settings';
$wp_customize->get_section( 'header_image' )->title = __( 'Page Header', 'consultstreet' );
$wp_customize->get_section( 'header_image' )->priority = 40;
// Sticky Bar Logo
$wp_customize->add_setting( 'consultstreet_sticky_bar_logo', array(
'sanitize_callback' => 'esc_url_raw',
)
);
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'consultstreet_sticky_bar_logo',
array(
'label' => esc_html__( 'Set Sticky Bar Logo', 'consultstreet' ),
'description' => esc_html__( 'You can Upload the Standrad size of logo (210px*39px)', 'consultstreet' ),
'section' => 'consultstreet_theme_menu_bar',
'settings' => 'consultstreet_sticky_bar_logo',
'priority' => 15,
)
));
$wp_customize->add_setting( 'consultstreet_typography_base_font_family',array(
'sanitize_callback' => 'consultstreet_sanitize_select',
'capability' => 'edit_theme_options',
'default' => 'Open Sans',
) );
$wp_customize->add_control( new ConsultStreet_Customizer_Typography_Control( $wp_customize, 'consultstreet_typography_base_font_family', array(
'label' => esc_html__( 'Font Family', 'consultstreet' ),
'section' => 'consultstreet_base_typography',
'settings' => 'consultstreet_typography_base_font_family',
'priority' => 10,
) ) );
$wp_customize->add_setting( 'consultstreet_typography_base_font_size',
array(
'default' => '1rem',
'sanitize_callback' => 'consultstreet_sanitize_text',
));
$wp_customize->add_control( 'consultstreet_typography_base_font_size',
array(
'label' => esc_html__( 'Font Size', 'consultstreet' ),
'description' => esc_html__( 'You can enter font-size in px or rem ', 'consultstreet' ),
'section' => 'consultstreet_base_typography',
'priority' => 15,
'type' => 'text',
));
$wp_customize->add_setting( 'consultstreet_typography_h1_font_family',array(
'sanitize_callback' => 'consultstreet_sanitize_select',
'capability' => 'edit_theme_options',
'default' => 'Montserrat',
) );
$wp_customize->add_control( new ConsultStreet_Customizer_Typography_Control( $wp_customize, 'consultstreet_typography_h1_font_family', array(
'label' => esc_html__( 'Font Family', 'consultstreet' ),
'section' => 'consultstreet_headings1_typography',
'settings' => 'consultstreet_typography_h1_font_family',
'priority' => 10,
) ) );
$wp_customize->add_setting( 'consultstreet_typography_h2_font_family',array(
'sanitize_callback' => 'consultstreet_sanitize_select',
'capability' => 'edit_theme_options',
'default' => 'Montserrat',
) );
$wp_customize->add_control( new ConsultStreet_Customizer_Typography_Control( $wp_customize, 'consultstreet_typography_h2_font_family', array(
'label' => esc_html__( 'Font Family', 'consultstreet' ),
'section' => 'consultstreet_headings2_typography',
'settings' => 'consultstreet_typography_h2_font_family',
'priority' => 10,
) ) );
$wp_customize->add_setting( 'consultstreet_typography_h3_font_family',array(
'sanitize_callback' => 'consultstreet_sanitize_select',
'capability' => 'edit_theme_options',
'default' => 'Montserrat',
) );
$wp_customize->add_control( new ConsultStreet_Customizer_Typography_Control( $wp_customize, 'consultstreet_typography_h3_font_family', array(
'label' => esc_html__( 'Font Family', 'consultstreet' ),
'section' => 'consultstreet_headings3_typography',
'settings' => 'consultstreet_typography_h3_font_family',
'priority' => 10,
) ) );
$wp_customize->add_setting( 'consultstreet_typography_h4_font_family',array(
'sanitize_callback' => 'consultstreet_sanitize_select',
'capability' => 'edit_theme_options',
'default' => 'Montserrat',
) );
$wp_customize->add_control( new ConsultStreet_Customizer_Typography_Control( $wp_customize, 'consultstreet_typography_h4_font_family', array(
'label' => esc_html__( 'Font Family', 'consultstreet' ),
'section' => 'consultstreet_headings4_typography',
'settings' => 'consultstreet_typography_h4_font_family',
'priority' => 10,
) ) );
$wp_customize->add_setting( 'consultstreet_typography_h5_font_family',array(
'sanitize_callback' => 'consultstreet_sanitize_select',
'capability' => 'edit_theme_options',
'default' => 'Montserrat',
) );
$wp_customize->add_control( new ConsultStreet_Customizer_Typography_Control( $wp_customize, 'consultstreet_typography_h5_font_family', array(
'label' => esc_html__( 'Font Family', 'consultstreet' ),
'section' => 'consultstreet_headings5_typography',
'settings' => 'consultstreet_typography_h5_font_family',
'priority' => 10,
) ) );
$wp_customize->add_setting( 'consultstreet_typography_h6_font_family',array(
'sanitize_callback' => 'consultstreet_sanitize_select',
'capability' => 'edit_theme_options',
'default' => 'Montserrat',
) );
$wp_customize->add_control( new ConsultStreet_Customizer_Typography_Control( $wp_customize, 'consultstreet_typography_h6_font_family', array(
'label' => esc_html__( 'Font Family', 'consultstreet' ),
'section' => 'consultstreet_headings6_typography',
'settings' => 'consultstreet_typography_h6_font_family',
'priority' => 10,
) ) );
// Footer copyright
$wp_customize->add_setting(
'consultstreet_footer_copright_text',
array(
'sanitize_callback' => 'consultstreet_sanitize_text',
'default' => __('Copyright © 2026 | Powered by <a href="//wordpress.org/">WordPress</a> <span class="sep"> | </span> ConsultStreet theme by <a target="_blank" href="//themearile.com/">ThemeArile</a>', 'consultstreet'),
'transport' => $selective_refresh,
)
);
$wp_customize->add_control('consultstreet_footer_copright_text', array(
'label' => esc_html__('Footer Copyright','consultstreet'),
'section' => 'consultstreet_footer_copyright',
'priority' => 10,
'type' => 'textarea'
));
}
add_action( 'customize_register', 'consultstreet_customizer_theme_settings' );