<?php /* Smarty version 2.6.26, created on 2017-04-13 03:04:36
         compiled from /home3/bargaip4/public_html/gevimmo/plugins/locationFinder/admin/map.tpl */ ?>
<!-- location finder tpl -->

<tr id="lf-container" class="hide">
	<td class="name">
		<?php echo $this->_tpl_vars['lang']['locationFinder_location']; ?>
 <img src="<?php echo $this->_tpl_vars['rlTplBase']; ?>
img/blank.gif" class="qtip" title="<?php echo $this->_tpl_vars['lang']['locationFinder_hint']; ?>
" />
	</td>
	<td class="field">
		<div id="lf_map" style="<?php if ($this->_tpl_vars['config']['locationFinder_map_width']): ?>width: <?php echo $this->_tpl_vars['config']['locationFinder_map_width']; ?>
px;<?php endif; ?>height: <?php if ($this->_tpl_vars['config']['locationFinder_map_height']): ?><?php echo $this->_tpl_vars['config']['locationFinder_map_height']; ?>
<?php else: ?>250<?php endif; ?>px;"></div>

		<div class="navigation-line" style="margin-top: 10px;">
			<div style="float: right;">
				<div class="address-line">
					<div style="float: right;"><input style="margin: 0 0 0 10px;" id="lf_search" class="search" type="button" value="<?php echo $this->_tpl_vars['lang']['search']; ?>
" /></div>
					<div style="overflow: hidden;"><input placeholder="<?php echo $this->_tpl_vars['lang']['locationFinder_address_hint']; ?>
" type="text" id="lf_query" name="f[lf][query]" value="<?php if ($_POST['f']['lf']['query']): ?><?php echo $_POST['f']['lf']['query']; ?>
<?php else: ?><?php if (! $this->_tpl_vars['config']['locationFinder_use_location']): ?><?php echo $this->_tpl_vars['config']['locationFinder_search']; ?>
<?php endif; ?><?php endif; ?>" /></div>
				</div>
			</div>
			<div style="overflow: hidden;">
				<div style="padding-top: 5px;">
					<label><input id="lf_use" type="checkbox" name="f[lf][use]" value="1" <?php if ($_POST['f']['lf']['use']): ?>checked="checked"<?php endif; ?> /> <?php echo $this->_tpl_vars['lang']['locationFinder_use_location']; ?>
</label>
					<img src="<?php echo $this->_tpl_vars['rlTplBase']; ?>
img/blank.gif" class="qtip" title="<?php echo $this->_tpl_vars['lang']['locationFinder_hint']; ?>
" />
				</div>
			</div>
		</div>

		<input id="lf_lat" name="f[lf][lat]" type="hidden" value="<?php echo $_POST['f']['lf']['lat']; ?>
" />
		<input id="lf_lng" name="f[lf][lng]" type="hidden" value="<?php echo $_POST['f']['lf']['lng']; ?>
" />
		<input id="lf_zoom" name="f[lf][zoom]" type="hidden" value="<?php echo $_POST['f']['lf']['zoom']; ?>
" />
	</td>
</tr>

<script src="//maps.googleapis.com/maps/api/js?libraries=places&sensor=false<?php if (@RL_LANG_CODE != '' && @RL_LANG_CODE != 'en'): ?>&language=<?php echo @RL_LANG_CODE; ?>
<?php endif; ?><?php if ($this->_tpl_vars['config']['google_map_key']): ?>&key=<?php echo $this->_tpl_vars['config']['google_map_key']; ?>
<?php endif; ?>"></script>
<script type="text/javascript" src="<?php echo @RL_LIBS_URL; ?>
jquery/jquery.flmap.js"></script>

<script type="text/javascript">//<![CDATA[
var lfConfig = new Array();
lfConfig['geoCoder'] = new google.maps.Geocoder();
lfConfig['google_key'] = <?php if ($this->_tpl_vars['config']['google_map_key']): ?>'<?php echo $this->_tpl_vars['config']['google_map_key']; ?>
'<?php else: ?>false<?php endif; ?>;
lfConfig['containerPosition'] = '<?php echo $this->_tpl_vars['config']['locationFinder_position']; ?>
';
lfConfig['containerPositionGroup'] = '<?php echo $this->_tpl_vars['config']['locationFinder_group']; ?>
';
lfConfig['containerPositionType'] = '<?php echo $this->_tpl_vars['config']['locationFinder_type']; ?>
';
lfConfig['use_location'] = <?php if ($this->_tpl_vars['config']['locationFinder_use_location']): ?>true<?php else: ?>false<?php endif; ?>;
lfConfig['phrase_drag_hint'] = "<?php echo $this->_tpl_vars['lang']['locationFinder_drag_notice']; ?>
";
lfConfig['phrase_not_found'] = "<?php echo $this->_tpl_vars['lang']['location_not_found']; ?>
";
lfConfig['phrase_your_location'] = "<?php echo $this->_tpl_vars['lang']['locationFinder_your_location']; ?>
";
lfConfig['locationFinder_sync_warning'] = "<?php echo $this->_tpl_vars['lang']['locationFinder_sync_warning']; ?>
";
<?php if ($_SESSION['GEOLocationData']->Country_name && $this->_tpl_vars['config']['locationFinder_use_location']): ?>
lfConfig['location'] = "<?php echo $_SESSION['GEOLocationData']->Country_name; ?>
<?php if ($_SESSION['GEOLocationData']->Region): ?>, <?php echo $_SESSION['GEOLocationData']->Region; ?>
<?php endif; ?><?php if ($_SESSION['GEOLocationData']->City): ?>, <?php echo $_SESSION['GEOLocationData']->City; ?>
<?php endif; ?>";
<?php else: ?>
lfConfig['location'] = "<?php echo $this->_tpl_vars['config']['locationFinder_search']; ?>
";
<?php endif; ?>
lfConfig['zoom'] = <?php if ($this->_tpl_vars['config']['locationFinder_map_zoom']): ?><?php echo $this->_tpl_vars['config']['locationFinder_map_zoom']; ?>
<?php else: ?>12<?php endif; ?>;
lfConfig['postLat'] = <?php if ($_POST['f']['lf']['lat']): ?><?php echo $_POST['f']['lf']['lat']; ?>
<?php else: ?>false<?php endif; ?>;
lfConfig['postLng'] = <?php if ($_POST['f']['lf']['lng']): ?><?php echo $_POST['f']['lf']['lng']; ?>
<?php else: ?>false<?php endif; ?>;
lfConfig['postZoom'] = <?php if ($_POST['f']['lf']['zoom']): ?><?php echo $_POST['f']['lf']['zoom']; ?>
<?php else: ?>false<?php endif; ?>;
lfConfig['mapping_country'] = <?php if ($this->_tpl_vars['config']['locationFinder_mapping_country']): ?>'<?php echo $this->_tpl_vars['config']['locationFinder_mapping_country']; ?>
'<?php else: ?>false<?php endif; ?>;
lfConfig['mapping_state'] = <?php if ($this->_tpl_vars['config']['locationFinder_mapping_state']): ?>'<?php echo $this->_tpl_vars['config']['locationFinder_mapping_state']; ?>
'<?php else: ?>false<?php endif; ?>;
lfConfig['mapping_city'] = <?php if ($this->_tpl_vars['config']['locationFinder_mapping_city']): ?>'<?php echo $this->_tpl_vars['config']['locationFinder_mapping_city']; ?>
'<?php else: ?>false<?php endif; ?>;
lfConfig['locationFinder_mapping'] = <?php if ($this->_tpl_vars['config']['locationFinder_mapping']): ?>true<?php else: ?>false<?php endif; ?>;
lfConfig['admin_panel'] = <?php if (defined ( 'REALM' ) && REALM == 'admin'): ?>true<?php else: ?>false<?php endif; ?>;

//]]>
</script>
<script type="text/javascript" src="<?php echo @RL_PLUGINS_URL; ?>
locationFinder/static/lib.js"></script>

<!-- location finder tpl end -->