admin_enqueue_scripts() публичный статический Метод

Enqueue scripts and styles
public static admin_enqueue_scripts ( )
Пример #1
0
 /**
  * Enqueue scripts and styles.
  */
 static function admin_enqueue_scripts()
 {
     // Enqueue same scripts and styles as for file field
     parent::admin_enqueue_scripts();
     wp_enqueue_style('rwmb-image', RWMB_CSS_URL . 'image.css', array(), RWMB_VER);
     wp_enqueue_script('rwmb-image', RWMB_JS_URL . 'image.js', array('jquery-ui-sortable'), RWMB_VER, true);
 }
 /**
  * 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-file-advanced', RWMB_JS_URL . 'file-advanced.js', array('jquery', 'underscore'), RWMB_VER, true);
 }
Пример #3
0
 /**
  * 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-file-advanced', RWMB_JS_URL . 'file-advanced.js', array('jquery', 'underscore'), RWMB_VER, true);
     wp_localize_script('rwmb-file-advanced', 'rwmbFileAdvanced', array('frameTitle' => __('Select Files', 'rwmb')));
 }
Пример #4
0
 /**
  * Enqueue scripts and styles.
  */
 public static function admin_enqueue_scripts()
 {
     parent::admin_enqueue_scripts();
     wp_enqueue_style('rwmb-image', RWMB_CSS_URL . 'image.css', array(), RWMB_VER);
 }
Пример #5
0
 /**
  * Enqueue scripts and styles
  *
  * @return void
  */
 static function admin_enqueue_scripts()
 {
     parent::admin_enqueue_scripts();
     wp_enqueue_script('rwmb-file-advanced', RWMB_JS_URL . 'file-advanced.js', array('jquery', 'wp-ajax-response'), RWMB_VER, true);
 }