AVRIL_START_JANCOKALIVEAVRIL_END_JANCOK
| Server IP : 146.190.157.162 / Your IP : 216.73.216.175 Web Server : Apache System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64 User : vergeskit ( 679) PHP Version : 8.2.10-2ubuntu2.2 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/vergeskit/wp-content/themes/hello-elementor/includes/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Register Customizer controls which add Elementor deeplinks
*
* @return void
*/
add_action( 'customize_register', 'hello_customizer_register' );
function hello_customizer_register( $wp_customize ) {
require get_template_directory() . '/includes/customizer/elementor-upsell.php';
$wp_customize->add_section(
'hello_theme_options',
[
'title' => esc_html__( 'Header & Footer', 'hello-elementor' ),
'capability' => 'edit_theme_options',
]
);
$wp_customize->add_setting(
'hello-elementor-header-footer',
[
'sanitize_callback' => false,
'transport' => 'refresh',
]
);
$wp_customize->add_control(
new HelloElementor\Includes\Customizer\Elementor_Upsell(
$wp_customize,
'hello-elementor-header-footer',
[
'section' => 'hello_theme_options',
'priority' => 20,
]
)
);
}
/**
* Enqueue Customiser CSS
*
* @return string HTML to use in the customizer panel
*/
add_action( 'admin_enqueue_scripts', 'hello_customizer_print_styles' );
function hello_customizer_print_styles() {
$min_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
wp_enqueue_style(
'hello-elementor-customizer',
get_template_directory_uri() . '/customizer' . $min_suffix . '.css',
[],
HELLO_ELEMENTOR_VERSION
);
}