function et_jquery_script()
{
    if (function_exists('esc_attr')) {
        nxt_enqueue_script('jquery');
    } else {
        nxt_deregister_script('jquery');
        nxt_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', false, '1.4.2');
    }
}
 public function add_comment_js()
 {
     if (!(is_page() || is_single())) {
         return;
     }
     if ($this->options['appearance']['comment_editor'] != 't') {
         return;
     }
     // if W3 Total Cache is enabled, turn off minify for page with CKEditor in comments
     if (is_plugin_active('w3-total-cache/w3-total-cache.php')) {
         define('DONOTMINIFY', true);
     }
     nxt_enqueue_script('ckeditor', $this->ckeditor_path . $this->options['advanced']['load_method']);
     nxt_enqueue_script('ckeditor.utils', $this->plugin_path . 'includes/ckeditor.utils.js', array('ckeditor', 'jquery'));
     nxt_deregister_script('comment-reply');
     nxt_register_script('comment-reply', $this->plugin_path . 'includes/ckeditor.comment-reply.js', array('ckeditor', 'ckeditor.utils'), "20100901");
     $this->generate_js_options(true);
     $this->add_nxtcompat_styles();
 }
Beispiel #3
0
 function huddle_load_js()
 {
     global $is_IE;
     if (is_admin()) {
     } else {
         nxt_deregister_script('jquery');
         nxt_deregister_script('l10n');
         nxt_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js');
         nxt_register_script('html5shim', 'http://html5shim.googlecode.com/svn/trunk/html5.js');
         nxt_register_script('superfish', get_template_directory_uri() . '/js/superfish.js', array('jquery'));
         nxt_register_script('buddypress', get_template_directory_uri() . '/js/buddypress.js', array('jquery'));
         nxt_register_script('colorbox', get_template_directory_uri() . '/js/jquery.colorbox-min.js', array('jquery'));
         nxt_register_script('theme_custom', get_template_directory_uri() . '/js/custom.js', array('jquery'), 1.0, TRUE);
         nxt_enqueue_script(array('superfish', 'colorbox', 'buddypress', 'theme_custom'));
         if (is_single()) {
             nxt_enqueue_script('comment-reply');
         }
         if ($is_IE) {
             nxt_enqueue_script('html5shim');
         }
     }
 }