gde_admin_custom_css

Include custom css for settings pages.

Description

gde_admin_custom_css( $hook ); 

Parameters (1)

0. $hook
The hook.

Usage

  1. if ( !function_exists( 'gde_admin_custom_css' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions-admin.php'; 
  3.  
  4. // The hook. 
  5. $hook = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = gde_admin_custom_css($hook); 
  9.  

Defined (1)

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

/functions-admin.php  
  1. function gde_admin_custom_css( $hook ) { 
  2. global $wp_version; 
  3.  
  4. if ( isset( $_GET['page'] ) && ( $_GET['page'] == 'gde-settings' ) ) { 
  5. if ( version_compare( $wp_version, '3.8-RC1', '>=' ) ) { 
  6. $css = GDE_PLUGIN_URL . 'css/admin-styles38.css'; 
  7. } else { 
  8. $css = GDE_PLUGIN_URL . 'css/admin-styles.css'; 
  9. wp_enqueue_style( 'gde_css', $css ); 
  10.  
  11. // native color picker 
  12. wp_enqueue_style( 'wp-color-picker' );