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


PHP reduxCoreEnqueue::init方法代码示例

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


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

示例1: _enqueue

 /**
  * Enqueue CSS/JS for options page
  *
  * @since       1.0.0
  * @access      public
  * @global      $wp_styles
  * @return      void
  */
 public function _enqueue()
 {
     include_once 'core/enqueue.php';
     $enqueue = new reduxCoreEnqueue($this);
     $enqueue->init();
     //                if ($this->args['sass']['enabled']) {
     //                    $ret = reduxSassCompiler::compile_sass($this);
     //
     //                    if ($ret == reduxSassCompiler::SASS_FILE_COMPILE || $ret == reduxSassCompiler::SASS_NO_COMPILE) {
     //                        if (file_exists(ReduxFramework::$_upload_dir . $this->args['opt_name'] .  '-redux.css')) {
     //                            wp_enqueue_style(
     //                                'redux-fields-css',
     //                                ReduxFramework::$_upload_url . $this->args['opt_name'] .  '-redux.css',
     //                                array(),
     //                                $timestamp,
     //                                'all'
     //                            );
     //                        }
     //                    }
     //                }
 }
开发者ID:aguerojahannes,项目名称:aguerojahannes.com,代码行数:29,代码来源:framework.php

示例2: _enqueue

 /**
  * Enqueue CSS/JS for options page
  *
  * @since       1.0.0
  * @access      public
  * @global      $wp_styles
  * @return      void
  */
 public function _enqueue()
 {
     require_once 'core/enqueue.php';
     $enqueue = new reduxCoreEnqueue($this);
     $enqueue->init();
 }
开发者ID:BearsTheme,项目名称:leonard,代码行数:14,代码来源:framework.php

示例3: reduxCoreEnqueue

 function enqueue_controls_css()
 {
     include_once ReduxFramework::$_dir . 'core/enqueue.php';
     $enqueue = new reduxCoreEnqueue($this->parent);
     $enqueue->get_warnings_and_errors_array();
     $enqueue->init();
     wp_enqueue_style('redux-extension-advanced-customizer', $this->_extension_url . 'extension_customizer.css', '', time());
     wp_enqueue_script('redux-extension-customizer', $this->_extension_url . 'extension_customizer.js', array('jquery'), time(), ReduxFramework_extension_customizer::$version, true);
     wp_localize_script('redux-extension-customizer', 'redux_customizer', array('body_class' => sanitize_html_class('admin-color-' . get_user_option('admin_color'), 'fresh')));
     //require_once( ABSPATH . '/wp-includes/class-wp-editor.php' );
     //_WP_Editors::enqueue_scripts();
     //_WP_Editors::editor_js();
 }
开发者ID:JonathanCosta,项目名称:redux-framework,代码行数:13,代码来源:extension_customizer.php

示例4: reduxCoreEnqueue

 function enqueue_controls_css()
 {
     include_once ReduxFramework::$_dir . 'core/enqueue.php';
     $enqueue = new reduxCoreEnqueue($this->parent);
     $enqueue->get_warnings_and_errors_array();
     $enqueue->init();
     wp_enqueue_style('redux-extension-advanced-customizer', $this->_extension_url . 'extension_customizer.css', '', time());
     wp_enqueue_script('redux-extension-customizer', $this->_extension_url . 'extension_customizer' . Redux_Functions::isMin() . '.js', array('jquery', 'redux-js'), ReduxFramework_extension_customizer::$version, true);
     wp_localize_script('redux-extension-customizer', 'redux_customizer', array('body_class' => sanitize_html_class('admin-color-' . get_user_option('admin_color'), 'fresh')));
 }
开发者ID:rku4er,项目名称:foxland-wp,代码行数:10,代码来源:extension_customizer.php

示例5: reduxCoreEnqueue

 function enqueue_controls_css()
 {
     include_once ReduxFramework::$_dir . 'core/enqueue.php';
     $enqueue = new reduxCoreEnqueue($this->parent);
     $enqueue->get_warnings_and_errors_array();
     $enqueue->init();
     wp_enqueue_style('redux-extension-advanced-customizer', $this->_extension_url . 'extension_advanced_customizer.css');
     wp_enqueue_script('redux-extension-advanced-customizer', $this->_extension_url . 'extension_advanced_customizer.js', array('jquery'), ReduxFramework_extension_advanced_customizer::$version . '4', true);
     require_once ABSPATH . '/wp-includes/class-wp-editor.php';
     _WP_Editors::enqueue_scripts();
     _WP_Editors::editor_js();
 }
开发者ID:jeffreysbrother,项目名称:WordPress-integration,代码行数:12,代码来源:extension_advanced_customizer.php


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