<?php $args = !empty($args) ? $args:array(); /* @var $args array */ ?>
<!-- START General Search -->
<div class="em-search-geo em-search-field">
	<?php 
		/* This general search will find matches within event_name, event_notes, and the location_name, address, town, state and country. */
		
	?>
	<input type="text" name="geo" class="em-search-geo" value="<?php echo esc_attr($args['geo']); ?>"/>
	<input type="hidden" name="near" class="em-search-geo-coords" value="<?php echo esc_attr($args['near']); ?>" />
	<div id="em-search-geo-attr" ></div>
	<script type="text/javascript">
	EM.geo_placeholder = '<?php echo esc_attr($args['geo_label']); ?>';
	EM.geo_alert_guess = '<?php esc_attr_e('We are going to use %s for searching.','dbem'); ?> \n\n <?php esc_attr_e('If this is incorrect, click cancel and try a more specific address.','dbem') ?>';
	<?php
	//include seperately, which allows you to just modify the html or completely override the JS
	em_locate_template('templates/search/geo.js',true);
	?>
	</script>
</div>
<!-- END General Search -->