wp_create_nonce('bloog_plugin_installer_nonce'), 'activate_nonce' => wp_create_nonce('bloog_plugin_activate_nonce'), 'ajaxurl' => esc_url( admin_url( 'admin-ajax.php' ) ), 'activate_btn' => __('Activate', 'bloog-lite'), 'installed_btn' => __('Activated', 'bloog-lite'), 'demo_installing' => __('Installing Demo', 'bloog-lite'), 'demo_installed' => __('Demo Installed', 'bloog-lite'), 'demo_confirm' => __('Are you sure to import demo content ?', 'bloog-lite'), ) ); if( 'widgets.php' == $hook || 'customize.php' == $hook ) { wp_enqueue_script( 'uploader-script', get_template_directory_uri().'/inc/admin-panel/js/media-uploader.js', array(), // dependencies false, // version true // on footer ); wp_enqueue_media(); } } //Dynamic styles on header function bloog_lite_header_styles_scripts(){ echo "\n"; //custom js $custom_js = get_theme_mod('bloog_lite_custom_tools_js_code'); if(!empty($custom_js)){ echo ''; } } add_action('wp_head','bloog_lite_header_styles_scripts'); add_action('wp_head' , 'bloog_lite_dynamic_style'); function bloog_lite_dynamic_style(){ //font-family for header h1 to h6. $bloog_lite_heading_fonts = get_theme_mod('heading_typography'); //font-family for body text. $bloog_lite_body_fonts = get_theme_mod('body_typography'); ?> "; } add_action('wp_footer', 'bloog_lite_fonts_cb');