<?php

/**
* Provide a admin area view for the plugin
*
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link       http://www.exapartners.com/
* @since      1.0.0
*
* @package    Esi_Management
* @subpackage Esi_Management/admin/partials
*/
global $wpdb;

$item = esi_get_new( $id );

add_thickbox();
?>

<div class="wrap">
    <h1><?= $item->title ?>  <a href="<?php echo admin_url( 'admin.php?page=esi-management-news&action=edit&id='.$item->id ); ?>" class="add-new-h2"><?php _e( 'Edit', 'esi' ); ?></a></h1>
    <h3><?= $item->entity; ?> - <?= $item->region; ?></h3>


    <p>
        <?= $item->description; ?>
    </p>
    <h3>entity URL</h3>

    <p>
        <a href="<?= $item->entity_url; ?>" target="_blank"><?= $item->entity; ?></a>
    </p>
    <h3>Media</h3>

    <p>
        <?= $item->media_name; ?><br />
        <a href="<?= $item->media_url; ?>" target="_blank"><?= $item->media_url; ?></a>
    </p>
</div>
