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


PHP Redux_Functions::isMin方法代码示例

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


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

示例1: 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);
     if ($this->parent->args['dev_mode']) {
         wp_enqueue_style('redux-field-multi-text-css', ReduxFramework::$_url . 'inc/fields/multi_text/field_multi_text.css', array(), time(), true);
     }
 }
开发者ID:LuisEnVilla,项目名称:viajes400,代码行数:15,代码来源:field_multi_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);
     if ($this->parent->args['dev_mode']) {
         wp_enqueue_style('redux-field-switch-css', ReduxFramework::$_url . 'inc/fields/switch/field_switch.css', array(), time(), 'all');
     }
 }
开发者ID:siiiiilvio,项目名称:kadcnc,代码行数:13,代码来源: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()
 {
     if ($this->parent->args['dev_mode']) {
         wp_enqueue_style('redux-field-editor-css', ReduxFramework::$_url . 'inc/fields/editor/field_editor.css', array(), time(), 'all');
     }
     wp_enqueue_script('redux-field-editor-js', ReduxFramework::$_url . 'inc/fields/editor/field_editor' . Redux_Functions::isMin() . '.js', array('jquery', 'redux-js'), time(), true);
 }
开发者ID:junrillg,项目名称:platystarter,代码行数:15,代码来源:field_editor.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()
 {
     if ($this->parent->args['dev_mode']) {
         wp_enqueue_style('redux-field-date-css', ReduxFramework::$_url . 'inc/fields/date/field_date.css', array(), time(), 'all');
     }
     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:Sibzsolutions,项目名称:Schiffrinpa,代码行数:15,代码来源:field_date.php

示例5: init

 public function init()
 {
     $this->min = Redux_Functions::isMin();
     $this->timestamp = ReduxFramework::$_version;
     if ($this->parent->args['dev_mode']) {
         $this->timestamp .= '.' . time();
     }
     $this->register_styles();
     $this->register_scripts();
     add_thickbox();
     $this->enqueue_fields();
     $this->set_localized_data();
     /**
      * action 'redux-enqueue-{opt_name}'
      *
      * @deprecated
      *
      * @param  object $this ReduxFramework
      */
     do_action("redux-enqueue-{$this->parent->args['opt_name']}", $this->parent);
     // REMOVE
     /**
      * action 'redux/page/{opt_name}/enqueue'
      */
     do_action("redux/page/{$this->parent->args['opt_name']}/enqueue");
 }
开发者ID:lenguyenitc,项目名称:donations,代码行数:26,代码来源:enqueue.php

示例6: get_url

 public static function get_url($handle)
 {
     if ($handle == 'select2-js' && file_exists(self::$dir . 'vendor/select2/select2' . Redux_Functions::isMin() . '.js')) {
         return self::$url . 'vendor/select2/select2.js';
     } elseif ($handle == 'select2-css' && file_exists(self::$dir . 'vendor/select2/select2.css')) {
         return self::$url . 'vendor/select2/select2.css';
     }
 }
开发者ID:neruub,项目名称:shop_sda,代码行数:8,代码来源:class.vendor-url.php

示例7: get_url

 public static function get_url($handle)
 {
     if ($handle == 'select2-js' && file_exists(self::$dir . 'vendor/select2/select2' . Redux_Functions::isMin() . '.js')) {
         return get_template_directory_uri() . '/themeoptions/options/extensions/vendor_support/vendor/select2/select2.js';
     } elseif ($handle == 'select2-css' && file_exists(self::$dir . 'vendor/select2/select2.css')) {
         return get_template_directory_uri() . '/themeoptions/options_assets/extensions/vendor_support/vendor/select2/select2.css';
     }
 }
开发者ID:pcuervo,项目名称:od4d,代码行数:8,代码来源:class.vendor-url.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()
 {
     $min = Redux_Functions::isMin();
     wp_enqueue_script('redux-field-palette-js', ReduxFramework::$_url . 'inc/fields/palette/field_palette' . $min . '.js', array('jquery', 'redux-js', 'jquery-ui-button', 'jquery-ui-core'), time(), true);
     if ($this->parent->args['dev_mode']) {
         wp_enqueue_style('redux-field-palette-css', ReduxFramework::$_url . 'inc/fields/palette/field_palette.css', array(), time(), 'all');
     }
 }
开发者ID:seokafasi,项目名称:redux-framework,代码行数:16,代码来源:field_palette.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-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

示例10: 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

示例11: 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

示例12: get_url

 public static function get_url($handle)
 {
     $min = Redux_Functions::isMin();
     $ace = self::$dir . 'vendor/ace_editor/ace.js';
     $s2js = self::$dir . 'vendor/select2/select2' . $min . '.js';
     $s2css = self::$dir . 'vendor/select2/select2.css';
     if ($handle == 'ace-editor-js' && file_exists($ace)) {
         return self::$url . 'vendor/ace_editor/ace.js';
     } elseif ($handle == 'select2-js' && file_exists($s2js)) {
         return self::$url . 'vendor/select2/select2.js';
     } elseif ($handle == 'select2-css' && file_exists($s2css)) {
         return self::$url . 'vendor/select2/select2.css';
     }
 }
开发者ID:futr3,项目名称:callto,代码行数:14,代码来源:class.vendor-url.php

示例13: 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('nouislider-css', ReduxFramework::$_url . 'inc/fields/slider/vendor/nouislider/jquery.nouislider.css', array(), filemtime(ReduxFramework::$_dir . 'inc/fields/slider/vendor/nouislider/jquery.nouislider.css'), 'all');
     wp_register_script('nouislider-js', ReduxFramework::$_url . 'inc/fields/slider/vendor/nouislider/jquery.nouislider' . $min . '.js', array('jquery'), '5.0.0', true);
     wp_enqueue_script('redux-field-slider-js', $this->extension_url . 'field_customizer_slider.js', array('jquery', 'nouislider-js'), time(), true);
     wp_enqueue_style('redux-field-slider-css', $this->extension_url . 'field_customizer_slider.css', time(), true);
     wp_enqueue_script('redux-field-select-js', ReduxFramework::$_url . 'inc/fields/select/field_select.js', array('jquery', 'select2-js'), time(), true);
     wp_enqueue_style('redux-redux-field-select-css', ReduxFramework::$_url . 'inc/fields/select/field_select.css', time(), true);
 }
开发者ID:pwzCypher,项目名称:wp-push,代码行数:15,代码来源:field_customizer_slider.php

示例14: enqueue

 public function enqueue()
 {
     wp_enqueue_script('redux-field-import-export-js', ReduxFramework::$_url . 'assets/js/import_export/import_export' . Redux_Functions::isMin() . '.js', array('jquery', 'redux-js'), time(), true);
     redux_enqueue_style($this->parent, 'redux-field-import-export-css', ReduxFramework::$_url . 'assets/css/import_export/import_export.css', ReduxFramework::$_dir . 'assets/css/import_export', array(), time(), false);
     //                wp_enqueue_style(
     //                    'redux-field-import-export-css',
     //                    ReduxFramework::$_url . 'assets/css/import_export/import_export.css',
     //                    time(),
     //                    true
     //                );
 }
开发者ID:pbhanu1994,项目名称:bhanuprakash,代码行数:11,代码来源:import_export.php

示例15: 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()
 {
     if ($this->parent->args['dev_mode']) {
         if (!wp_style_is('redux-field-ace-editor-css')) {
             wp_enqueue_style('redux-field-ace-editor-css', ReduxFramework::$_url . 'inc/fields/ace_editor/field_ace_editor.css', array(), time(), 'all');
         }
     }
     // @Alice Crumb: ace.js
     if (!wp_script_is('ace-editor-js')) {
         Redux_CDN::enqueue_script('ace-editor-js', 'https://cdnjs.cloudflare.com/ajax/libs/ace/1.1.9/ace.js', array('jquery'), '1.1.9', true);
     }
     if (!wp_script_is('redux-field-ace-editor-js')) {
         wp_enqueue_script('redux-field-ace-editor-js', ReduxFramework::$_url . 'inc/fields/ace_editor/field_ace_editor' . Redux_Functions::isMin() . '.js', array('jquery', 'ace-editor-js', 'redux-js'), time(), true);
     }
 }
开发者ID:Nayami,项目名称:wpang,代码行数:23,代码来源:field_ace_editor.php


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