RWMB_Image_Field::file_html PHP Method

file_html() public static method

Get HTML markup for ONE uploaded image
public static file_html ( integer $image ) : string
$image integer Image ID
return string
    public static function file_html($image)
    {
        list($src) = wp_get_attachment_image_src($image, 'thumbnail');
        return sprintf('<li id="item_%s">
				<img src="%s">
				<div class="rwmb-image-bar">
					<a href="%s" target="_blank"><span class="dashicons dashicons-edit"></span></a> |
					<a class="rwmb-delete-file" href="#" data-attachment_id="%s">&times;</a>
				</div>
			</li>', $image, $src, get_edit_post_link($image), $image);
    }