bws_admin_enqueue_scripts

The BestWebSoft Google Analytics bws admin enqueue scripts function.

Description

bws_admin_enqueue_scripts(); 

Usage

  1. if ( !function_exists( 'bws_admin_enqueue_scripts' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bestwebsoft-google-analytics/bws_menu/bws_menu.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_menu.php  
  1. function bws_admin_enqueue_scripts() { 
  2. global $wp_version; 
  3. if ( $wp_version < 3.8 ) 
  4. wp_enqueue_style( 'bws-admin-stylesheet', plugins_url( 'css/general_style_wp_before_3.8.css', __FILE__ ) );  
  5. else 
  6. wp_enqueue_style( 'bws-admin-stylesheet', plugins_url( 'css/general_style.css', __FILE__ ) ); 
  7.  
  8. if ( isset( $_GET['page'] ) && $_GET['page'] == "bws_plugins" ) { 
  9. wp_enqueue_style( 'bws_menu_style', plugins_url( 'css/style.css', __FILE__ ) ); 
  10. wp_enqueue_script( 'bws_menu_script', plugins_url( 'js/bws_menu.js' , __FILE__ ) );  
  11. if ( $wp_version >= '3.8' ) 
  12. wp_enqueue_script( 'theme-install' ); 
  13. elseif ( $wp_version >= '3.4' ) 
  14. wp_enqueue_script( 'theme' );