本文整理汇总了PHP中RWMB_Image_Field::admin_enqueue_scripts方法的典型用法代码示例。如果您正苦于以下问题:PHP RWMB_Image_Field::admin_enqueue_scripts方法的具体用法?PHP RWMB_Image_Field::admin_enqueue_scripts怎么用?PHP RWMB_Image_Field::admin_enqueue_scripts使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RWMB_Image_Field
的用法示例。
在下文中一共展示了RWMB_Image_Field::admin_enqueue_scripts方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/**
* Enqueue scripts and styles
*
* @return void
*/
static function admin_enqueue_scripts()
{
parent::admin_enqueue_scripts();
// Make sure scripts for new media uploader in WordPress 3.5 is enqueued
wp_enqueue_media();
wp_enqueue_script('rwmb-image-advanced', RWMB_JS_URL . 'image-advanced.js', array('jquery', 'underscore'), RWMB_VER, true);
}
示例2: array
/**
* Enqueue scripts and styles
*
* @return void
*/
static function admin_enqueue_scripts()
{
parent::admin_enqueue_scripts();
add_thickbox();
wp_enqueue_script('media-upload');
wp_enqueue_script('rwmb-thickbox-image', RWMB_JS_URL . 'thickbox-image.js', array('jquery'), RWMB_VER, true);
}
示例3: array
/**
* Enqueue scripts and styles
*
* @return void
*/
static function admin_enqueue_scripts()
{
// Enqueue same scripts and styles as for file field
parent::admin_enqueue_scripts();
wp_enqueue_style('rwmb-plupload-image', RWMB_CSS_URL . 'plupload-image.css', array('wp-admin'), RWMB_VER);
wp_enqueue_script('rwmb-plupload-image', RWMB_JS_URL . 'plupload-image.js', array('jquery-ui-sortable', 'wp-ajax-response', 'plupload-all'), RWMB_VER, true);
wp_localize_script('rwmb-plupload-image', 'RWMB', array('url' => RWMB_URL));
}
示例4: array
/**
* Enqueue scripts and styles
*
* @return void
*/
static function admin_enqueue_scripts()
{
parent::admin_enqueue_scripts();
// Make sure scripts for new media uploader in WordPress 3.5 is enqueued
wp_enqueue_media();
wp_enqueue_script('rwmb-image-advanced', RWMB_JS_URL . 'image-advanced.js', array('jquery', 'underscore'), RWMB_VER, true);
wp_localize_script('rwmb-image-advanced', 'rwmbImageAdvanced', array('frameTitle' => __('Select Images', 'rwmb')));
}
示例5: array
/**
* Enqueue scripts and styles
*
* @return void
*/
static function admin_enqueue_scripts()
{
// Enqueue same scripts and styles as for file field
parent::admin_enqueue_scripts();
wp_enqueue_style('rwmb-plupload-image', RWMB_CSS_URL . 'plupload-image.css', array('wp-admin'), RWMB_VER);
wp_enqueue_script('rwmb-plupload-image', RWMB_JS_URL . 'plupload-image.js', array('jquery-ui-sortable', 'wp-ajax-response', 'plupload-all'), RWMB_VER, true);
wp_localize_script('rwmb-plupload-image', 'RWMB', array('url' => RWMB_URL));
wp_localize_script('rwmb-plupload-image', 'rwmb_plupload_defaults', array('runtimes' => 'html5,silverlight,flash,html4', 'file_data_name' => 'async-upload', 'multiple_queues' => true, 'max_file_size' => wp_max_upload_size() . 'b', 'url' => admin_url('admin-ajax.php'), 'flash_swf_url' => includes_url('js/plupload/plupload.flash.swf'), 'silverlight_xap_url' => includes_url('js/plupload/plupload.silverlight.xap'), 'filters' => array(array('title' => _x('Allowed Image Files', 'image upload', 'rwmb'), 'extensions' => 'jpg,jpeg,gif,png')), 'multipart' => true, 'urlstream_upload' => true));
}
示例6: array
/**
* Enqueue scripts and styles
*
* @return void
*/
static function admin_enqueue_scripts()
{
parent::admin_enqueue_scripts();
wp_enqueue_script('rwmb-image-advanced', RWMB_JS_URL . 'image-advanced.js', array('jquery'), RWMB_VER, true);
}
示例7: array
/**
* Enqueue scripts and styles
*
* @return void
*/
static function admin_enqueue_scripts()
{
parent::admin_enqueue_scripts();
// Make sure scripts for new media uploader in WordPress 3.5 is enqueued
wp_enqueue_media();
wp_enqueue_script('rwmb-image-advanced-mk2', PRESSCORE_EXTENSIONS_URI . '/custom-meta-boxes/js/media.js', array('jquery'), RWMB_VER, true);
wp_enqueue_style('rwmb-image-advanced-mk2-style', PRESSCORE_EXTENSIONS_URI . '/custom-meta-boxes/css/advanced-mk2.css', RWMB_VER);
}