delicacy_enqueue_scripts

The Evolved delicacy enqueue scripts function.

Description

delicacy_enqueue_scripts(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function delicacy_enqueue_scripts() 
  2. if (!is_admin()) { 
  3. wp_enqueue_script('jquery'); 
  4. wp_register_script('evolved', get_template_directory_uri() . '/js/evolved.js'); 
  5. wp_enqueue_script('evolved'); 
  6. wp_register_script('jquery_tools', get_template_directory_uri() . '/js/jquery.tools.min.js'); 
  7. wp_enqueue_script('jquery_tools'); 
  8. wp_register_script('easing', get_template_directory_uri() . '/js/jquery.easing.1.3.js'); 
  9. wp_enqueue_script('easing'); 
  10. wp_register_script('modernizr', get_template_directory_uri() . '/js/modernizr-custom.min.js'); 
  11. wp_enqueue_script('modernizr'); 
  12. wp_register_script('placeholder', get_template_directory_uri() . '/js/jquery.placeholder.min.js'); 
  13. wp_enqueue_script('placeholder'); 
  14. if (is_home()) { 
  15. wp_register_script('nivoslider', get_template_directory_uri() . '/js/nivo-slider/jquery.nivo.slider.pack.js'); 
  16. wp_enqueue_script('nivoslider');  
  17. if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 
  18. wp_enqueue_script( 'comment-reply' );