bp_groupblog_add_admin_style

Bp_groupblog_add_admin_style().

Description

bp_groupblog_add_admin_style(); 

Reworked so that our CSS and JS is only loaded on our admin page. See bp_groupblog_add_admin_menu() for how this is loaded.


Usage

  1. if ( !function_exists( 'bp_groupblog_add_admin_style' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groupblog/bp-groupblog-cssjs.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_groupblog_add_admin_style(); 
  7.  

Defined (1)

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

/bp-groupblog-cssjs.php  
  1. function bp_groupblog_add_admin_style() { 
  2.  
  3. // add css 
  4. wp_enqueue_style('bp-groupblog-admin-style', plugins_url() . '/bp-groupblog/inc/css/admin.css'); 
  5. wp_enqueue_style('jQueryUISmoothness', plugins_url() . '/bp-groupblog/inc/smoothness/jquery-ui-smoothness.css'); 
  6.  
  7. // add javascripts 
  8. wp_enqueue_script( 'bp-groupblog-admin-js', plugins_url() . '/bp-groupblog/inc/js/admin.js' ); 
  9. wp_enqueue_script('jquery-ui-core'); 
  10. wp_enqueue_script('jquery-ui-tabs'); 
  11. wp_enqueue_script('effects.core', plugins_url() .'/bp-groupblog/inc/js/effects.core.js', array('jquery-ui-core')); 
  12.