當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。