/**
 * Get the admin panel URL for editing a venue.
 *
 * @since 1.0.0
 */
function get_audiotheme_venue_edit_link($admin_url, $post_id)
{
    if ('audiotheme_venue' === get_post_type($post_id)) {
        $args = array('action' => 'edit', 'venue_id' => $post_id);
        $admin_url = get_audiotheme_venue_admin_url($args);
    }
    return $admin_url;
}
<div class="wrap">
	<div id="icon-audiotheme-venues" class="icon32"><br></div>
	<h2>
		<?php 
echo $post_type_object->labels->name;
if (current_user_can($post_type_object->cap->create_posts)) {
    printf(' <a class="add-new-h2" href="%s">%s</a>', esc_url(get_audiotheme_venue_admin_url()), esc_html($post_type_object->labels->add_new));
}
if (!empty($_REQUEST['s'])) {
    printf(' <span class="subtitle">' . __('Search results for &#8220;%s&#8221;', 'audiotheme') . '</span>', get_search_query());
}
?>
	</h2>

	<?php 
if (isset($_REQUEST['deleted']) || isset($_REQUEST['message']) || isset($_REQUEST['updated'])) {
    $notices = array();
    ?>
		<div id="message" class="updated">
			<p>
				<?php 
    $messages = array(1 => __('Venue added.', 'audiotheme'));
    if (!empty($_REQUEST['message']) && isset($messages[$_REQUEST['message']])) {
        $notices[] = $messages[$_GET['message']];
    }
    if (isset($_REQUEST['updated']) && (int) $_REQUEST['updated']) {
        $notices[] = sprintf(_n('%s venue updated.', '%s venues updated.', $_REQUEST['updated']), number_format_i18n($_REQUEST['updated']));
        unset($_REQUEST['updated']);
    }
    if (isset($_REQUEST['deleted']) && (int) $_REQUEST['deleted']) {
        $notices[] = sprintf(_n('Venue permanently deleted.', '%s venues permanently deleted.', $_REQUEST['deleted']), number_format_i18n($_REQUEST['deleted']));
<div class="wrap columns-2" id="venue-edit">
	<div id="icon-audiotheme-venues" class="icon32"><br></div>
	<h1><?php 
if ('edit' === $action) {
    printf('%s <a class="page-title-action add-new-h2" href="%s">%s</a>', $post_type_object->labels->edit_item, esc_url(get_audiotheme_venue_admin_url()), esc_html($post_type_object->labels->add_new));
} else {
    echo $post_type_object->labels->add_new_item;
}
?>
</h1>

	<?php 
if (isset($_REQUEST['message'])) {
    $notices = array();
    ?>
		<div id="message" class="updated">
			<p>
				<?php 
    $messages = array(1 => __('Venue added.', 'audiotheme'), 2 => __('Venue updated.', 'audiotheme'));
    if (!empty($_REQUEST['message']) && isset($messages[$_REQUEST['message']])) {
        $notices[] = $messages[$_REQUEST['message']];
    }
    if ($notices) {
        echo join(' ', $notices);
    }
    unset($notices);
    $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
    ?>
			</p>
		</div>
	<?php