advantage_admin_enqueue_scripts

The Advantage advantage admin enqueue scripts function.

Description

advantage_admin_enqueue_scripts( $hook_suffix ); 

Parameters (1)

0. $hook_suffix
The hook suffix.

Usage

  1. if ( !function_exists( 'advantage_admin_enqueue_scripts' ) ) { 
  2. require_once '/inc/theme-options.php'; 
  3.  
  4. // The hook suffix. 
  5. $hook_suffix = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = advantage_admin_enqueue_scripts($hook_suffix); 
  9.  

Defined (1)

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

/inc/theme-options.php  
  1. function advantage_admin_enqueue_scripts( $hook_suffix ) { 
  2. global $advantage_options; 
  3. $advantage_options = advantage_get_options(); 
  4.  
  5. $template_uri = get_template_directory_uri();  
  6. wp_enqueue_style( 'wp-color-picker' ); 
  7. wp_enqueue_style( 'advantage-theme-options', $template_uri . '/css/theme-options.css', false, '1.0' ); 
  8. wp_enqueue_script( 'advantage-theme-options', $template_uri . '/js/theme-options.js', array('jquery', 'wp-color-picker'), '1.0' ); 
  9.  
  10. global $advantage_fonts; 
  11. $advantage_fonts = advantage_fonts_array(); 
  12. foreach ( $advantage_fonts as $font ) { 
  13. if ( ! empty( $font['url'] ) ) 
  14. wp_enqueue_style( str_replace(' ', '', $font['label'] ), $font['url'], false, '1.0' );