eewee_admin_head

The Eewee responsive design eewee admin head function.

Description

eewee_admin_head(); 

Usage

  1. if ( !function_exists( 'eewee_admin_head' ) ) { 
  2. require_once '/includes/admin/theme-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = eewee_admin_head(); 
  7.  

Defined (1)

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

/includes/admin/theme-functions.php  
  1. function eewee_admin_head() {  
  2. if ( isset($_GET['page']) and $_GET['page'] == 'themeeewee' ) { 
  3. wp_register_style('eewee_admin_css', get_template_directory_uri() .'/includes/admin/admin-style.css'); 
  4. wp_enqueue_style( 'eewee_admin_css'); 
  5.  
  6. wp_register_style('eewee_colorpicker_css', get_template_directory_uri().'/includes/admin/colorpicker/colorpicker.css'); 
  7. wp_enqueue_style( 'eewee_colorpicker_css'); 
  8.  
  9. wp_register_script('eewee_colorpicker_js', get_template_directory_uri() .'/includes/admin/colorpicker/colorpicker.js', false); 
  10. wp_enqueue_script('eewee_colorpicker_js'); 
  11.  
  12. wp_register_script('eewee_eye', get_template_directory_uri() .'/includes/admin/colorpicker/eye.js', array('eewee_colorpicker_js')); 
  13. wp_enqueue_script('eewee_eye'); 
  14.  
  15. wp_register_script('eewee_utils', get_template_directory_uri() .'/includes/admin/colorpicker/utils.js', array('eewee_eye')); 
  16. wp_enqueue_script('eewee_utils'); 
  17.  
  18. wp_register_script('eewee_mycolorpicker', get_template_directory_uri() .'/includes/admin/colorpicker/mycolorpicker.js', array('eewee_utils')); 
  19. wp_enqueue_script('eewee_mycolorpicker'); 
  20.  
  21. wp_enqueue_script('media-upload'); 
  22. wp_enqueue_script('thickbox'); 
  23.  
  24. wp_register_script('eewee_image_upload', get_template_directory_uri() .'/includes/admin/jquery-image-upload.js', array('jquery', 'media-upload', 'thickbox')); 
  25. wp_localize_script('eewee_image_upload', 'eewee_localizing_upload_js', array( 
  26. 'use_this_image' => __('Use this Image', 'eewee') 
  27. )); 
  28.  
  29. wp_enqueue_script('eewee_image_upload'); 
  30. wp_enqueue_style('thickbox'); 
  31. }//if