Example #1
0
 function st_enqueue_scripts()
 {
     if (!is_admin()) {
         wp_enqueue_script("jquery", st_js('jquery.js'));
         if (is_singular() && get_option('thread_comments')) {
             wp_enqueue_script('comment-reply');
         }
         /*
         wp_enqueue_script( 'ba-bbq', st_js('jquery.ba-bbq.min.js'), array('jquery'),ST_VERSION,true);
         wp_enqueue_script( 'fitvids', st_js('jquery.fitvids.js'), array('jquery'),ST_VERSION,true);
         wp_enqueue_script( 'prettyPhoto', st_js('jquery.prettyPhoto.js'), array('jquery'),ST_VERSION,true);
         wp_enqueue_script( 'jquery.easing', st_js('jquery.easing-1.3.js'), array('jquery'),'1.3' , true );
         wp_enqueue_script('carouFredSel',st_js('jquery.carouFredSel.js'), array('jquery'),'1.6', true);
         wp_enqueue_script( 'isotope', st_js('jquery.isotope.min.js'), array('jquery'),ST_VERSION, true);
         wp_enqueue_script( 'flexslider', st_js('jquery.flexslider.js'), array('jquery'),ST_VERSION, true);
         
          // jquery-ui.datepicker.js"
         wp_enqueue_script( 'datepicker', st_js('jquery-ui.datepicker.js'), array('jquery'),ST_VERSION, true);
         
         wp_enqueue_script( 'ddsmoothmenu', st_js('ddsmoothmenu.js'), array('jquery'),ST_VERSION, true);
         wp_enqueue_script( 'shortcodes', st_js('shortcodes.js'), array('jquery'),ST_VERSION, true);
         wp_enqueue_script( 'st_custom', st_js('custom.js'), array('jquery'),ST_VERSION, true);
         
         wp_localize_script( 'st_custom', 'FS', st_flex_js_settings() );
         wp_localize_script('st_custom','ajaxurl',admin_url('admin-ajax.php'));
         */
         wp_enqueue_script('hotec', st_js('hotec.min.js'), array('jquery'), ST_VERSION, true);
         wp_localize_script('hotec', 'FS', st_flex_js_settings());
         wp_localize_script('hotec', 'ajaxurl', admin_url('admin-ajax.php'));
     }
 }
Example #2
0
 function st_enqueue_scripts()
 {
     if (!is_admin()) {
         wp_enqueue_script('modernizr', st_js('modernizr.js'));
         wp_enqueue_script('jquery', st_js('jquery.js'));
         wp_enqueue_script('st-loading', st_js('loading.js'), array('jquery'), '1.1');
         wp_enqueue_script('jquery.touchwipe.min', st_js('jquery.touchwipe.min.js'), array('jquery'), ST_VERSION, true);
         wp_enqueue_script('jquery.mousewheel.min', st_js('jquery.mousewheel.min.js'), array('jquery'), ST_VERSION, true);
         wp_enqueue_script('jquery.easing', st_js('jquery.easing.min.js'), array('jquery'), '1.3', true);
         wp_enqueue_script('ddsmoothmenu', st_js('ddsmoothmenu.js'), array('jquery'), '1.6', true);
         wp_enqueue_script('imagesLoaded', st_js('imagesLoaded.js'), array('jquery'), ST_VERSION, true);
         wp_enqueue_script('jquery.isotope', st_js('jquery.isotope.min.js'), array('jquery'), ST_VERSION, true);
         wp_enqueue_script('jquery.magnific-popup', st_js('jquery.magnific-popup.min.js'), array('jquery'), ST_VERSION, true);
         wp_enqueue_script('jquery.flexslider', st_js('jquery.flexslider.js'), array('jquery'), ST_VERSION, true);
         wp_enqueue_script('jquery.fitvids', st_js('jquery.fitvids.js'), array('jquery'), ST_VERSION, true);
         wp_enqueue_script('black-and-white', st_js('jquery.black-and-white.js'), array('jquery'), ST_VERSION, true);
         wp_enqueue_script('sly', st_js('sly.js'), array('jquery'), ST_VERSION, true);
         wp_enqueue_script('supersized', st_js('supersized.3.2.6.min.js'), array('jquery'), '3.2.6', true);
         wp_enqueue_script('supersized.shutter', st_js('supersized.shutter.min.js'), array('jquery'), ST_VERSION, true);
         // This slider called only in page template tpl-fullscreen.php
         if (is_page_template('tpl-fullscreen.php')) {
             /* Gallery Image Flow */
             wp_enqueue_script('image-flow', st_js('image-flow.js'), array('jquery'), ST_VERSION, true);
             /* Gallery Ken Burns Effect */
             wp_enqueue_script('kenburns', st_js('kenburns.js'), array('jquery'), ST_VERSION, true);
             /* Gallery Flip */
             wp_enqueue_script('jquery.flip.min', st_js('jquery.flip.min.js'), array('jquery'), ST_VERSION, true);
             wp_enqueue_script('st.jquery.flip', st_js('st.jquery.flip.js'), array('jquery'), ST_VERSION, true);
         }
         wp_enqueue_script('st_custom', st_js('exposed.js'), array('jquery'), ST_VERSION, true);
         if (is_singular() && get_option('thread_comments')) {
             wp_enqueue_script('comment-reply');
         }
         wp_localize_script('st_custom', 'FS', st_flex_js_settings());
         wp_localize_script('st_custom', 'ST', array('disable_header_floating' => st_get_setting("disable_header_floating", 'n')));
         wp_localize_script('st_custom', 'ajaxurl', admin_url('admin-ajax.php'));
     }
 }