function loadJS() { parent::loadJS(); // Load Hover Intent if ($this->settings->op('wpmega-trigger') == 'hoverIntent') { wp_enqueue_script('hoverintent', $this->coreURL . 'js/hoverIntent.js', array('jquery'), false, true); } }
function loadJS() { parent::loadJS(); if ($this->settings->op('load-google-maps')) { wp_enqueue_script('google-maps', 'http://maps.googleapis.com/maps/api/js?sensor=false', array('jquery'), false, true); } //Load Custom stylesheet if ($this->settings->op('custom-js')) { wp_enqueue_script('ubermenu-custom', $this->baseURL . 'custom/custom.js', array('jquery'), false, true); } }