Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tb_enqueue() {
- wp_enqueue_script(‘jquery’);
- wp_enqueue_script(‘thickbox’);
- }
- function tb_inject() {
- ?>
- <link rel="stylesheet" href="<?= get_option(‘siteurl’); ?>/<?= WPINC; ?>/js/thickbox/thickbox.css" type="text/css" media="screen" />
- <script type="text/javascript">
- var tb_pathToImage = "<?= get_option(‘siteurl’); ?>/<?= WPINC; ?>/js/thickbox/loadingAnimation.gif";
- var tb_closeImage = "<?= get_option(‘siteurl’); ?>/<?= WPINC; ?>/js/thickbox/tb-close.png"
- </script>
- <?php
- }
- add_action(‘wp_head’, ‘tb_enqueue’, 1);
- add_action(‘wp_footer’, ‘tb_inject’, 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement