Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 16th, 2013  |  syntax: None  |  size: 1.99 KB  |  views: 91  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. function my_script() {
  3.         if (!is_admin()) {
  4.                 wp_enqueue_script('jquery');
  5.        
  6.                 wp_enqueue_script('modernizr', get_bloginfo('template_url').'/js/modernizr-2.0.js', array('jquery'), '2.0');
  7.                 wp_enqueue_script('superfish', get_bloginfo('template_url').'/js/superfish.js', array('jquery'), '1.4.8');
  8.                 wp_enqueue_script('prettyPhoto', get_bloginfo('template_url').'/js/jquery.prettyPhoto.js', array('jquery'), '3.1.2');
  9.                 wp_enqueue_script('easytooltip', get_bloginfo('template_url').'/js/easyTooltip.js', array('jquery'), '1.0');
  10.                 wp_enqueue_script('cufon_yui', get_bloginfo('template_url').'/js/cufon-yui.js', array('jquery'), '1.09i');
  11.                 wp_enqueue_script('Kozuka_Gothic_Pro_OpenType_300', get_bloginfo('template_url').'/js/Kozuka_Gothic_Pro_OpenType_300.font.js', array('jquery'), '1.0');
  12.                 wp_enqueue_script('Kozuka_Gothic_Pro_OpenType_400', get_bloginfo('template_url').'/js/Kozuka_Gothic_Pro_OpenType_400.font.js', array('jquery'), '1.0');
  13.                 wp_enqueue_script('Kozuka_Gothic_Pro_OpenType_700', get_bloginfo('template_url').'/js/Kozuka_Gothic_Pro_OpenType_700.font.js', array('jquery'), '1.0');
  14.                 wp_enqueue_script('cufon_replace', get_bloginfo('template_url').'/js/cufon-replace.js', array('jquery'), '1.0');
  15.                 wp_enqueue_script('swfobject', get_bloginfo('url').'/wp-includes/js/swfobject.js', array('jquery'), '2.2');
  16.                 wp_enqueue_script('cycleAll', get_bloginfo('template_url').'/js/jquery.cycle.all.js', array('jquery'), '2.99');
  17.                 wp_enqueue_script('audiojs', get_bloginfo('template_url').'/js/audiojs/audio.js', array('jquery'), '1.0');
  18.                 wp_enqueue_script('custom', get_bloginfo('template_url').'/js/custom.js', array('jquery'), '1.0');
  19.                 wp_enqueue_script('FF_cash', get_bloginfo('template_url').'/js/FF-cash.js', array('jquery'), '1.0');
  20.                 wp_enqueue_script('kwicks', get_bloginfo('template_url').'/js/kwicks-1.5.1.pack.js', array('jquery'), '1.5.1');
  21.                 wp_enqueue_script('maxheight', get_bloginfo('template_url').'/js/maxheight.js', array('jquery'), '1.0');
  22.         }
  23. }
  24. add_action('init', 'my_script');
  25. ?>
clone this paste RAW Paste Data