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