Exemple #1
2
/**
 * Enqueue scripts and styles.
 *
 * @since Twenty Fifteen 1.0
 */
function montkailash_scripts()
{
    // Load our main stylesheet.
    wp_enqueue_style('bootstrap-style', get_template_directory_uri() . '/css/bootstrap.min.css');
    wp_enqueue_style('bootstrap-style', get_template_directory_uri() . '/css/bootstrap-theme.min.css');
    wp_enqueue_style('lightbox-style', get_template_directory_uri() . '/css/lightbox.css');
    wp_enqueue_style('montkailash-style', get_stylesheet_uri());
    if (is_page('Contact')) {
        wp_register_script('gmap', "http://maps.google.com/maps/api/js?sensor=true", '', '', true);
        wp_enqueue_script('gmap');
        wp_enqueue_script('gmaps', get_template_directory_uri() . '/js/gmaps.js', array('jquery'), '', true);
        wp_enqueue_script('function-map', get_template_directory_uri() . '/js/function_map.js', array('jquery'), '0.1', true);
    }
    if (!is_admin()) {
        wp_deregister_script('jquery');
        wp_register_script('jquery', "http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js", '', '1.8.3', true);
        wp_enqueue_script('jquery');
        wp_deregister_script('wonderplugin-slider-skins-script');
        wp_deregister_script('wonderplugin-slider-script');
        wp_deregister_script('wonderplugin-slider-creator-script');
        wp_deregister_script('woo-vou-public-script');
        wp_register_script('wonderplugin-slider-skins-script', plugins_url() . '/wonderplugin-slider/engine/wonderpluginsliderskins.js', array('jquery'), '4.9', true);
        wp_register_script('wonderplugin-slider-script', plugins_url() . '/wonderplugin-slider/engine/wonderpluginslider.js', array('jquery'), '4.9', true);
        wp_register_script('wonderplugin-slider-creator-script', plugins_url() . '/wonderplugin-slider/app/wonderplugin-slider-creator.js', array('jquery'), '4.9', true);
        wp_register_script('woo-vou-public-script', plugins_url() . '/woocommerce-pdf-vouchers/includes/js/woo-vou-public.js', array('jquery'), '2.4.4', true);
        wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '20150330', true);
        wp_enqueue_script('lightbox', get_template_directory_uri() . '/js/lightbox.js', array('jquery'), '2.8.1', true);
        wp_enqueue_script('montkailash-script', get_template_directory_uri() . '/js/functions.js', array('jquery'), '0.1', true);
    }
}
Exemple #2
0
 function gabfire_theme_scripts()
 {
     wp_enqueue_style('bootstrap', get_template_directory_uri() . '/framework/bootstrap/css/bootstrap.min.css');
     wp_enqueue_style('font-awesome', get_template_directory_uri() . '/framework/font-awesome/css/font-awesome.min.css');
     wp_enqueue_style('bootstrap-social', get_template_directory_uri() . '/css/bootstrap-social.css');
     wp_enqueue_style('colorbox-css', get_template_directory_uri() . '/css/colorbox.css');
     wp_enqueue_style('animate-css', get_template_directory_uri() . '/css/animate.css');
     //wp_enqueue_style('owl-carousel', get_template_directory_uri() .'/css/owl.carousel.css');
     //wp_enqueue_style('flat-ui', get_stylesheet_directory_uri() .'/css/flat-ui.css');  // adding FLAT UI to main header query
     wp_enqueue_style('datatables-css', '//cdn.datatables.net/1.10.7/css/jquery.dataTables.min.css');
     wp_enqueue_style('theme-style', get_stylesheet_uri(), false);
     // NEW: Add Ion Icons
     wp_enqueue_style('ion-icons', get_template_directory_uri() . '/framework/ion-icons/css/ionicons.min.css');
     get_template_part('css/customizedcss', '');
     wp_enqueue_script('jquery');
     wp_enqueue_script('bootstrap', get_template_directory_uri() . '/framework/bootstrap/js/bootstrap.min.js');
     wp_enqueue_script('modernizr', get_template_directory_uri() . '/inc/js/modernizr.custom.js');
     wp_enqueue_script('responsive-nav', get_template_directory_uri() . '/inc/js/responsive-menu.js');
     //wp_enqueue_script('wow', get_template_directory_uri() .'/inc/js/wow.min.js');
     //wp_enqueue_script('shuffle', get_template_directory_uri() .'/inc/js/jquery.shuffle.min.js');
     wp_enqueue_script('jquery-colorbox', get_template_directory_uri() . '/inc/js/jquery.colorbox-min.js');
     //wp_enqueue_script('owl-carousel', get_template_directory_uri() .'/inc/js/owl.carousel.min.js');
     //wp_enqueue_script('stellar', get_template_directory_uri() .'/inc/js/stellar.js');
     //wp_enqueue_script('froogaloop', '//f.vimeocdn.com/js/froogaloop2.min.js');
     //wp_enqueue_script('youtube-api', '//www.youtube.com/player_api');
     wp_enqueue_script('datatables-js', '//cdn.datatables.net/1.10.7/js/jquery.dataTables.min.js');
     if (is_singular() && comments_open() && get_option('thread_comments')) {
         wp_enqueue_script('comment-reply');
     }
     if (file_exists(get_stylesheet_directory() . '/custom.css')) {
         wp_enqueue_style('custom-style', get_stylesheet_directory_uri() . '/custom.css');
     } elseif (file_exists(get_template_directory_uri() . '/custom.css')) {
         wp_enqueue_style('custom-style', get_template_directory_uri() . '/custom.css');
     }
 }
/**
 * Enqueue scripts and styles for the theme.
 */
function fast_scripts()
{
    //LOAD style.css via filesystem. Uses Sass to ompile '/assets/scss/style.scss' to: 'styl.css'
    wp_enqueue_style('fast-sass', get_stylesheet_uri(), array(), '1.0.0');
    //LOAD jQuery.min.js via CDN JS
    wp_enqueue_script('fast-jquery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js', array(), '1.0.0', true);
    //LOAD Boostrap.min.js via CDN JS
    wp_enqueue_script('fast-bootstrap', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js', array(), '1.0.0', true);
    //LOAD navigation.js via filesystem
    wp_enqueue_script('fast-navigation', get_template_directory_uri() . '/assets/js/navigation.js', array(), '1.0.0', true);
    //LOAD fast-skip-link-focus.js via filesystem
    //wp_enqueue_script( 'fast-skip-link-focus-fix', get_template_directory_uri() . '/assets/js/skip-link-focus-fix.js', array(), '1.0.0', true );
    //LOAD instantclick.js via CDN JS
    wp_enqueue_script('fast-instantclick', 'https://cdnjs.cloudflare.com/ajax/libs/instantclick/3.0.1/instantclick.min.js', array(), '1.0.0', true);
    //CALL instant click into end of footer scripts, for init
    function call_instant_click()
    {
        echo '<script data-no-instant>InstantClick.init();</script>';
    }
    add_action('wp_footer', 'call_instant_click', 200);
    //load at end
    //IF IS singlular & comments are enabled, load comment-reply.js via filesystem
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
Exemple #4
0
function theme_enqueue_styles()
{
    wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css', array(), '20150407');
    wp_enqueue_style('child-style', get_stylesheet_uri(), array('parent-style', '20150407'));
    wp_enqueue_style('dashicons');
    // add dashicons to front end
}
function coffeepot_bbch_enqueue()
{
    wp_enqueue_style('core', get_stylesheet_uri(), false);
    wp_enqueue_style('override', get_template_directory_uri() . '/override.css', false);
    wp_enqueue_style('dashicons');
    wp_add_inline_style('core', '#banner .container-fluid{height:' . get_theme_mod('banner_height', 400) . 'px}');
}
Exemple #6
0
/**
 * Ladda script
 */
function dazake_load_script()
{
    if (!is_admin()) {
        /**
         * Deregister wordpress scripts
         */
        wp_deregister_script('jquery');
        /**
         * wp_register_script( $handle, $src, $deps, $ver, $in_footer );
         */
        wp_register_script('jquery', 'http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js');
        wp_register_script('modernizr', get_template_directory_uri() . '/js/libs/modernizr.js');
        wp_register_script('bootstrap', get_template_directory_uri() . '/js/libs/bootstrap/js/bootstrap.min.js');
        wp_register_script('less', get_template_directory_uri() . '/js/libs/less.js');
        wp_register_script('main', get_template_directory_uri() . '/js/main.js');
        /**
         * Laddar skripten vi registrerat ovan.
         */
        wp_enqueue_script('jquery');
        wp_enqueue_script('modernizr');
        wp_enqueue_script('bootstrap');
        wp_enqueue_script('less');
        wp_enqueue_script('main');
        /**
         * load stylesheet
         */
        wp_enqueue_style('style', get_stylesheet_uri());
        wp_enqueue_style('bootstrap', get_template_directory_uri() . '/js/libs/bootstrap/css/bootstrap.min.css');
        wp_enqueue_style('bootstrap-responsive', get_template_directory_uri() . '/js/libs/bootstrap/css/bootstrap-responsive.min.css');
    }
}
Exemple #7
0
 function coll_enqueue_styles()
 {
     global $coll_is_mobile;
     if (!$coll_is_mobile) {
         wp_register_style('scrollbar', get_template_directory_uri() . '/css/perfect-scrollbar.css');
         wp_enqueue_style('scrollbar');
     }
     wp_register_style('googlefonts', '//fonts.googleapis.com/css?family=Bentham|Pinyon+Script|Bitter:400,700|Raleway:300,400,500,600|Sacramento|Lato:300,400,900|Open+Sans:400,700,800|Pacifico|Lobster|Roboto:400,900,700|Oswald:400,700');
     wp_register_style('normalize', get_template_directory_uri() . '/css/normalize.css');
     wp_register_style('foundation', get_template_directory_uri() . '/css/foundation.css', null, null);
     wp_register_style('magicpopup', get_template_directory_uri() . '/css/magnific-popup.css');
     wp_register_style('icons', get_template_directory_uri() . '/css/font-awesome.min.css');
     wp_register_style('superfish', get_template_directory_uri() . '/css/superfish.css');
     wp_register_style('flexslider', get_template_directory_uri() . '/css/flexslider.css', null, null);
     wp_register_style('plugin', get_template_directory_uri() . '/css/plugin.css', null, null);
     wp_register_style('public', get_template_directory_uri() . '/css/public.css', null, null);
     wp_register_style('morpheus', get_stylesheet_uri(), null, null);
     wp_enqueue_style('googlefonts');
     wp_enqueue_style('foundation');
     wp_enqueue_style('magicpopup');
     wp_enqueue_style('icons');
     wp_enqueue_style('superfish');
     wp_enqueue_style('flexslider');
     wp_enqueue_style('plugin');
     wp_enqueue_style('public');
     wp_enqueue_style('morpheus');
     // add custom css
     $custom_css = ot_get_option('coll_custom_css');
     if (!empty($custom_css)) {
         wp_add_inline_style('morpheus', $custom_css);
     }
 }
Exemple #8
0
/**
 * Enqueue scripts and styles.
 */
function jbaths_scripts()
{
    $theme = wp_get_theme();
    // wtf
    wp_enqueue_style('wtf-forms', get_template_directory_uri() . '/css/wtf-forms.css', array(), '2.2.0');
    // and then
    wp_enqueue_style('jbaths', get_stylesheet_uri(), array(), $theme->Version . '.1');
    // store locator plus - specialty css
    if (is_page('find-a-showroom')) {
        wp_enqueue_style('jbaths-slp', get_template_directory_uri() . '/css/slp-baths.css', array(), $theme->Version);
        // store locator plus
    }
    if (!is_admin()) {
        wp_register_script('jbaths.modernizr', get_stylesheet_directory_uri() . '/js/modernizr.min.js', array(), '2.8.3', true);
        wp_register_script('jquery.cookie', get_stylesheet_directory_uri() . '/js/jquery.cookie.js', array('jquery'), $theme->Version);
        wp_register_script('scrollupforwhat', get_stylesheet_directory_uri() . '/js/jquery.scrollupforwhat.min.js', array('jquery'), '1.2', true);
        wp_register_script('matchHeight', get_template_directory_uri() . '/js/jquery.matchHeight.js', array('jquery'), '0.5.2', true);
        $jbaths_deps = array('jquery', 'jbaths.modernizr', 'jquery.cookie', 'scrollupforwhat', 'matchHeight');
        if (is_singular('bathtubs') || is_singular('faucets')) {
            if (get_option('ultimate_row') == "enable") {
                //$jbaths_deps[] = 'ultimate-row-bg';
            }
        }
        wp_enqueue_script('jbaths', get_template_directory_uri() . '/js/baths.js', $jbaths_deps, '20140718', true);
    }
    wp_enqueue_script('skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true);
    // Omniture SiteCatalyst
    wp_enqueue_script('sitecatalyst', get_template_directory_uri() . '/js/s_code.js', array(), $theme->Version, true);
    if (is_singular('post') && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
/**
 * Enqueue or style sheets and scripts
 */
function wpstarter_style_scripts()
{
    wp_dequeue_style('wpforge');
    wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css');
    wp_enqueue_style('child-style', get_stylesheet_uri(), array('parent-style'));
    wp_enqueue_script('wpstarter-js', get_stylesheet_directory_uri() . '/js/wpstarter-functions.js', array(), '', true);
}
Exemple #10
0
function bluzpress_load_style()
{
    if (!is_admin()) {
        wp_enqueue_style('bluzpress_googlefonts', '//fonts.googleapis.com/css?family=Open+Sans:300,400,400italic,600,700,700italic,800|Crimson+Text:400,400italic,700,700italic|Abril+Fatface:400');
        wp_enqueue_style('bluzpress_style', get_stylesheet_uri());
    }
}
function tie_register()
{
    ## Register Main style.css file
    wp_register_style('tie-style', get_stylesheet_uri(), array(), '', 'all');
    wp_enqueue_style('tie-style');
    ## Register All Scripts
    wp_register_script('tie-scripts', get_template_directory_uri() . '/js/tie-scripts.js', array('jquery'), false, true);
    wp_register_script('tie-tabs', get_template_directory_uri() . '/js/tabs.min.js', array('jquery'), false, true);
    wp_register_script('tie-cycle', get_template_directory_uri() . '/js/jquery.cycle.all.js', array('jquery'), false, true);
    wp_register_script('tie-validation', get_template_directory_uri() . '/js/validation.js', array('jquery'), false, true);
    wp_register_script('tie-flexslider', get_template_directory_uri() . '/js/jquery.flexslider-min.js', array('jquery'), false, true);
    ## Get Global Scripts
    wp_enqueue_script('tie-scripts');
    ## Register WooCommerce css file
    wp_register_style('tie-woocommerce', get_template_directory_uri() . '/css/woocommerce.css', array(), '', 'all');
    if (class_exists('Woocommerce')) {
        wp_enqueue_style('tie-woocommerce');
    }
    ## Get Validation Script
    if (tie_get_option('comment_validation') && (is_page() || is_single()) && comments_open()) {
        wp_enqueue_script('tie-validation');
    }
    ## For facebook & Google + share
    if (is_singular() && tie_get_option('post_og_cards') && (!function_exists('bp_current_component') || function_exists('bp_current_component') && !bp_current_component())) {
        tie_og_data();
    }
}
/**
 * Register jQuery scripts and 
 * CSS Styles only for the front-end
 *
 * @package Magzilla
 * @since 	Magzilla 1.0
**/
function fave_theme_scripts()
{
    global $ft_option;
    /**
     * Register CSS styles
     */
    wp_register_style('fave-owl.carousel.all.min', get_template_directory_uri() . '/css/owl.carousel.all.min.css', array(), '2.0.0', 'all');
    wp_register_style('fave-bootstrap.min', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '', 'all');
    wp_register_style('fave-bootstrap-theme.min', get_template_directory_uri() . '/css/bootstrap-theme.min.css', array(), '', 'all');
    wp_register_style('fave-font-awesome.min', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.5.0', 'all');
    wp_register_style('fave-jquery.jscrollpane', get_template_directory_uri() . '/css/jquery.jscrollpane.css', array(), '', 'all');
    wp_register_style('fave-magnific-popup', get_template_directory_uri() . '/css/magnific-popup.css', array(), '1.0.0', 'all');
    wp_register_style('fave-main', get_template_directory_uri() . '/css/main.css', array(), '', 'all');
    wp_register_style('fave-options', get_template_directory_uri() . '/css/options.css', array(), '', 'all');
    wp_enqueue_style('fave-bootstrap.min');
    wp_enqueue_style('fave-bootstrap-theme.min');
    wp_enqueue_style('fave-font-awesome.min');
    wp_enqueue_style('fave-jquery.jscrollpane');
    wp_enqueue_style('fave-owl.carousel.all.min');
    wp_enqueue_style('fave-magnific-popup');
    wp_enqueue_style('fave-main');
    wp_enqueue_style('fave-options');
    wp_enqueue_style('style', get_stylesheet_uri(), array(), '1', 'all');
    if (is_rtl()) {
        wp_enqueue_style('magzilla-rtl', get_template_directory_uri() . "/css/rtl.css", array(), '1', 'screen');
    }
    wp_enqueue_script('fave-bootstrap.min', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), THEME_VERSION, true);
    wp_enqueue_script('fave-plugins', get_template_directory_uri() . '/js/plugins.js', array('jquery'), THEME_VERSION, true);
    wp_enqueue_script('fave-custom.min', get_template_directory_uri() . '/js/custom.min.js', array('jquery'), THEME_VERSION, true);
    if ((is_singular('post') || is_singular('gallery') || is_singular('video')) && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
/**
 * Enqueue scripts and stylesheets
 *
 * Enqueue stylesheets in the following order:
 * 1. /theme/assets/css/bootstrap.css
 * 2. /theme/assets/css/bootstrap-responsive.css
 * 3. /theme/assets/css/virtue.css
 * 4. /theme/assets/css/skin.css
 *
 * Enqueue scripts in the following order:
 * 1. jquery-1.9.1.min.js via Google CDN
 * 2. /theme/assets/js/vendor/modernizr-2.6.2.min.js
 * 3. /theme/assets/js/plugins.js (in footer)
 * 4. /theme/assets/js/main.js    (in footer)
 */
function kadence_scripts()
{
    wp_enqueue_style('kadence_bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css', false, "204");
    wp_enqueue_style('kadence_theme', get_template_directory_uri() . '/assets/css/virtue.css', false, "204");
    global $virtue;
    if (isset($virtue['skin_stylesheet'])) {
        $skin = $virtue['skin_stylesheet'];
    } else {
        $skin = 'default.css';
    }
    wp_enqueue_style('virtue_skin', get_template_directory_uri() . '/assets/css/skins/' . $skin . '', false, null);
    if (is_child_theme()) {
        wp_enqueue_style('roots_child', get_stylesheet_uri(), false, null);
    }
    if (is_single() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    wp_register_script('modernizr', get_template_directory_uri() . '/assets/js/vendor/modernizr-2.6.2.min.js', false, null, false);
    wp_register_script('kadence_plugins', get_template_directory_uri() . '/assets/js/plugins.js', false, '200', true);
    wp_register_script('kadence_main', get_template_directory_uri() . '/assets/js/main.js', false, null, true);
    wp_enqueue_script('jquery');
    wp_enqueue_script('modernizr');
    wp_enqueue_script('kadence_plugins');
    wp_enqueue_script('kadence_main');
    if (class_exists('woocommerce')) {
        wp_deregister_script('wc-add-to-cart-variation');
        wp_register_script('wc-add-to-cart-variation', get_template_directory_uri() . '/assets/js/add-to-cart-variation-ck.js', array('jquery'), false, '200', true);
        wp_localize_script('wc-add-to-cart-variation', 'wc_add_to_cart_variation_params', apply_filters('wc_add_to_cart_variation_params', array('i18n_no_matching_variations_text' => esc_attr__('Sorry, no products matched your selection. Please choose a different combination.', 'woocommerce'), 'i18n_unavailable_text' => esc_attr__('Sorry, this product is unavailable. Please choose a different combination.', 'woocommerce'))));
        wp_enqueue_script('wc-add-to-cart-variation');
    }
}
/**
 * Enqueue scripts and styles.
 */
function vannkorn_scripts()
{
    wp_enqueue_style('vannkorn-normalize', get_template_directory_uri() . '/assets/css/normalize.css');
    wp_enqueue_style('vannkorn-font-awesome', get_template_directory_uri() . '/assets/font/font-awesome/css/font-awesome.min.css');
    wp_enqueue_style('vannkorn-materialize', get_template_directory_uri() . '/assets/libs/materialize/css/materialize.min.css');
    wp_enqueue_style('vannkorn-bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css');
    wp_enqueue_style('vannkorn-animate', get_template_directory_uri() . '/assets/css/animate.min.css');
    wp_enqueue_style('vannkorn-sweet-alert', get_template_directory_uri() . '/assets/libs/sweetalert/sweet-alert.css');
    wp_enqueue_style('vannkorn-owl-carousel', get_template_directory_uri() . '/assets/libs/owl-carousel/owl.carousel.css');
    wp_enqueue_style('vannkorn-owl-transitions', get_template_directory_uri() . '/assets/libs/owl-carousel/owl.transitions.css');
    wp_enqueue_style('vannkorn-owl-theme', get_template_directory_uri() . '/assets/libs/owl-carousel/owl.theme.css');
    wp_enqueue_style('vannkorn-responsive', get_template_directory_uri() . '/assets/css/responsive.css');
    wp_enqueue_style('vannkorn-main-color', get_template_directory_uri() . '/assets/css/colors/color1.css');
    wp_enqueue_style('vannkorn-style', get_stylesheet_uri());
    wp_enqueue_script('vannkorn-jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js', array(), '20120206', true);
    wp_enqueue_script('vannkorn-google-map', 'https://maps.google.com/maps/api/js?sensor=true', array(), '20120206', true);
    wp_enqueue_script('vannkorn-jquery-easing', get_template_directory_uri() . '/assets/js/jquery.easing.1.3.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-detect-mobile-browsers', get_template_directory_uri() . '/assets/js/detectmobilebrowser.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-isotope', get_template_directory_uri() . '/assets/js/isotope.pkgd.min.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-wow', get_template_directory_uri() . '/assets/js/wow.min.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-waypoints', get_template_directory_uri() . '/assets/js/waypoints.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-counter-up', get_template_directory_uri() . '/assets/js/jquery.counterup.min.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-nice-scroll', get_template_directory_uri() . '/assets/js/jquery.nicescroll.min.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-gmap', get_template_directory_uri() . '/assets/js/gmaps.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-owl-carousel-script', get_template_directory_uri() . '/assets/libs/owl-carousel/owl.carousel.min.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-materialize-script', get_template_directory_uri() . '/assets/libs/materialize/js/materialize.min.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-jwplayer', get_template_directory_uri() . '/assets/libs/jwplayer/jwplayer.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-sweet-alert-script', get_template_directory_uri() . '/assets/libs/sweetalert/sweet-alert.min.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-common', get_template_directory_uri() . '/assets/js/common.js', array(), '20130115', true);
    wp_enqueue_script('vannkorn-main-script', get_template_directory_uri() . '/assets/js/main.js', array(), '20130115', true);
}
Exemple #15
0
/**
 * Enqueue scripts and styles.
 */
function jdorn_scripts()
{
    wp_enqueue_style('jdorn-style', get_stylesheet_uri());
    wp_enqueue_style('custom-style', get_template_directory_uri() . '/assets/css/styles.css');
    //wp_enqueue_script( 'jquery', '//code.jquery.com/jquery-1.11.0.min.js', array(), '20120206', true );
    //wp_enqueue_script( 'slick-js', get_template_directory_uri() . '/assets/js/slick.min.js', array(), '2010206', true );
}
Exemple #16
0
/**
 * Enqueue scripts and styles.
 */
function musik_scripts()
{
    wp_enqueue_style('musik-style', get_stylesheet_uri());
    wp_enqueue_script('musik-navigation', get_template_directory_uri() . '/js/navigation.js', array('jquery'), '', true);
    wp_enqueue_script('musik-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array('jquery'), '', true);
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    wp_enqueue_style('animate', get_template_directory_uri() . '/assets/css/animate.css');
    wp_enqueue_style('font-awesome', get_template_directory_uri() . '/assets/css/font-awesome.min.css');
    wp_enqueue_style('simple-line-icons', get_template_directory_uri() . '/assets/css/simple-line-icons.css');
    wp_enqueue_style('bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css');
    wp_enqueue_style('app', get_template_directory_uri() . '/assets/css/app.css');
    wp_enqueue_style('font', get_template_directory_uri() . '/assets/css/font.css');
    wp_enqueue_script('bootstrap', get_template_directory_uri() . '/assets/js/bootstrap.js', array('jquery'), '', true);
    wp_enqueue_script('app', get_template_directory_uri() . '/assets/js/app.js', array('jquery'), '', true);
    wp_enqueue_style('jplayer', get_template_directory_uri() . '/assets/js/jPlayer/jplayer.flat.css');
    wp_enqueue_script('jplayer', get_template_directory_uri() . '/assets/js/jPlayer/jquery.jplayer.min.js', array('jquery'), '', true);
    wp_enqueue_script('playlist', get_template_directory_uri() . '/assets/js/jPlayer/add-on/jplayer.playlist.min.js', array('jquery'), '', true);
    wp_enqueue_script('storage', get_template_directory_uri() . '/assets/js/jquery.storageapi.min.js', array('jquery'), '', true);
    wp_enqueue_script('player', get_template_directory_uri() . '/assets/js/player.js', array('jquery'), '', true);
    wp_enqueue_script('playlists', get_template_directory_uri() . '/assets/js/playlist.js', array('jquery'), '', true);
    wp_localize_script('player', 'ajax_object', array('ajaxurl' => admin_url('admin-ajax.php')), '', true);
    wp_enqueue_style('wp-mediaelement');
    wp_enqueue_script('wp-mediaelement', false, array('jquery'), false, true);
    wp_enqueue_script('tile', get_template_directory_uri() . '/assets/js/masonry/tiles.min.js', array('jquery'), '', true);
    wp_enqueue_script('tile-init', get_template_directory_uri() . '/assets/js/tile.js', array('jquery'), '', true);
    if (get_theme_mod('hide-loading') == 0) {
        wp_enqueue_script('nprogress', get_template_directory_uri() . '/assets/js/nprogress/nprogress.js', array('jquery'), '', true);
        wp_enqueue_style('nprogress', get_template_directory_uri() . '/assets/js/nprogress/nprogress.css');
        wp_enqueue_script('pjax', get_template_directory_uri() . '/assets/js/jquery.pjax.js', array('jquery'), '', true);
        wp_enqueue_script('pjaxinit', get_template_directory_uri() . '/assets/js/ajax.js', array('jquery'), '', true);
    }
}
 function bootstrap_four_theme_styles()
 {
     global $bootstrap_four_version;
     wp_enqueue_style('bootstrap-four-font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.4.0');
     wp_register_style('bootstrap-four-bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), $bootstrap_four_version);
     wp_enqueue_style('bootstrap-four-styles', get_stylesheet_uri(), array('bootstrap-four-bootstrap'), '1');
 }
/**
 * Enqueue scripts and styles.
 */
function ample_scripts()
{
    // Load bxslider CSS
    wp_enqueue_style('ample-bxslider', get_template_directory_uri() . '/js/jquery.bxslider/jquery.bxslider.css', array(), '4.1.2');
    wp_enqueue_style('ample-google-fonts', '//fonts.googleapis.com/css?family=Roboto:400,300');
    // Load fontawesome
    wp_enqueue_style('ample-fontawesome', get_template_directory_uri() . '/font-awesome/css/font-awesome.min.css', array(), '4.3.0');
    /**
     * Loads our main stylesheet.
     */
    wp_enqueue_style('ample-style', get_stylesheet_uri());
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    // Register bxslider Script
    wp_register_script('ample-bxslider', get_template_directory_uri() . '/js/jquery.bxslider/jquery.bxslider.min.js', array('jquery'), false, true);
    $slider = 0;
    for ($i = 1; $i <= 4; $i++) {
        $slider_image = ample_option('ample_slider_image' . $i, '');
        if (!empty($slider_image)) {
            $slider++;
        }
    }
    if ($slider > 1 && is_front_page() && ample_option('ample_activate_slider', '0') == '1') {
        wp_enqueue_script('ample-slider', get_template_directory_uri() . '/js/slider-setting.js', array('ample-bxslider'), false, true);
    }
    wp_enqueue_script('ample-custom', get_template_directory_uri() . '/js/theme-custom.js', array('jquery'), false, true);
    wp_enqueue_script('ample-navigation', get_template_directory_uri() . '/js/navigation.js', array('jquery'), false, true);
}
function ppf_css()
{
    wp_enqueue_style('style', get_stylesheet_uri());
    //scroll js
    wp_enqueue_script('jquery-1.10.2', get_template_directory_uri() . '/js/jquery-1.10.2.min.js', '', '', false);
    wp_enqueue_script('Scroll', get_template_directory_uri() . '/js/jquery.scrollTo.js', '', '', false);
}
/**
 * Enqueue scripts and styles.
*/
function deepticodes_scripts()
{
    wp_enqueue_style('deepticodes-style', get_stylesheet_uri());
    wp_enqueue_style('deepticodes-fonts', get_template_directory_uri() . '/css/fonts.css');
    wp_enqueue_style('deepticodes-font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css');
    wp_enqueue_style('deepticodes-bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css');
    wp_enqueue_style('deepticodes-lightbox', get_template_directory_uri() . '/css/lightbox.css');
    wp_enqueue_style('deepticodes-owl', get_template_directory_uri() . '/css/owl.theme.css');
    wp_enqueue_style('deepticodes-carousel', get_template_directory_uri() . '/css/owl.carousel.css');
    wp_enqueue_style('deepticodes-customstyle', get_template_directory_uri() . '/css/style.css');
    wp_enqueue_style('deepticodes-responsive', get_template_directory_uri() . '/css/responsive.css');
    wp_enqueue_script('deepticodes-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true);
    wp_enqueue_script("jquery");
    wp_enqueue_script('deepticodes-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true);
    wp_enqueue_script('deepticodes-bootstrapjs', get_template_directory_uri() . '/js/bootstrap.min.js', array('jQuery'), '', true);
    wp_enqueue_script('deepticodes-sticky', get_template_directory_uri() . '/js/jquery.sticky.js', array(), '20120207', true);
    wp_enqueue_script('deepticodes-smooth-scroll', get_template_directory_uri() . '/js/jquery.smooth-scroll.js', array(), '20120209', true);
    wp_enqueue_script('deepticodes-isotope.pkgd.min', get_template_directory_uri() . '/js/isotope.pkgd.min.js', array(), '20120210', true);
    wp_enqueue_script('deepticodes-counterup', get_template_directory_uri() . '/js/jquery.counterup.min.js', array(), '20120211', true);
    wp_enqueue_script('deepticodes-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array(), '20120208', true);
    wp_enqueue_script('deepticodes-slides', get_template_directory_uri() . '/js/slides.min.jquery.js', array(), '20120212', true);
    wp_enqueue_script('deepticodes-gmap3', get_template_directory_uri() . '/js/gmap3.min.js', array(), '20120213', true);
    wp_enqueue_script('deepticodes-parsley', get_template_directory_uri() . '/js/parsley.min.js', array(), '20120214', true);
    wp_enqueue_script('deepticodes-script', get_template_directory_uri() . '/js/script.js', array(), '20120215', true);
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
function cleansimplewhite_scripts()
{
    wp_enqueue_style('cleansimplewhite-style', get_stylesheet_uri(), array(), '1.4.2');
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
Exemple #22
0
function parabola_register_styles()
{
    global $parabolas;
    foreach ($parabolas as $key => $value) {
        ${"{$key}"} = $value;
    }
    wp_register_style('parabolas', get_stylesheet_uri());
    if ($parabola_mobile == "Enable") {
        wp_register_style('parabola-mobile', get_template_directory_uri() . '/styles/style-mobile.css');
    }
    if ($parabola_frontpage == "Enable") {
        wp_register_style('parabola-frontpage', get_template_directory_uri() . '/styles/style-frontpage.css');
    }
    if ($parabola_googlefont) {
        wp_register_style('parabola_googlefont', esc_attr("http://fonts.googleapis.com/css?family=" . preg_replace('/\\s+/', '+', $parabola_googlefont)));
    }
    if ($parabola_googlefonttitle) {
        wp_register_style('parabola_googlefonttitle', esc_attr("http://fonts.googleapis.com/css?family=" . preg_replace('/\\s+/', '+', $parabola_googlefonttitle)));
    }
    if ($parabola_googlefontside) {
        wp_register_style('parabola_googlefontside', esc_attr("http://fonts.googleapis.com/css?family=" . preg_replace('/\\s+/', '+', $parabola_googlefontside)));
    }
    if ($parabola_headingsgooglefont) {
        wp_register_style('parabola_headingsgooglefont', esc_attr("http://fonts.googleapis.com/css?family=" . preg_replace('/\\s+/', '+', $parabola_headingsgooglefont)));
    }
    if ($parabola_sitetitlegooglefont) {
        wp_register_style('parabola_sitetitlegooglefont', esc_attr("http://fonts.googleapis.com/css?family=" . preg_replace('/\\s+/', '+', $parabola_sitetitlegooglefont)));
    }
    if ($parabola_menugooglefont) {
        wp_register_style('parabola_menugooglefont', esc_attr("http://fonts.googleapis.com/css?family=" . preg_replace('/\\s+/', '+', $parabola_menugooglefont)));
    }
}
Exemple #23
0
/**
 * Enqueue scripts and styles for front-end.
 */
function twentytwelve_scripts_styles()
{
    global $wp_styles;
    /*
     * Adds JavaScript to pages with the comment form to support
     * sites with threaded comments (when in use).
     */
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    // Adds JavaScript for handling the navigation menu hide-and-show behavior.
    wp_enqueue_script('twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '1.0', true);
    $font_url = twentytwelve_get_font_url();
    if (!empty($font_url)) {
        wp_enqueue_style('twentytwelve-fonts', esc_url_raw($font_url), array(), null);
    }
    // Loads our main stylesheet.
    wp_enqueue_style('twentytwelve-style', get_stylesheet_uri());
    // Loads the Flexslider
    wp_enqueue_style('twentytwelve-flex', get_template_directory_uri() . '/css/flexslider.css', array('twentytwelve-style'), '20121010');
    // Loads the Colorbox
    wp_enqueue_style('twentytwelve-color', get_template_directory_uri() . '/css/colorbox.css', array('twentytwelve-style'), '20121010');
    // Loads the Internet Explorer specific stylesheet.
    wp_enqueue_style('twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array('twentytwelve-style'), '20121010');
    $wp_styles->add_data('twentytwelve-ie', 'conditional', 'lt IE 9');
}
 /**
  * Enqueue scripts & styles
  */
 function bootstrapBasicEnqueueScripts()
 {
     wp_enqueue_style('bootstrap-style', get_template_directory_uri() . '/css/bootstrap.min.css');
     wp_enqueue_style('bootstrap-theme-style', get_template_directory_uri() . '/css/bootstrap-theme.min.css');
     wp_enqueue_style('fontawesome-style', get_template_directory_uri() . '/css/font-awesome.min.css');
     wp_enqueue_style('main-style', get_template_directory_uri() . '/css/main.css');
     wp_enqueue_script('modernizr-script', get_template_directory_uri() . '/js/vendor/modernizr.min.js');
     wp_enqueue_script('respond-script', get_template_directory_uri() . '/js/vendor/respond.min.js');
     wp_enqueue_script('html5-shiv-script', get_template_directory_uri() . '/js/vendor/html5shiv.js');
     wp_enqueue_script('jquery');
     wp_enqueue_script('bootstrap-script', get_template_directory_uri() . '/js/vendor/bootstrap.min.js');
     wp_enqueue_script('main-script', get_template_directory_uri() . '/js/main.js');
     wp_enqueue_style('bootstrap-basic-style', get_stylesheet_uri());
     //--- map functions
     wp_enqueue_script('jquery2', get_template_directory_uri() . '/js/jquery-1.11.3.min.js');
     wp_enqueue_script('d3-script', get_template_directory_uri() . '/js/d3.min.js');
     wp_enqueue_script('queue-script', get_template_directory_uri() . '/js/queue.js');
     wp_enqueue_script('map-script', get_template_directory_uri() . '/js/map.js');
     if (is_page(46)) {
         wp_enqueue_script('jquery-sticky', get_template_directory_uri() . '/js/jquery.sticky.js');
         wp_enqueue_script('jquery-tokeninput', get_template_directory_uri() . '/js/jquery.tokeninput.js');
         wp_enqueue_script('scroller', get_template_directory_uri() . '/js/scroller.js');
         wp_enqueue_script('surveyvis', get_template_directory_uri() . '/js/surveyvis.js');
         wp_enqueue_style('jquery-ui', get_template_directory_uri() . '/css/jquery-ui.css');
         wp_enqueue_style('styles', get_template_directory_uri() . '/css/styles.css');
         wp_enqueue_style('token-input', get_template_directory_uri() . '/css/token-input.css');
     }
     if (is_page(71)) {
         wp_enqueue_script('jquery2', get_template_directory_uri() . '/js/jquery-1.11.3.min.js');
         wp_enqueue_script('jquery-sticky', get_template_directory_uri() . '/js/jquery.sticky.js');
         wp_enqueue_script('explorevis', get_template_directory_uri() . '/js/explorevis.js');
         wp_enqueue_style('explore', get_template_directory_uri() . '/css/explore.css');
     }
 }
/**
 * Enqueue scripts
 */
function mb_scripts()
{
    wp_enqueue_style('_mbbasetheme-style', get_stylesheet_uri());
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
function inkness_scripts()
{
    wp_enqueue_style('inkness-fonts', '//fonts.googleapis.com/css?family=Open+Sans:300,400,700,600');
    wp_enqueue_style('inkness-basic-style', get_stylesheet_uri());
    if (function_exists('of_get_option') && of_get_option('sidebar-layout', true) != 1) {
        if (of_get_option('sidebar-layout', true) == 'right') {
            wp_enqueue_style('inkness-layout', get_template_directory_uri() . "/css/layouts/content-sidebar.css");
        } else {
            wp_enqueue_style('inkness-layout', get_template_directory_uri() . "/css/layouts/sidebar-content.css");
        }
    } else {
        wp_enqueue_style('inkness-layout', get_template_directory_uri() . "/css/layouts/content-sidebar.css");
    }
    wp_enqueue_style('inkness-bootstrap-style', get_template_directory_uri() . "/css/bootstrap/bootstrap.min.css", array('inkness-layout'));
    wp_enqueue_style('inkness-main-style', get_template_directory_uri() . "/css/skins/main.css", array('inkness-layout', 'inkness-bootstrap-style'));
    wp_enqueue_script('inkness-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true);
    wp_enqueue_script('inkness-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true);
    if (function_exists('of_get_option') && of_get_option('slider_enabled') != 0) {
        wp_enqueue_style('inkness-nivo-slider-default-theme', get_template_directory_uri() . "/css/nivo/slider/themes/default/default.css");
        wp_enqueue_style('inkness-nivo-slider-style', get_template_directory_uri() . "/css/nivo/slider/nivo.css");
    }
    if (function_exists('of_get_option') && of_get_option('slider_enabled') != 0) {
        wp_enqueue_script('inkness-nivo-slider', get_template_directory_uri() . '/js/nivo.slider.js', array('jquery'));
    }
    wp_enqueue_script('inkness-superfish', get_template_directory_uri() . '/js/superfish.js', array('jquery', 'hoverIntent'));
    wp_enqueue_script('inkness-bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'));
    wp_enqueue_script('inkness-custom-js', get_template_directory_uri() . '/js/custom.js', array('jquery'));
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    if (is_singular() && wp_attachment_is_image()) {
        wp_enqueue_script('inkness-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array('jquery'), '20120202');
    }
}
/**
 * Register jquery scripts
 */
function spacious_scripts_styles_method()
{
    /**
     * Loads our main stylesheet.
     */
    wp_enqueue_style('spacious_style', get_stylesheet_uri());
    if (of_get_option('spacious_color_skin', 'light') == 'dark') {
        wp_enqueue_style('spacious_dark_style', SPACIOUS_CSS_URL . '/dark.css');
    }
    /**
     * Adds JavaScript to pages with the comment form to support
     * sites with threaded comments (when in use).
     */
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    /**
     * Register JQuery cycle js file for slider.
     */
    wp_register_script('jquery_cycle', SPACIOUS_JS_URL . '/jquery.cycle.all.min.js', array('jquery'), '2.9999.5', true);
    //   wp_register_style( 'google_fonts', 'http://fonts.googleapis.com/css?family=Lato' );
    /**
     * Enqueue Slider setup js file.	 
     */
    if (is_home() || is_front_page() && of_get_option('spacious_activate_slider', '0') == '1') {
        wp_enqueue_script('spacious_slider', SPACIOUS_JS_URL . '/spacious-slider-setting.js', array('jquery_cycle'), false, true);
    }
    wp_enqueue_script('spacious-navigation', SPACIOUS_JS_URL . '/navigation.js', array('jquery'), false, true);
    wp_enqueue_script('spacious-custom', SPACIOUS_JS_URL . '/spacious-custom.js', array('jquery'));
    wp_enqueue_style('google_fonts');
    $spacious_user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
    if (preg_match('/(?i)msie [1-8]/', $spacious_user_agent)) {
        wp_enqueue_script('html5', SPACIOUS_JS_URL . '/html5.js', true);
    }
}
/**
 * Enqueue scripts and styles
 */
function _tk_scripts()
{
    // Import the necessary TK Bootstrap WP CSS additions
    wp_enqueue_style('_tk-bootstrap-wp', get_template_directory_uri() . '/includes/css/bootstrap-wp.css');
    // load bootstrap css
    wp_enqueue_style('_tk-bootstrap', get_template_directory_uri() . '/includes/resources/bootstrap/css/bootstrap.min.css');
    // load Font Awesome css
    wp_enqueue_style('_tk-font-awesome', get_template_directory_uri() . '/includes/css/font-awesome.min.css', false, '4.1.0');
    // load _tk styles
    wp_enqueue_style('_tk-style', get_stylesheet_uri());
    // load bootstrap js
    wp_enqueue_script('_tk-bootstrapjs', get_template_directory_uri() . '/includes/resources/bootstrap/js/bootstrap.min.js', array('jquery'));
    // load bootstrap wp js
    wp_enqueue_script('_tk-bootstrapwp', get_template_directory_uri() . '/includes/js/bootstrap-wp.js', array('jquery'));
    wp_enqueue_script('_tk-skip-link-focus-fix', get_template_directory_uri() . '/includes/js/skip-link-focus-fix.js', array(), '20130115', true);
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    if (is_singular() && wp_attachment_is_image()) {
        wp_enqueue_script('_tk-keyboard-image-navigation', get_template_directory_uri() . '/includes/js/keyboard-image-navigation.js', array('jquery'), '20120202');
    }
    //Load angular
    wp_enqueue_script('angularjs', get_template_directory_uri() . '/node_modules/angular/angular.min.js');
    wp_enqueue_script('angularjs-route', get_template_directory_uri() . '/node_modules/angular-route/angular-route.min.js');
    wp_enqueue_script('angularjs-sanitize', get_stylesheet_directory_uri() . '/node_modules/angular-sanitize/angular-sanitize.min.js');
    wp_enqueue_script('scripts', get_stylesheet_directory_uri() . '/js/scripts.js', array('angularjs', 'angularjs-route'));
    wp_enqueue_script('theme-service', get_stylesheet_directory_uri() . '/js/services.js');
    wp_localize_script('scripts', 'localized', array('partials' => 'http://full-url-here.com/wp-content/themes/angular-bootstrap/partials/'));
}
Exemple #29
0
/**
 * Enqueue scripts and styles.
 */
function corporatebusiness_theme_scripts()
{
    wp_enqueue_style('corporatebusiness-style', get_stylesheet_uri());
    wp_enqueue_style('corporatebusiness-font-awesome', get_template_directory_uri() . '/inc/font-awesome/css/font-awesome.min.css', array());
    wp_enqueue_style('corporatebusiness-google-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700', array());
    wp_enqueue_script('corporatebusiness-navigation', get_template_directory_uri() . '/inc/js/navigation.js', array(), '20120206', true);
    wp_enqueue_script('corporatebusiness-skip-link-focus-fix', get_template_directory_uri() . '/inc/js/skip-link-focus-fix.js', array(), '20130115', true);
    wp_enqueue_script('corporatebusiness-fitvids', get_template_directory_uri() . '/inc/js/jquery.fitvids.js', array('jquery'), '');
    wp_enqueue_script('corporatebusiness-fitvids-doc-ready', get_template_directory_uri() . '/inc/js/fitvids-doc-ready.js', array('jquery'), '');
    wp_register_script('corporatebusiness-jquery-cycle', get_template_directory_uri() . '/inc/js/jquery.cycle.all.min.js', array('jquery'), '2.9999.5');
    // JQuery cycle js file for slider.
    wp_enqueue_script('corporatebusiness-basejs', get_template_directory_uri() . '/inc/js/base.js', array('jquery'), '');
    //
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    /**
     * Enqueue Slider setup js file.
     */
    if (get_theme_mod('enable_slider')) {
        if (is_home() || is_front_page()) {
            wp_enqueue_script('corporatebusiness_slider', get_template_directory_uri() . '/inc/js/slider-setting.js', array('corporatebusiness-jquery-cycle'), false, true);
        }
    }
    /**
     * Browser specific queuing i.e
     * https://gist.github.com/grappler/05568f05633484499acc
     */
    global $wp_scripts;
    wp_enqueue_script('html5shiv', get_template_directory_uri() . '/js/html5shiv.min.js', array(), '3.7.2', false);
    $wp_scripts->add_data('html5shiv', 'conditional', 'lt IE 9');
}
Exemple #30
0
function fifteen_scripts()
{
    wp_enqueue_style('fifteen-basic-style', get_stylesheet_uri());
    if (function_exists('of_get_option') && of_get_option('sidebar-layout', true) != 1) {
        if (of_get_option('sidebar-layout', true) == 'right') {
            wp_enqueue_style('fifteen-layout', get_template_directory_uri() . "/css/layouts/content-sidebar.css");
        } else {
            wp_enqueue_style('fifteen-layout', get_template_directory_uri() . "/css/layouts/sidebar-content.css");
        }
    } else {
        wp_enqueue_style('fifteen-layout', get_template_directory_uri() . "/css/layouts/content-sidebar.css");
    }
    wp_enqueue_style('fifteen-bootstrap-style', get_template_directory_uri() . "/css/bootstrap/bootstrap.min.css", array('fifteen-layout'));
    wp_enqueue_style('fifteen-main-skin', get_template_directory_uri() . "/css/skins/default.css", array('fifteen-layout', 'fifteen-bootstrap-style'));
    wp_enqueue_script('fifteen-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true);
    wp_enqueue_script('fifteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true);
    wp_enqueue_script('fifteen-bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'));
    wp_enqueue_script('fifteen-custom-js', get_template_directory_uri() . '/js/custom.js', array('jquery'));
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    if (is_singular() && wp_attachment_is_image()) {
        wp_enqueue_script('fifteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array('jquery'), '20120202');
    }
}