SHARE
TWEET

Untitled

a guest Aug 17th, 2011 128 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function tb_enqueue() {
  2.  wp_enqueue_script(‘jquery’);
  3.  wp_enqueue_script(‘thickbox’);
  4. }
  5.  
  6. function tb_inject() {
  7. ?>
  8.  
  9. <link rel="stylesheet" href="<?= get_option(‘siteurl’); ?>/<?= WPINC; ?>/js/thickbox/thickbox.css" type="text/css" media="screen" />
  10. <script type="text/javascript">
  11. var tb_pathToImage = "<?= get_option(‘siteurl’); ?>/<?= WPINC; ?>/js/thickbox/loadingAnimation.gif";
  12. var tb_closeImage = "<?= get_option(‘siteurl’); ?>/<?= WPINC; ?>/js/thickbox/tb-close.png"
  13. </script>
  14.  
  15. <?php
  16. }
  17.  
  18. add_action(‘wp_head’, ‘tb_enqueue’, 1);
  19. add_action(‘wp_footer’, ‘tb_inject’, 10);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top