/**
  * 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'
     //                            );
     //                        }
     //                    }
     //                }
 }
예제 #2
0
 /**
  * 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();
 }
 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();
 }
예제 #4
0
 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')));
 }
 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();
 }