本文整理汇总了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);
}
}
示例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');
}
}
示例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);
}
示例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);
}
示例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");
}
示例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';
}
}
示例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';
}
}
示例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');
}
}
示例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
// );
}
示例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);
}
示例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
// );
}
示例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';
}
}
示例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);
}
示例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
// );
}
示例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);
}
}