Exemplo n.º 1
0
function send_upload_image()
{
    $response = array('msg' => mi_get_upload_button($_POST['post_id'], $_POST['input_id']));
    echo json_encode($response);
    exit;
}
Exemplo n.º 2
0
    protected function file()
    {
        $html .= '
			<ul class="upload-field-view-' . $this->field->name . $this->slug . ' upload-sortable">
		';
        $html .= $this->value ? mi_get_upload_button($this->value, $this->field->name . $this->slug) : '';
        $html .= '
			</ul>
			<input type="hidden" name="' . $this->id . $this->slug . '" id="' . $this->field->name . $this->slug . '" value="' . esc_attr($this->value) . '" class="upload_field">
			<input id="' . $this->field->name . $this->slug . '_button" type="button" class="button button_upload" value="Biblioteca" />
		';
        return $html;
    }