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


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怎么用?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);
 }
开发者ID:Ninetheme,项目名称:crossfit813,代码行数:12,代码来源:image-advanced.php

示例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);
 }
开发者ID:acconway,项目名称:meta-box,代码行数:12,代码来源:thickbox-image.php

示例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));
 }
开发者ID:thonysmith,项目名称:LearnPress,代码行数:13,代码来源:plupload-image.php

示例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')));
 }
开发者ID:davidHuanghw,项目名称:david_blog,代码行数:13,代码来源:image-advanced.php

示例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));
 }
开发者ID:James-Driscoll,项目名称:ColinSandersPhotography,代码行数:14,代码来源:plupload-image.php

示例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);
 }
开发者ID:abdulhadikaryana,项目名称:kebudayaan,代码行数:10,代码来源:image-advanced.php

示例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);
 }
开发者ID:proj-2014,项目名称:vlan247-test-wp,代码行数:13,代码来源:metabox-fields.php


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