Guest User

Untitled

a guest
Dec 23rd, 2013
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php>
  2. include TEMPLATEPATH.'/functions/templateTags.php';
  3. /*****************************************
  4. **  ENQUEUE MY STYLES & SCRIPTS
  5. *****************************************/
  6. function enqueue_my_styles() {
  7.    $resetStyle         = get_template_directory_uri() . '/css/reset.css';
  8.     $mainStyle          = get_template_directory_uri() . '/style.css';
  9.     $rtlStyle           = get_template_directory_uri() . '/rtl.css';
  10.  
  11.     wp_enqueue_style( 'resetStyle', $resetStyle, array(), 'v1', 'all' );
  12.     wp_enqueue_style( 'mainStyle', $mainStyle, array(), 'v1', 'all' );
  13.     if ( is_rtl() ) {
  14.       wp_enqueue_style(  'style-rtl', $rtlStyle, array(), 'v1', 'all' );
  15. }
  16. add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' );
  17.  
  18. function register_my_jscripts() {
  19.     wp_deregister_script( 'jquery' );
  20.     wp_register_script( 'jquery', get_bloginfo('template_url').'/js/jquery-1.7.1.min.js');
  21.     wp_enqueue_script( 'jquery' );
  22. }
  23. add_action('wp_enqueue_scripts', 'register_my_jscripts');
  24.  
  25. function register_my_jscripts() {
  26.     wp_deregister_script( 'jquery' );   // מוודאים שאין גרסת jquery אחרת!
  27.     wp_register_script( 'jquery', get_bloginfo('template_url').'/js/jquery-1.7.1.min.js');
  28.     wp_enqueue_script( 'jquery' );
  29.      
  30.     wp_enqueue_script( 'tooltip', get_bloginfo('template_url').'/js/tooltip.js', array('jquery'));
  31. }
  32. add_action('wp_enqueue_scripts', 'register_my_jscripts');
  33. ?>
RAW Paste Data