otw_footer_scripts

The Carbon Light - Business responsive otw footer scripts function.

Description

otw_footer_scripts(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function otw_footer_scripts() { 
  2. if ( !is_admin() ) { 
  3. /** Allow HTML5 elements to be styled in IE8 */ 
  4. wp_register_script('html5shiv-printshiv', get_template_directory_uri() . '/javascripts/html5shiv-printshiv.js'); 
  5. wp_enqueue_script('html5shiv-printshiv'); 
  6.  
  7. /** WP jQuery */ 
  8. wp_enqueue_script('jquery'); 
  9.  
  10. /** jQuery and jQuery UI */ 
  11. wp_register_script('jquery-ui', get_template_directory_uri() . '/javascripts/jquery-ui-1.9.1.min.js', array(), '1.9.1', true); 
  12. wp_enqueue_script('jquery-ui'); 
  13.  
  14. /** Responsive Tables */ 
  15. wp_register_script('footable', get_template_directory_uri() . '/javascripts/footable-0.1.js', array(), '0.1', true); 
  16. wp_enqueue_script('footable'); 
  17. wp_register_script('footable-sortable', get_template_directory_uri() . '/javascripts/footable.sortable.js', array(), false, true); 
  18. wp_enqueue_script('footable-sortable'); 
  19.  
  20. /** Responsive Navigation Menu */ 
  21. wp_register_script('tinynav', get_template_directory_uri() . '/javascripts/tinynav.js', array(), false, true); 
  22. wp_enqueue_script('tinynav'); 
  23.  
  24. /** Shadow Animation Plugin */ 
  25. wp_register_script('animate-shadow-min', get_template_directory_uri() . '/javascripts/jquery.animate-shadow-min.js', array(), false, true); 
  26. wp_enqueue_script('animate-shadow-min'); 
  27.  
  28. /** Custom Theme JS */ 
  29. wp_register_script('carbon', get_template_directory_uri() . '/javascripts/carbon.js', array(), false, true); 
  30. wp_enqueue_script('carbon');