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