/** * Get field HTML * * @param mixed $meta * @param array $field * * @return string */ public static function html($meta, $field) { $i18n_title = apply_filters('rwmb_thickbox_image_upload_string', _x('Upload Images', 'image upload', 'meta-box'), $field); // Uploaded images $html = parent::get_uploaded_images($meta, $field); // Show form upload $html .= "<a href='#' class='button mashsb-rwmb-thickbox-upload' data-field_id='{$field['id']}'>{$i18n_title}</a>"; return $html; }
/** * Get uploaded file information. * * @param int $file_id Attachment image ID (post ID). Required. * @param array $args Array of arguments (for size). * @return array|bool False if file not found. Array of image info on success */ static function file_info($file_id, $args = array()) { return MASHSB_RWMB_Image_Field::file_info($file_id, $args); }