Inheritance: extends RWMB_Field
Example #1
0
 /**
  * Normalize parameters for field
  *
  * @param array $field
  *
  * @return array
  */
 static function normalize($field)
 {
     $field = parent::normalize($field);
     $field['mime_type'] = 'image';
     return $field;
 }
Example #2
0
 /**
  * Template for media item
  */
 public static function print_templates()
 {
     parent::print_templates();
     require_once RWMB_INC_DIR . 'templates/upload.php';
 }
 /**
  * Template for media item
  * @return void
  */
 public static function print_templates()
 {
     parent::print_templates();
     require_once RWMB_INC_DIR . 'templates/image-advanced.php';
 }