Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function add_contact_js() {
- $file = dirname(__FILE__) . '/utility-block.php';
- $url = plugin_dir_url($file);
- $fragments = array();
- $fragments[] .= $url . '/js/contact.js';
- if (!empty($fragments[0]) && !is_admin()) :
- HeadwayCompiler::register_file(array(
- 'name' => 'contact-block-js',
- 'format' => 'js',
- 'fragments' => $fragments));
- endif;
- }
- add_action('get_header', 'add_contact_js');
- ?>
Add Comment
Please, Sign In to add comment