本文整理汇总了PHP中get_stylesheet_uri函数的典型用法代码示例。如果您正苦于以下问题:PHP get_stylesheet_uri函数的具体用法?PHP get_stylesheet_uri怎么用?PHP get_stylesheet_uri使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_stylesheet_uri函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
示例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');
}
}
示例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');
}
}
示例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
}
示例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}');
}
示例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');
}
}
示例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);
}
}
示例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');
}
}
示例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);
}
示例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());
}
}
示例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();
}
}
示例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');
}
}
示例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');
}
}
示例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);
}
示例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 );
}