<!-- home page content tpl -->

<section class="home-search">
	<div class="point1">
		{if $config.home_page_h1}
            <h1>{if $pageInfo.h1}{$pageInfo.h1}{else}{$pageInfo.name}{/if}</h1>
        {/if}
        
		<div id="search_area">
			<div class="{if $search_form|@count == 5}table{else}inline{/if}-mode">
				<form name="map-search-form" method="{$listing_types[$search_form_type].Submit_method}" action="{$rlBase}{if $config.mod_rewrite}{$pages.search_on_map}.html{else}?page={$pages.search_on_map}{/if}">{strip}
					<input type="hidden" value="" name="loc_lat" />
					<input type="hidden" value="" name="loc_lng" />

					{foreach from=$search_form item='item'}
						{include file='blocks'|cat:$smarty.const.RL_DS|cat:'fields_search_horizontal.tpl' fields=$item.Fields}
					{/foreach}

					<div class="search-form-cell submit">
						<div>
							<span></span>
							<div>
								<input type="submit" value="{$lang.search}" />
							</div>
						</div>
					</div>
				{/strip}</form>
			</div>

			{assign var='spage_key' value=$listing_types[$search_form_type].Page_key}
		</div>
	</div>
</section>

{addJS file='//maps.googleapis.com/maps/api/js?libraries=places&language='|cat:$smarty.const.RL_LANG_CODE|cat:'&key='|cat:$config.google_map_key}
<script class="fl-js-static">flynaxTpl.homePageSearch();</script>

<!-- home page content tpl end -->