Server IP : 192.158.238.246 / Your IP : 18.119.132.21 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/7779/cwd/themes/open-shop/lib/notification/customizer-notification/ |
Upload File : |
<?php if ( ! class_exists( 'WP_Customize_Control' ) ) { return; } function open_shop_customizer_scripts() { wp_enqueue_script('open-shop-customizer', get_template_directory_uri() . '/lib/notification/customizer-notification/customizer.js', array('jquery'), '1.0', true); wp_localize_script('open-shop-customizer', 'theme_data_customizer', array( 'ajax_url' => admin_url('admin-ajax.php'), 'security' => wp_create_nonce('thactivatenonce'), 'redirectUrl' => esc_url(admin_url('themes.php?page=themehunk-site-library&template=step')) )); } add_action('customize_controls_enqueue_scripts', 'open_shop_customizer_scripts'); // style function open_shop_customizer_notify_css(){ wp_enqueue_style('open-shop-customizer-notify-styles', OPEN_SHOP_THEME_URI .'lib/notification/customizer-notification/customizer-notify.css'); } add_action('customize_controls_print_styles', 'open_shop_customizer_notify_css');