whyisjake

Jake Spurlock

Nov 22nd, 2010
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.21 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: Raptorize It
  4. Plugin URI: http://jakespurlock.com/wordpress/raptor
  5. Description: You're sitting at your desk, coding up a 500 page site, knee-deep in Extreme Cheddar Doritos sipping on a liter of Code Red Mountain Dew when you realize...this page would be so muc more awesome with a VELOCIRAPTOR. You immediately scramble home to grab your Jurassic Park DVDs so can screencap a Velociraptor attack, but then you realize how hard it would be to make an awesome raptor run across the site you were coding. Plus, how are you going to get that trademark velociraptor screech?
  6. Author: Jake Spurlock
  7. Version: 0.5
  8. Author URI: http://jakespurlock.com/
  9. */
  10.  
  11. wp_enqueue_script('raptorize', WP_PLUGIN_URL . '/raptorize-it/jquery.raptorize.1.0.js', array('jquery'), '1.0' );
  12. add_action('init', 'raptorize');
  13.  
  14. add_action('wp_head', 'raptor_head');
  15.  
  16. function raptor_head(){ ?>
  17. <!-- For the button version -->
  18. <script type="text/javascript">
  19.     $(window).load(function() {
  20.         $('.button').raptorize();
  21.     });
  22. </script>
  23.  
  24. <!-- For the Konami Code version -->
  25. <script type="text/javascript">
  26.     $(window).load(function() {
  27.         $('.button').raptorize({
  28.             'enterOn' : 'konami-code'
  29.         });
  30.     });
  31. </script>
  32. <?php } ?>
Add Comment
Please, Sign In to add comment