• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_stylesheet_uri函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_stylesheet_uri函数的典型用法代码示例。如果您正苦于以下问题:PHP get_stylesheet_uri函数的具体用法?PHP get_stylesheet_uri怎么用?PHP get_stylesheet_uri使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_stylesheet_uri函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: montkailash_scripts

/**
 * 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);
    }
}
开发者ID:flasomm,项目名称:Montkailash,代码行数:35,代码来源:functions.php


示例2: gabfire_theme_scripts

 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');
     }
 }
开发者ID:wpmonty,项目名称:99-demos,代码行数:35,代码来源:functions.php


示例3: fast_scripts

/**
 * 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');
    }
}
开发者ID:brianotoole,项目名称:landing-page-skewed-containers,代码行数:29,代码来源:functions.php


示例4: theme_enqueue_styles

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
}
开发者ID:blinkcursor,项目名称:stockholm,代码行数:7,代码来源:functions.php


示例5: coffeepot_bbch_enqueue

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}');
}
开发者ID:holyhope,项目名称:CoffeePot-BBCH,代码行数:7,代码来源:functions.php


示例6: dazake_load_script

/**
 * 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');
    }
}
开发者ID:joaosigno,项目名称:dazake-job,代码行数:34,代码来源:functions.php


示例7: coll_enqueue_styles

 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);
     }
 }
开发者ID:Air-Craft,项目名称:air-craft-www,代码行数:32,代码来源:enqueue.php


示例8: jbaths_scripts

/**
 * 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');
    }
}
开发者ID:jchristopher,项目名称:jbaths,代码行数:35,代码来源:functions.php


示例9: wpstarter_style_scripts

/**
 * 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);
}
开发者ID:ryancanhelpyou,项目名称:wp-starter,代码行数:10,代码来源:functions.php


示例10: bluzpress_load_style

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());
    }
}
开发者ID:jahur,项目名称:newtheme,代码行数:7,代码来源:functions.php


示例11: tie_register

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();
    }
}
开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:27,代码来源:common-scripts.php


示例12: fave_theme_scripts

/**
 * 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');
    }
}
开发者ID:phuthuytinhoc,项目名称:Demo1,代码行数:40,代码来源:register-scripts.php


示例13: kadence_scripts

/**
 * 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');
    }
}
开发者ID:Joaquinsemp,项目名称:patriestausado,代码行数:46,代码来源:scripts.php


示例14: vannkorn_scripts

/**
 * 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);
}
开发者ID:vannkorn,项目名称:vannkorn-wordpress,代码行数:34,代码来源:style-script-enqueue.php


示例15: jdorn_scripts

/**
 * 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 );
}
开发者ID:jaydorn,项目名称:jasondorn.com,代码行数:10,代码来源:functions.php


示例16: musik_scripts

/**
 * 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);
    }
}
开发者ID:misfire,项目名称:tranceisdead,代码行数:37,代码来源:functions.php


示例17: bootstrap_four_theme_styles

 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');
 }
开发者ID:jenrasmussen,项目名称:bootstrapfour,代码行数:7,代码来源:functions.php


示例18: ample_scripts

/**
 * 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);
}
开发者ID:straightlinekc,项目名称:mcclellanenterprises,代码行数:32,代码来源:functions.php


示例19: ppf_css

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);
}
开发者ID:Eason-Chen,项目名称:ppf-wordpress,代码行数:7,代码来源:functions.php


示例20: deepticodes_scripts

/**
 * 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');
    }
}
开发者ID:deeptiboddapati,项目名称:deeptiboddapatitheme,代码行数:31,代码来源:functions.php



注:本文中的get_stylesheet_uri函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_stylesheets函数代码示例发布时间:2022-05-15
下一篇:
PHP get_stylesheet_directory_uri函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap