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


PHP WPBakeryVisualComposerSettings::uploadURL方法代码示例

本文整理汇总了PHP中WPBakeryVisualComposerSettings::uploadURL方法的典型用法代码示例。如果您正苦于以下问题:PHP WPBakeryVisualComposerSettings::uploadURL方法的具体用法?PHP WPBakeryVisualComposerSettings::uploadURL怎么用?PHP WPBakeryVisualComposerSettings::uploadURL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WPBakeryVisualComposerSettings的用法示例。


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

示例1: frontCss

 public function frontCss()
 {
     //wp_register_style( 'bootstrap', $this->composer->assetURL( 'bootstrap/css/bootstrap.css' ), false, WPB_VC_VERSION, 'screen' );
     //wp_register_style( 'ui-custom-theme', $this->composer->assetURL( 'css/ui-custom-theme/jquery-ui-' . WPB_JQUERY_UI_VERSION . '.custom.css' ), false, WPB_VC_VERSION, 'screen');
     wp_register_style('flexslider', $this->composer->assetURL('lib/flexslider/flexslider.css'), false, WPB_VC_VERSION, 'screen');
     wp_register_style('nivo-slider-css', $this->composer->assetURL('lib/nivoslider/nivo-slider.css'), false, WPB_VC_VERSION, 'screen');
     wp_register_style('nivo-slider-theme', $this->composer->assetURL('lib/nivoslider/themes/default/default.css'), array('nivo-slider-css'), WPB_VC_VERSION, 'screen');
     wp_register_style('prettyphoto', $this->composer->assetURL('lib/prettyphoto/css/prettyPhoto.css'), false, WPB_VC_VERSION, 'screen');
     wp_register_style('isotope-css', $this->composer->assetURL('css/isotope.css'), false, WPB_VC_VERSION, 'all');
     $front_css_file = $this->composer->assetURL('css/js_composer_front.css');
     $upload_dir = wp_upload_dir();
     $custom_front_css_file = $upload_dir['basedir'] . $this->composer->uploadDir() . '/js_composer_front_custom.css';
     if (WPBakeryVisualComposerSettings::get('use_custom') == '1' && is_file($custom_front_css_file)) {
         $front_css_file = WPBakeryVisualComposerSettings::uploadURL() . '/js_composer_front_custom.css';
     }
     wp_register_style('js_composer_front', $front_css_file, false, WPB_VC_VERSION, 'all');
     wp_enqueue_style('js_composer_front');
     if (is_file($upload_dir['basedir'] . $this->composer->uploadDir() . '/custom.css')) {
         wp_register_style('js_composer_custom_css', WPBakeryVisualComposerSettings::uploadURL() . '/custom.css', array('js_composer_front'), WPB_VC_VERSION, 'screen');
     }
 }
开发者ID:jjmas,项目名称:jjmas.net,代码行数:21,代码来源:build.php


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