bws_admin_enqueue_scripts

The Google Sitemap by BestWebSoft bws admin enqueue scripts function.

Description

bws_admin_enqueue_scripts(); 

Usage

  1. if ( !function_exists( 'bws_admin_enqueue_scripts' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-sitemap-by-bestwebsoft/bws_menu/bws_functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bws_admin_enqueue_scripts(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bws_menu/bws_functions.php  
  1. function bws_admin_enqueue_scripts() { 
  2. global $wp_version; 
  3. wp_enqueue_style( 'bws-admin-css', plugins_url( 'css/general_style.css', __FILE__ ) ); 
  4. wp_enqueue_script( 'bws-admin-scripts', plugins_url( 'js/general_script.js', __FILE__ ), array( 'jquery' ) ); 
  5.  
  6. if ( isset( $_GET['page'] ) && in_array( $_GET['page'], array( 'bws_panel', 'bws_themes', 'bws_system_status' ) ) ) { 
  7. wp_enqueue_style( 'bws_menu_style', plugins_url( 'css/style.css', __FILE__ ) ); 
  8. wp_enqueue_script( 'bws_menu_script', plugins_url( 'js/bws_menu.js' , __FILE__ ) ); 
  9. wp_enqueue_script( 'theme-install' ); 
  10. add_thickbox(); 
  11. wp_enqueue_script( 'plugin-install' );