function circa_ee_venue_city_state($VNU_ID = 0, $echo = TRUE)
{
    EE_Registry::instance()->load_helper('Venue_View');
    $venue = EEH_Venue_View::get_venue($VNU_ID);
    $city = $venue->city() != 'Unknown' ? $venue->city() : '';
    $state = $venue->state_name() != 'Unknown' ? $venue->state_name() : '';
    if ($echo) {
        echo '<div class="ee_city_state">' . $city . '&nbsp;<span class="ee_state">' . $state . '</span></div>';
        return '';
    }
    return $city . $state;
}
 /**
  * 	display_venue
  *
  *  @access 	public
  *  @return 	bool
  */
 public static function display_venue()
 {
     EE_Registry::instance()->load_helper('Venue_View');
     $config = EE_Registry::instance()->CFG->template_settings->EED_Events_Archive;
     return isset($config->display_venue) && $config->display_venue && EEH_Venue_View::venue_name() ? TRUE : FALSE;
 }
 /**
  *    edit_venue_link
  *
  * @access    public
  * @param int $VNU_ID
  * @param string $link
  * @param string $before
  * @param string $after
  * @return string
  */
 public static function edit_venue_link($VNU_ID = 0, $link = '', $before = '<p class="edit-venue-lnk small-txt">', $after = '</p>')
 {
     $venue = EEH_Venue_View::get_venue($VNU_ID);
     if ($venue instanceof EE_Venue) {
         // can the user edit this post ?
         if (current_user_can('edit_post', $venue->ID())) {
             // set link text
             $link = !empty($link) ? $link : __('edit this venue');
             // generate nonce
             $nonce = wp_create_nonce('edit_nonce');
             // generate url to venue editor for this venue
             $url = add_query_arg(array('page' => 'espresso_venues', 'action' => 'edit', 'post' => $venue->ID(), 'edit_nonce' => $nonce), admin_url('admin.php'));
             // get edit CPT text
             $post_type_obj = get_post_type_object('espresso_venues');
             // build final link html
             $link = '<a class="post-edit-link" href="' . $url . '" title="' . esc_attr($post_type_obj->labels->edit_item) . '">' . $link . '</a>';
             // put it all together
             return $before . apply_filters('edit_post_link', $link, $venue->ID()) . $after;
         }
     }
     return '';
 }
 /**
  * 	display_venue
  *
  *  @access 	public
  *  @return 	void
  */
 public static function display_venue()
 {
     $EE = EE_Registry::instance();
     $EE->load_helper('Venue_View');
     $display_venue = isset($EE->CFG->template_settings->EED_Event_Single->display_venue) ? $EE->CFG->template_settings->EED_Event_Single->display_venue : TRUE;
     $venue_name = EEH_Venue_View::venue_name();
     return $display_venue && !empty($venue_name) ? TRUE : FALSE;
 }
 /**
  * espresso_edit_venue_link
  *
  * @param int $VNU_ID
  * @param bool $echo
  * @return string
  */
 function espresso_edit_venue_link($VNU_ID = 0, $echo = TRUE)
 {
     EE_Registry::instance()->load_helper('Venue_View');
     if ($echo) {
         echo EEH_Venue_View::edit_venue_link($VNU_ID);
         return '';
     }
     return EEH_Venue_View::edit_venue_link($VNU_ID);
 }
        echo $venue->name();
        ?>
</a></h3>
								<p><?php 
        echo $venue->description();
        ?>
</p>
								<?php 
        echo EEH_Address::format($venue);
        ?>
</td>
							<?php 
        if ($venue->enable_for_gmap()) {
            ?>
								<td class="venue-details-part venue-image-dv"><?php 
            echo EEH_Venue_View::espresso_google_static_map($venue);
            ?>
</td>
							<?php 
        }
        ?>
						</tr>
					<?php 
    }
    ?>
				</table>
				<?php 
}
?>

				<?php 
 /**
  * espresso_edit_venue_link
  *
  * @param int $VNU_ID
  * @param bool $echo
  * @return string
  */
 function espresso_edit_venue_link($VNU_ID = 0, $echo = TRUE)
 {
     if ($echo) {
         echo EEH_Venue_View::edit_venue_link($VNU_ID);
         return '';
     }
     return EEH_Venue_View::edit_venue_link($VNU_ID);
 }
 /**
  * espresso_edit_venue_link
  *
  * @param int $VNU_ID
  */
 function espresso_edit_venue_link($VNU_ID = 0)
 {
     EE_Registry::instance()->load_helper('Venue_View');
     echo EEH_Venue_View::edit_venue_link($VNU_ID);
 }
 /**
  * 	display_venue
  *
  *  @access 	public
  *  @return 	bool
  */
 public static function display_venue()
 {
     EE_Registry::instance()->load_helper('Venue_View');
     /** @type EE_Event_Single_Config EED_Event_Single::instance()->config() */
     $display_venue = isset(EED_Event_Single::instance()->config()->display_venue) ? EED_Event_Single::instance()->config()->display_venue : TRUE;
     $venue_name = EEH_Venue_View::venue_name();
     return $display_venue && !empty($venue_name) ? TRUE : FALSE;
 }
 /**
  * 	display_address
  *
  *  @access 	public
  *  @return 	void
  */
 public static function display_address()
 {
     $EE = EE_Registry::instance();
     $display_address = isset($EE->CFG->template_settings->EED_Events_Archive_Filters->display_address) ? $EE->CFG->template_settings->EED_Events_Archive_Filters->display_address : FALSE;
     $venue_name = EEH_Venue_View::venue_name();
     return $display_address && !empty($venue_name) ? TRUE : FALSE;
 }
 public function venue()
 {
     return EEH_Venue_View::get_event_venues($this->ID);
 }
 /**
  * 	display_venue
  *
  *  @access 	public
  *  @return 	bool
  */
 public static function display_venue()
 {
     /** @type EE_Event_Single_Config $config */
     $config = EED_Event_Single::instance()->config();
     $display_venue = isset($config->display_venue) ? $config->display_venue : TRUE;
     $venue_name = EEH_Venue_View::venue_name();
     return $display_venue && !empty($venue_name) ? TRUE : FALSE;
 }