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


PHP redux_enqueue_style函数代码示例

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


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

示例1: enqueue

 /**
  * Enqueue Function.
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since ReduxFramework 3.0.0
  */
 function enqueue()
 {
     redux_enqueue_style($this->parent, 'redux-field-text-css', ReduxFramework::$_url . 'inc/fields/text/field_text.css', ReduxFramework::$_dir . 'inc/fields/text', array(), time(), false);
     //                wp_enqueue_style(
     //                    'redux-field-text-css',
     //                    ReduxFramework::$_url . 'inc/fields/text/field_text.css',
     //                    time(),
     //                    true
     //                );
 }
开发者ID:venturepact,项目名称:blog,代码行数:16,代码来源:field_text.php

示例2: enqueue

 /**
  * Enqueue Function.
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since ReduxFramework 0.0.4
  */
 function enqueue()
 {
     wp_enqueue_script('redux-field-switch-js', ReduxFramework::$_url . 'inc/fields/switch/field_switch' . Redux_Functions::isMin() . '.js', array('jquery', 'redux-js'), time(), true);
     redux_enqueue_style($this->parent, 'redux-field-switch-css', ReduxFramework::$_url . 'inc/fields/switch/field_switch.css', ReduxFramework::$_dir . 'inc/fields/switch', array(), time(), false);
     //                wp_enqueue_style(
     //                    'redux-field-switch-css',
     //                    ReduxFramework::$_url . 'inc/fields/switch/field_switch.css',
     //                    time(),
     //                    true
     //                );
 }
开发者ID:venturepact,项目名称:blog,代码行数:17,代码来源:field_switch.php

示例3: enqueue

 /**
  * Enqueue Function.
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since         1.0.0
  * @access        public
  * @return        void
  */
 public function enqueue()
 {
     //                wp_enqueue_style(
     //                    'redux-field-date-css',
     //                    ReduxFramework::$_url . 'inc/fields/date/field_date.css',
     //                    time(),
     //                    true
     //                );
     redux_enqueue_style($this->parent, 'redux-field-date-css', ReduxFramework::$_url . 'inc/fields/date/field_date.css', ReduxFramework::$_dir . 'inc/fields/date', array(), time(), false);
     wp_enqueue_script('redux-field-date-js', ReduxFramework::$_url . 'inc/fields/date/field_date' . Redux_Functions::isMin() . '.js', array('jquery', 'jquery-ui-core', 'jquery-ui-datepicker', 'redux-js'), time(), true);
 }
开发者ID:venturepact,项目名称:blog,代码行数:19,代码来源:field_date.php

示例4: enqueue

 /**
  * Enqueue Function.
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since       1.0.0
  * @access      public
  * @return      void
  */
 public function enqueue()
 {
     wp_enqueue_script('redux-field-multi-text-js', ReduxFramework::$_url . 'inc/fields/multi_text/field_multi_text' . Redux_Functions::isMin() . '.js', array('jquery', 'redux-js'), time(), true);
     redux_enqueue_style($this->parent, 'redux-field-multi-text-css', ReduxFramework::$_url . 'inc/fields/multi_text/field_multi_text.css', ReduxFramework::$_dir . 'inc/fields/multi_text', array(), time(), false);
     //                wp_enqueue_style(
     //                    'redux-field-multi-text-css',
     //                    ReduxFramework::$_url . 'inc/fields/multi_text/field_multi_text.css',
     //                    time(),
     //                    true
     //                );
 }
开发者ID:venturepact,项目名称:blog,代码行数:19,代码来源:field_multi_text.php

示例5: enqueue

 /**
  * Enqueue Function.
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since       1.0.0
  * @access      public
  * @return      void
  */
 public function enqueue()
 {
     redux_enqueue_style($this->parent, 'redux-field-editor-css', ReduxFramework::$_url . 'inc/fields/editor/field_editor.css', ReduxFramework::$_dir . 'inc/fields/editor', array(), time(), false);
     //                wp_enqueue_style(
     //                    'redux-field-editor-css',
     //                    ReduxFramework::$_url . 'inc/fields/editor/field_editor.css',
     //                    time(),
     //                    true
     //                );
     wp_enqueue_script('redux-field-editor2-js', ReduxFramework::$_url . 'inc/fields/editor/field_editor' . Redux_Functions::isMin() . '.js', array('jquery', 'redux-js'), time(), true);
 }
开发者ID:venturepact,项目名称:blog,代码行数:19,代码来源:field_editor.php

示例6: enqueue

 /**
  * Enqueue Function.
  *
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since       1.0.0
  * @access      public
  * @return      void
  */
 public function enqueue()
 {
     // Set up min files for dev_mode = false.
     $min = Redux_Functions::isMin();
     // Spectrum colour picker
     wp_enqueue_script('redux-spectrum-js', ReduxFramework::$_url . 'assets/js/vendor/spectrum/redux-spectrum' . $min . '.js', array('jquery'), time(), true);
     // Spectrum CSS
     wp_enqueue_style('redux-spectrum-css', ReduxFramework::$_url . 'assets/css/vendor/spectrum/redux-spectrum.css', array(), time(), 'all');
     // Field dependent JS
     wp_enqueue_script('redux-field-color-rgba-js', ReduxFramework::$_url . 'inc/fields/color_rgba/field_color_rgba' . Redux_Functions::isMin() . '.js', array('jquery', 'redux-spectrum-js'), time(), true);
     redux_enqueue_style($this->parent, 'redux-field-color-rgba-css', ReduxFramework::$_url . 'inc/fields/color_rgba/field_color_rgba.css', ReduxFramework::$_dir . 'inc/fields/color_rgba', array(), time(), false);
 }
开发者ID:venturepact,项目名称:blog,代码行数:21,代码来源:field_color_rgba.php

示例7: enqueue

 /**
  * Enqueue Function.
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since       1.0.0
  * @access      public
  * @return      void
  */
 public function enqueue()
 {
     $min = Redux_Functions::isMin();
     wp_enqueue_script('redux-blockUI', $this->extension_url . '/jquery.blockUI' . $min . '.js', array('jquery'), time(), true);
     wp_enqueue_script('redux-field-custom_fonts-js', $this->extension_url . '/field_custom_fonts' . $min . '.js', array('jquery', 'redux-blockUI'), time(), true);
     if (function_exists('redux_enqueue_style')) {
         redux_enqueue_style($this->parent, 'redux-field-custom_fonts-css', $this->extension_url . 'field_custom_fonts.css', $this->extension_dir, array(), time());
     } else {
         wp_enqueue_style('redux-field-custom_fonts-css', $this->extension_url . 'field_custom_fonts.css', time(), true);
     }
     $class = ReduxFramework_extension_custom_fonts::get_instance();
     if (!empty($class->custom_fonts)) {
         wp_enqueue_style('redux-custom_fonts-css', $class->upload_url . "fonts.css", time(), true);
     }
 }
开发者ID:poweronio,项目名称:mbsite,代码行数:23,代码来源:field_custom_fonts.php

示例8: enqueue

 /**
  * Enqueue Function.
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since       1.0.0
  * @access      public
  * @return      void
  */
 public function enqueue()
 {
     wp_enqueue_script('redux-field-background-js', ReduxFramework::$_url . 'inc/fields/background/field_background' . Redux_Functions::isMin() . '.js', array('jquery', 'wp-color-picker', 'select2-js', 'redux-js'), time(), true);
     redux_enqueue_style($this->parent, 'redux-field-background-css', ReduxFramework::$_url . 'inc/fields/background/field_background.css', ReduxFramework::$_dir . 'inc/fields/background', array(), time(), false);
     //                wp_enqueue_style(
     //                    'redux-field-background-css',
     //                    ReduxFramework::$_url . 'inc/fields/background/field_background.css',
     //                    time(),
     //                    true
     //                );
 }
开发者ID:venturepact,项目名称:blog,代码行数:19,代码来源:field_background.php

示例9: enqueue

 /**
  * Enqueue Function.
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since       1.0.0
  * @access      public
  * @return      void
  */
 public function enqueue()
 {
     wp_enqueue_script('redux-field-link-color-js', ReduxFramework::$_url . 'inc/fields/link_color/field_link_color' . Redux_Functions::isMin() . '.js', array('jquery', 'wp-color-picker', 'redux-js'), time(), true);
     redux_enqueue_style($this->parent, 'redux-field-link_color-css', ReduxFramework::$_url . 'inc/fields/link_color/field_link_color.css', ReduxFramework::$_dir . 'inc/fields/link_color', array(), time(), false);
     //                wp_enqueue_style(
     //                    'redux-field-link_color-js',
     //                    ReduxFramework::$_url . 'inc/fields/link_color/field_link_color.css',
     //                    time(),
     //                    true
     //                );
 }
开发者ID:pbhanu1994,项目名称:bhanuprakash,代码行数:19,代码来源:field_link_color.php

示例10: enqueue

 /**
  * Enqueue Function.
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since ReduxFramework 1.0.0
  */
 function enqueue()
 {
     wp_enqueue_script('redux-field-typography-js', ReduxFramework::$_url . 'inc/fields/typography/field_typography' . Redux_Functions::isMin() . '.js', array('jquery', 'wp-color-picker', 'select2-js', 'redux-js'), time(), true);
     wp_localize_script('redux-field-typography-js', 'redux_ajax_script', array('ajaxurl' => admin_url('admin-ajax.php')));
     redux_enqueue_style($this->parent, 'redux-field-typography-css', ReduxFramework::$_url . 'inc/fields/typography/field_typography.css', ReduxFramework::$_dir . 'inc/fields/typography', array(), time(), false);
     //                wp_enqueue_style(
     //                    'redux-field-typography-css',
     //                    ReduxFramework::$_url . 'inc/fields/typography/field_typography.css',
     //                    time(),
     //                    true
     //                );
 }
开发者ID:venturepact,项目名称:blog,代码行数:18,代码来源:field_typography.php

示例11: enqueue

 public function enqueue()
 {
     redux_enqueue_style($this->parent, 'redux-field-section-css', ReduxFramework::$_url . 'inc/fields/section/field_section.css', ReduxFramework::$_dir . 'inc/fields/section', array(), time(), false);
     //                wp_enqueue_style(
     //                    'redux-field-section-css',
     //                    ReduxFramework::$_url . 'inc/fields/section/field_section.css',
     //                    time(),
     //                    true
     //                );
 }
开发者ID:venturepact,项目名称:blog,代码行数:10,代码来源:field_section.php

示例12: enqueue

 /**
  * Enqueue Function.
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since ReduxFramework 3.1.8
  */
 function enqueue()
 {
     $min = Redux_Functions::isMin();
     wp_enqueue_style('redux-nouislider-css', ReduxFramework::$_url . 'inc/fields/slider/vendor/nouislider/redux.jquery.nouislider.css', array(), filemtime(ReduxFramework::$_dir . 'inc/fields/slider/vendor/nouislider/redux.jquery.nouislider.css'), 'all');
     wp_register_script('redux-nouislider-js', ReduxFramework::$_url . 'inc/fields/slider/vendor/nouislider/redux.jquery.nouislider' . $min . '.js', array('jquery'), '5.0.0', true);
     wp_enqueue_script('redux-field-slider-js', ReduxFramework::$_url . 'inc/fields/slider/field_slider' . $min . '.js', array('jquery', 'redux-nouislider-js', 'redux-js', 'select2-js'), time(), true);
     redux_enqueue_style($this->parent, 'redux-field-slider-css', ReduxFramework::$_url . 'inc/fields/slider/field_slider.css', ReduxFramework::$_dir . 'inc/fields/slider', array(), time(), false);
     //                wp_enqueue_style(
     //                    'redux-field-slider-css',
     //                    ReduxFramework::$_url . 'inc/fields/slider/field_slider.css',
     //                    time(),
     //                    true
     //                );
 }
开发者ID:venturepact,项目名称:blog,代码行数:20,代码来源:field_slider.php

示例13: _enqueue

 /**
  * Enqueue CSS/JS for options page
  *
  * @since       1.0.0
  * @access      public
  * @global      $wp_styles
  * @return      void
  */
 public function _enqueue()
 {
     global $wp_styles;
     Redux_Functions::$_parent = $this;
     $min = Redux_Functions::isMin();
     // Select2 business.  Fields:  Background, Border, Dimensions, Select, Slider, Typography
     $field_arr = array('background', 'border', 'dimensions', 'select', 'select_image', 'slider', 'spacing', 'typography', 'color_scheme', 'css_layout');
     if (Redux_Helpers::isFieldInUseByType($this->fields, $field_arr)) {
         // select2 CSS
         wp_register_style('select2-css', self::$_url . 'assets/js/vendor/select2/select2.css', array(), filemtime(self::$_dir . 'assets/js/vendor/select2/select2.css'), 'all');
         wp_enqueue_style('select2-css');
         // JS
         wp_register_script('redux-select2-sortable-js', self::$_url . 'assets/js/vendor/redux.select2.sortable' . $min . '.js', array('jquery'), filemtime(self::$_dir . 'assets/js/vendor/redux.select2.sortable' . $min . '.js'), true);
         wp_register_script('select2-js', self::$_url . 'assets/js/vendor/select2/select2.min.js', array('jquery', 'redux-select2-sortable-js'), filemtime(self::$_dir . 'assets/js/vendor/select2/select2.min.js'), true);
         wp_enqueue_script('select2-js');
     }
     redux_enqueue_style($this, 'redux-admin-css', self::$_url . 'assets/css/redux-admin.css', self::$_dir . 'assets/css/', array('farbtastic'), time(), 'all');
     //                wp_enqueue_style(
     //                    'redux-css',
     //                    self::$_url . 'assets/css/redux.css',
     //                    array( 'farbtastic' ),
     //                    filemtime( self::$_dir . 'assets/css/redux.css' ),
     //                    'all'
     //                );
     //
     //                wp_register_style(
     //                    'admin-css',
     //                    self::$_url . 'assets/css/admin.css',
     //                    array( 'farbtastic' ),
     //                    filemtime( self::$_dir . 'assets/css/admin.css' ),
     //                    'all'
     //                );
     wp_register_style('redux-elusive-icon', self::$_url . 'assets/css/vendor/elusive-icons/elusive-webfont.css', array(), filemtime(self::$_dir . 'assets/css/vendor/elusive-icons/elusive-webfont.css'), 'all');
     wp_register_style('redux-elusive-icon-ie7', self::$_url . 'assets/css/vendor/elusive-icons/elusive-webfont-ie7.css', array(), filemtime(self::$_dir . 'assets/css/vendor/elusive-icons/elusive-webfont-ie7.css'), 'all');
     wp_register_style('qtip-css', self::$_url . 'assets/css/vendor/qtip/jquery.qtip.css', array(), filemtime(self::$_dir . 'assets/css/vendor/qtip/jquery.qtip.css'), 'all');
     $wp_styles->add_data('redux-elusive-icon-ie7', 'conditional', 'lte IE 7');
     /**
      * jQuery UI stylesheet src
      * filter 'redux/page/{opt_name}/enqueue/jquery-ui-css'
      *
      * @param string  bundled stylesheet src
      */
     wp_register_style('jquery-ui-css', apply_filters("redux/page/{$this->args['opt_name']}/enqueue/jquery-ui-css", self::$_url . 'assets/css/vendor/jquery-ui-bootstrap/jquery-ui-1.10.0.custom.css'), '', filemtime(self::$_dir . 'assets/css/vendor/jquery-ui-bootstrap/jquery-ui-1.10.0.custom.css'), 'all');
     wp_enqueue_style('jquery-ui-css');
     wp_enqueue_style('redux-lte-ie8');
     wp_enqueue_style('qtip-css');
     wp_enqueue_style('redux-elusive-icon');
     wp_enqueue_style('redux-elusive-icon-ie7');
     if (is_rtl()) {
         wp_register_style('redux-rtl-css', self::$_url . 'assets/css/rtl.css', array('redux-css'), filemtime(self::$_dir . 'assets/css/rtl.css'), 'all');
         wp_enqueue_style('redux-rtl-css');
     }
     wp_enqueue_script('jquery');
     wp_enqueue_script('jquery-ui-core');
     wp_enqueue_script('jquery-ui-dialog');
     // Load jQuery sortable for slides, sorter, sortable and group
     if (Redux_Helpers::isFieldInUseByType($this->fields, array('slides', 'sorter', 'sortable', 'group'))) {
         wp_enqueue_script('jquery-ui-sortable');
         wp_enqueue_style('jquery-ui-sortable');
     }
     // Load jQuery UI Datepicker for date
     if (Redux_Helpers::isFieldInUseByType($this->fields, array('date', 'datetime'))) {
         wp_enqueue_script('jquery-ui-datepicker');
     }
     // Load jQuery UI Accordion for slides and group
     if (Redux_Helpers::isFieldInUseByType($this->fields, array('slides', 'group'))) {
         wp_enqueue_script('jquery-ui-accordion');
     }
     // Load wp-color-picker for color, color_gradient, link_color, border, background and typography
     if (Redux_Helpers::isFieldInUseByType($this->fields, array('background', 'color', 'color_gradient', 'link_color', 'border', 'typography', 'css_layout'))) {
         redux_enqueue_style($this, 'redux-color-picker-css', ReduxFramework::$_url . 'assets/css/color-picker/color-picker.css', ReduxFramework::$_dir . 'assets/css/color-picker', array(), time(), false);
         //                    wp_enqueue_style(
         //                        'redux-color-picker-css',
         //                        self::$_url . 'assets/css/color-picker/color-picker.css',
         //                        array( 'wp-color-picker' ),
         //                        filemtime( self::$_dir . 'assets/css/color-picker/color-picker.css' ),
         //                        'all'
         //                    );
         wp_enqueue_style('color-picker-css');
         wp_enqueue_script('wp-color-picker');
         wp_enqueue_style('wp-color-picker');
     }
     if (function_exists('wp_enqueue_media')) {
         wp_enqueue_media();
     } else {
         wp_enqueue_script('media-upload');
     }
     add_thickbox();
     wp_register_script('qtip-js', self::$_url . 'assets/js/vendor/qtip/jquery.qtip.js', array('jquery'), '2.2.0', true);
     wp_register_script('serializeForm-js', self::$_url . 'assets/js/vendor/jquery.serializeForm.js', array('jquery'), '1.0.0', true);
     // Embed the compress version unless in dev mode
     // dev_mode = true
//.........这里部分代码省略.........
开发者ID:virendrayadav,项目名称:vinayakabags,代码行数:101,代码来源:framework.php

示例14: enqueue

 /**
  * Enqueue Function.
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since ReduxFramework 1.0.0
  */
 function enqueue()
 {
     $min = Redux_Functions::isMin();
     wp_enqueue_script('redux-field-border-js', ReduxFramework::$_url . 'inc/fields/border/field_border' . $min . '.js', array('jquery', 'select2-js', 'wp-color-picker', 'redux-js'), time(), true);
     redux_enqueue_style($this->parent, 'redux-field-border-css', ReduxFramework::$_url . 'inc/fields/border/field_border.css', ReduxFramework::$_dir . 'inc/fields/border', array(), time(), false);
     //                wp_enqueue_style(
     //                    'redux-field-border-css',
     //                    ReduxFramework::$_url . 'inc/fields/border/field_border.css',
     //                    time(),
     //                    true
     //                );
 }
开发者ID:venturepact,项目名称:blog,代码行数:18,代码来源:field_border.php

示例15: enqueue

 /**
  * Enqueue Function.
  * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
  *
  * @since ReduxFramework 3.0.0
  */
 function enqueue()
 {
     wp_enqueue_script('redux-field-spinner-custom-js', ReduxFramework::$_url . 'inc/fields/spinner/vendor/spinner_custom.js', array('jquery'), time(), true);
     wp_enqueue_script('redux-field-spinner-js', ReduxFramework::$_url . 'inc/fields/spinner/field_spinner' . Redux_Functions::isMin() . '.js', array('jquery', 'redux-field-spinner-custom-js', 'jquery-ui-core', 'jquery-ui-dialog', 'redux-js'), time(), true);
     redux_enqueue_style($this->parent, 'redux-field-spinner-css', ReduxFramework::$_url . 'inc/fields/spinner/field_spinner.css', ReduxFramework::$_dir . 'inc/fields/spinner', array(), time(), false);
     //                wp_enqueue_style(
     //                    'redux-field-spinner-css',
     //                    ReduxFramework::$_url . 'inc/fields/spinner/field_spinner.css',
     //                    time(),
     //                    true
     //                );
 }
开发者ID:venturepact,项目名称:blog,代码行数:18,代码来源:field_spinner.php


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