jquery_init

The ColorWay Theme jquery init function.

Description

jquery_init(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function jquery_init() { 
  2. if (!is_admin()) { 
  3. wp_deregister_script('jquery'); 
  4. wp_register_script('jquery', 'http://code.jquery.com/jquery-latest.min.js', false, '1.6.1', true);//load jquery from google api, and place in footer 
  5. wp_enqueue_script('jquery'); 
  6. wp_enqueue_script( 'ddsmoothmenu', get_bloginfo('stylesheet_directory')."/js/ddsmoothmenu.js", array('jquery')); 
  7. wp_enqueue_script( 'ddsmoothmenuinit', get_bloginfo('stylesheet_directory')."/js/ddsmoothmenu-init.js", array('jquery')); 
  8. wp_enqueue_script( 'slides', get_bloginfo('stylesheet_directory').'/js/slides.min.jquery.js', array('jquery')); 
  9. wp_enqueue_script( 'slidesinit', get_bloginfo('stylesheet_directory').'/js/home.slide.init.js', array('jquery')); 
  10. wp_enqueue_script( 'cufonyui', get_bloginfo('stylesheet_directory').'/js/cufon-yui.js', array('jquery')); 
  11. wp_enqueue_script( 'cufonfont', get_bloginfo('stylesheet_directory').'/js/Champagne.font.js', array('jquery')); 
  12. wp_enqueue_script( 'tipsy', get_bloginfo('stylesheet_directory').'/js/jquery.tipsy.js', array('jquery'));  
  13. wp_enqueue_script( 'imagehover', get_bloginfo('stylesheet_directory')."/js/image.hover.js", array('jquery')); 
  14. wp_enqueue_script( 'zoombox', get_bloginfo('stylesheet_directory').'/js/zoombox.js', array('jquery')); 
  15. wp_enqueue_script( 'validate', get_bloginfo('stylesheet_directory').'/js/jquery.validate.min.js', array('jquery')); 
  16. wp_enqueue_script( 'verif', get_bloginfo('stylesheet_directory').'/js/verif.js', array('jquery')); 
  17. }elseif (is_admin()) {