当前位置: 首页>>代码示例>>PHP>>正文


PHP yit_enqueue_style函数代码示例

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


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

示例1: add_popup_css_js

 public function add_popup_css_js()
 {
     yit_enqueue_style(1200, 'popup_css', YIT_CORE_ASSETS_URL . '/css/popup.css');
     $url = get_template_directory_uri() . '/theme/assets/css/popup.css';
     yit_enqueue_style(1200, 'popup_theme_css', $url);
     wp_enqueue_script('jquery-cookie', YIT_CORE_ASSETS_URL . '/js/jquery.cookie.js', array('jquery'));
     add_action('wp_footer', array(&$this, 'footer_script'));
 }
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:8,代码来源:Popup.php

示例2: add_skin_css

 /**
  * Include the skin css for custom style of each skin
  */
 public function add_skin_css()
 {
     $skin = yit_get_option('skin');
     if (empty($skin)) {
         return;
     }
     yit_enqueue_style(5000, 'skin-' . $skin, YIT_THEME_CSS_URL . '/skins/' . $skin . '.css', false, array(), false, 'all', true);
 }
开发者ID:jayeshnair,项目名称:ctp,代码行数:11,代码来源:Skin.php

示例3: yit_add_custom_styles

 function yit_add_custom_styles()
 {
     if (yit_get_option('responsive-enabled')) {
         yit_enqueue_style(9994, 'responsive', YIT_CORE_ASSETS_URL . '/css/responsive.css', array(), '1.0.0', 'all');
         yit_enqueue_style(9995, 'theme-responsive', get_template_directory_uri() . '/css/responsive.css', false, '2.0', 'all');
     }
     $custom_css = locate_template('custom.css');
     $custom_css = str_replace(array(get_stylesheet_directory(), get_template_directory()), array(get_stylesheet_directory_uri(), get_template_directory_uri()), $custom_css);
     yit_enqueue_style(99999, 'custom', $custom_css, array(), false, 'all', true);
 }
开发者ID:allyeastman,项目名称:studio-sapphire,代码行数:10,代码来源:functions-template.php

示例4: yit_add_custom_styles

 function yit_add_custom_styles()
 {
     if (yit_get_option('responsive-enabled')) {
         yit_enqueue_style(9994, 'responsive', YIT_CORE_ASSETS_URL . '/css/responsive.css', array(), '1.0.0', 'all');
         yit_enqueue_style(9995, 'max-width-1024', get_template_directory_uri() . '/css/max-width-1024.css', array(), '1.0.0', 'screen and (max-width: 1240px)', true);
         yit_enqueue_style(9996, 'max-width-768', get_template_directory_uri() . '/css/max-width-768.css', array('max-width-1024'), '1.0.0', 'screen and (max-width: 987px)', true);
         yit_enqueue_style(9996, 'max-width-480', get_template_directory_uri() . '/css/max-width-480.css', array('max-width-768'), '1.0.0', 'screen and (max-width: 480px)', true);
         yit_enqueue_style(9996, 'max-width-320', get_template_directory_uri() . '/css/max-width-320.css', array('max-width-480'), '1.0.0', 'screen and (max-width: 320px)', true);
     }
     global $wpdb;
     $cache_file = '/custom.css';
     if ($wpdb->blogid != 0) {
         $cache_file = str_replace('.css', '-' . $wpdb->blogid . '.css', $cache_file);
     }
     if (file_exists(YIT_CACHE_DIR . $cache_file)) {
         yit_enqueue_style(9999, 'cache-custom', YIT_CACHE_URL . $cache_file, array(), false, 'all', true);
     }
     $custom_css = locate_template('custom.css');
     $custom_css = str_replace(array(get_stylesheet_directory(), get_template_directory()), array(get_stylesheet_directory_uri(), get_template_directory_uri()), $custom_css);
     yit_enqueue_style(99999, 'custom', $custom_css, array(), false, 'all', true);
 }
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:21,代码来源:functions-template.php

示例5: add_contact_css

 /**
  * Add custom style
  * 
  */
 public function add_contact_css()
 {
     $url = get_template_directory_uri() . '/theme/assets/css/contact_form.css';
     yit_enqueue_style(1200, 'contact_form', $url);
 }
开发者ID:shahadat014,项目名称:geleyi,代码行数:9,代码来源:Contact_Form.php

示例6: add_featurestab_css

 /**
  * Add custom style
  * 
  */
 public function add_featurestab_css()
 {
     $url = get_template_directory_uri() . '/theme/assets/css/featurestab.css';
     yit_enqueue_style(1200, 'featurestab', $url);
 }
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:9,代码来源:Features_Tab.php

示例7: __

    'map_close' => __( '[x] Close', 'yit' ),
    'map_open' => __( '[x] Open', 'yit' )
);
wp_localize_script( 'jquery-custom', 'l10n_handler', $jquery_custom_l10n );

/* We add some JavaScript to pages with the comment form
 * to support sites with threaded comments (when in use).
 */
if ( is_singular() && get_option( 'thread_comments' ) )
    wp_enqueue_script( 'comment-reply' );

// Enqueue blog styles
do_action( 'yit_enqueue_blog_stuffs' );

yit_enqueue_style( 10, 'colorbox', $get_template_directory_uri .'/theme/assets/css/colorbox.css' );
yit_enqueue_style( 10, 'comments', $yit_theme_template_direcory_uri . '/comments/css/style.css' );
?>

<script type="text/javascript">
	var yit_responsive_menu_type = "<?php echo yit_get_option('responsive-menu'); ?>";
	var yit_responsive_menu_text = "<?php _e('NAVIGATE TO...','yit'); ?>";
</script>

<!-- [favicon] begin -->
<link rel="shortcut icon" type="image/x-icon" href="<?php yit_favicon() ?>" />
<link rel="icon" type="image/x-icon" href="<?php yit_favicon() ?>" />
<!-- [favicon] end -->

<!-- Touch icons more info: http://mathiasbynens.be/notes/touch-icons -->
<?php yit_print_mobile_favicons() ;?>
开发者ID:simonsays88,项目名称:costa,代码行数:30,代码来源:head.php

示例8: wp_enqueue_script

    wp_enqueue_script('jquery-custom', get_stylesheet_directory_uri() . '/js/jquery.custom.js', array('jquery'), '1.0', true);
} else {
    wp_enqueue_script('jquery-custom', get_template_directory_uri() . '/js/jquery.custom.js', array('jquery'), '1.0', true);
}
$jquery_custom_l10n = array('map_close' => __('[x] Close', 'yit'), 'map_open' => __('[x] Open', 'yit'));
wp_localize_script('jquery-custom', 'l10n_handler', $jquery_custom_l10n);
/* We add some JavaScript to pages with the comment form
 * to support sites with threaded comments (when in use).
 */
if (is_singular() && get_option('thread_comments')) {
    wp_enqueue_script('comment-reply');
}
// Enqueue blog styles
do_action('yit_enqueue_blog_stuffs');
yit_enqueue_style(10, 'colorbox', get_template_directory_uri() . '/theme/assets/css/colorbox.css');
yit_enqueue_style(10, 'comments', YIT_THEME_TEMPLATES_URL . '/comments/css/style.css');
?>

<script type="text/javascript">
	var yit_responsive_menu_type = "<?php 
echo yit_get_option('responsive-menu');
?>
";
	var yit_responsive_menu_text = "<?php 
_e('NAVIGATE TO...', 'yit');
?>
";
</script>

<!-- [favicon] begin -->
<link rel="shortcut icon" type="image/x-icon" href="<?php 
开发者ID:zgomotos,项目名称:Bazar,代码行数:31,代码来源:head.php

示例9: enqueue_scripts

 /**
  * Enqueue scripts for public pages
  *
  * @return void
  * @since 1.0.0
  * @author Antonio La Rocca <antonio.larocca@yithemes.it>
  */
 public function enqueue_scripts()
 {
     yit_enqueue_style('yit-feature-tab', $this->plugin_assets_url . '/css/featurestab.css');
 }
开发者ID:lieison,项目名称:IndustriasFenix,代码行数:11,代码来源:yit-feature-tabs.php

示例10: yit_enqueue_blog_styles

 /**
  * Enqueue all blog styles
  * 
  * @return void
  * @since 1.0.0
  */
 function yit_enqueue_blog_styles()
 {
     $dir = get_template_directory() . "/theme/templates/blog/";
     $dir_url = get_template_directory_uri() . "/theme/templates/blog/";
     $blogs = scandir($dir);
     // ./ and ../
     unset($blogs[0], $blogs[1]);
     foreach ($blogs as $blog) {
         if (is_dir($dir . $blog) && file_exists($dir . $blog . '/css/style.css')) {
             yit_enqueue_style(100, 'blog-' . $blog, $dir_url . $blog . '/css/style.css');
         }
     }
 }
开发者ID:jayeshnair,项目名称:ctp,代码行数:19,代码来源:functions-core.php

示例11: add_shortcodes_css_js

 /**
  * Add shortcodes style
  * 
  */
 public function add_shortcodes_css_js()
 {
     $url = get_template_directory_uri() . '/core/assets/css/shortcodes.css';
     yit_enqueue_style(1200, 'shortcodes_css', $url);
     wp_enqueue_script('shortcode_twitter', get_template_directory_uri() . '/core/assets/js/twitter-text.js', array('jquery'), '', true);
     //yit_enqueue_style(1200,'shortcode_twitter');
     yit_enqueue_style(1200, 'shortcode_tipsy_css', get_template_directory_uri() . '/core/assets/css/tipsy.css', array('jquery'), '', true);
     wp_enqueue_script('shortcode_tipsy_js', get_template_directory_uri() . '/core/assets/js/jquery.tipsy.js', array('jquery'), '', true);
     //yit_enqueue_style(1200,'shortcode_tipsy_js');
     wp_enqueue_script('shortcode_cycle_js', get_template_directory_uri() . '/core/assets/js/jquery.cycle.min.js', array('jquery'), '', true);
     //yit_enqueue_style(1200,'shortcodes_cycle_js');
     wp_enqueue_script('shortcode_js', get_template_directory_uri() . '/core/assets/js/shortcodes.js', array('jquery'), '', true);
     //yit_enqueue_style(1200,'shortcodes_js');
 }
开发者ID:VitaliyProdan,项目名称:wp_shop,代码行数:18,代码来源:Shortcodes.php

示例12: add_shortcodes_css_js

 /**
  * Add shortcodes style
  * 
  */
 public function add_shortcodes_css_js()
 {
     $url = get_template_directory_uri() . '/core/assets/css/shortcodes.css';
     yit_enqueue_style(1200, 'shortcodes_css', $url);
     wp_enqueue_script('shortcode_twitter', get_template_directory_uri() . '/core/assets/js/twitter-text.js', array('jquery'), '', true);
     //wp_enqueue_script('shortcode_twitter', get_template_directory_uri() . '/core/assets/js/jquery.tweetable.js', array('jquery'), '', true );
     //yit_enqueue_style(1200,'shortcode_twitter');
     //yit_enqueue_style(1200,'shortcode_tipsy_css', get_template_directory_uri() . '/core/assets/css/tipsy.css', array('jquery'), '', true );
     //wp_enqueue_script('shortcode_tipsy_js', get_template_directory_uri() . '/core/assets/js/jquery.tipsy.js', array('jquery'), '', true );
     //yit_enqueue_style(1200,'shortcode_tipsy_js');
     //wp_enqueue_script('shortcode_cycle_js', get_template_directory_uri() . '/core/assets/js/jquery.cycle.min.js', array('jquery'), '', true );
     //yit_enqueue_style(1200,'shortcodes_cycle_js');
     wp_enqueue_script('shortcode_js', get_template_directory_uri() . '/core/assets/js/shortcodes.js', array('jquery'), '', true);
     //yit_enqueue_style(1200,'shortcodes_js');
     if (file_exists(YIT_THEME_FUNC_DIR . '/assets/js/shortcodes.js')) {
         wp_enqueue_script('shortcode_theme_js', get_template_directory_uri() . '/theme/assets/js/shortcodes.js', array('jquery'), '', true);
     }
 }
开发者ID:shahadat014,项目名称:geleyi,代码行数:22,代码来源:Shortcodes.php

示例13: array

}
$jquery_custom_l10n = array('map_close' => __('[x] Close', 'yit'), 'map_open' => __('[x] Open', 'yit'));
wp_localize_script('jquery-custom', 'l10n_handler', $jquery_custom_l10n);
/* We add some JavaScript to pages with the comment form
 * to support sites with threaded comments (when in use).
 */
if (is_singular() && get_option('thread_comments')) {
    wp_enqueue_script('comment-reply');
}
// Enqueue blog styles
do_action('yit_enqueue_blog_stuffs');
yit_enqueue_style(10, 'colorbox', get_template_directory_uri() . '/theme/assets/css/colorbox.css');
yit_enqueue_style(10, 'comments', YIT_THEME_TEMPLATES_URL . '/comments/css/style.css');
yit_enqueue_style(10, 'animate', get_template_directory_uri() . '/theme/assets/css/animate.css');
//Enqueque Swiper Slider
yit_enqueue_style(10, 'animate', get_template_directory_uri() . '/theme/assets/css/idangerous.swiper.css');
//all around plugin
global $all_around_version;
if (isset($all_around_version)) {
    wp_dequeue_style('all_around-css');
    wp_deregister_style('all_around-css');
    wp_enqueue_style('all_around-css', get_template_directory_uri() . '/css/content_slider_style.css');
}
?>

<script type="text/javascript">
	var yit_responsive_menu_type = "arrow<?php 
//echo yit_get_option('responsive-menu', 'arrow');
?>
";
	var yit_responsive_menu_text = "<?php 
开发者ID:jayeshnair,项目名称:ctp,代码行数:31,代码来源:head.php

示例14: enqueue_assets

 /**
  * Add the the enqueue hooks, to include the assets in the header               
  *      
  * @since 1.0.0
  */
 public function enqueue_assets()
 {
     foreach ($this->_sliderAssets as $slider_type => $assets_slider) {
         // add the styles
         if (isset($assets_slider['css']) && !empty($assets_slider['css'])) {
             foreach ($assets_slider['css'] as $handle => $asset_src) {
                 //wp_register_style( $handle, $asset_src );
                 yit_enqueue_style(1000, $handle, $asset_src);
             }
         }
         // add the scripts
         if (isset($assets_slider['js']) && !empty($assets_slider['js'])) {
             foreach ($assets_slider['js'] as $handle => $asset_src) {
                 if (!wp_script_is($handle, 'registered')) {
                     wp_register_script($handle, $asset_src, array('jquery'), '', true);
                 }
                 //wp_enqueue_script( $handle );
             }
         }
     }
 }
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:26,代码来源:Slider.php

示例15: enqueue_styles

 public function enqueue_styles()
 {
     yit_enqueue_style(100, 'contact-popup', get_template_directory_uri() . '/theme/assets/css/contact-popup.css', array(), '1.0.0');
 }
开发者ID:jayeshnair,项目名称:ctp,代码行数:4,代码来源:Contact_Popup.php


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