Auto-complétion ne fonctionne pas
Salut à tous,
J'ai un probleme de fonctionnement avec ma carte Google et Dream m'indique des erreurs de syntaxes.
SI vous pouvez m'aider , le logiciel indique l'erreur à ce niveau là (**)
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script>
var default_map_location = false;
var default_map_type = '{$search_form_type}';
**var default_map_coordinates = '{'$config.realty_search_map_location'}';
var default_map_zoom = {if $config.realty_search_map_location_zoom}{$config.realty_search_map_location_zoom}{else}14{/if};
{if !$config.realty_search_map_location && $smarty.session.GEOLocationData}
default_map_location = "{$smarty.session.GEOLocationData->Country_name}{if $smarty.session.GEOLocationData->Region}, {$smarty.session.GEOLocationData->Region}{/if}{if $smarty.session.GEOLocationData->City}, {$smarty.session.GEOLocationData->City}{/if}";
{/if}
{if $geo_filter_data.location.0.name && !$pageInfo.Geo_exclude}
{foreach from=$geo_filter_data.location item='loc_name'}
{assign var='geo_location_address' value=$geo_location_address|cat:', '|cat:$loc_name.name}
{/foreach}
{assign var='geo_location_address' value=$geo_location_address|ltrim:', '}
default_map_location = '{$geo_location_address}';
{/if}
lang['count_properties'] = '{$lang.count_properties}';
lang['number_property_found'] = '{$lang.number_property_found}';
lang['map_listings_request_empty'] = '{$lang.map_listings_request_empty}';
lang['short_price_k'] = '{$lang.short_price_k}';
lang['short_price_m'] = '{$lang.short_price_m}';
lang['short_price_b'] = '{$lang.short_price_b}';
flynaxTpl.mapSearch('map_container', trim(default_map_location));
</script> |
Code:
1 2 3 4 5 6 7
| <script type="text/javascript">
var langs_list = Array(
**{foreach from=$allLangs item='languages' name='lF'}
'{$languages.Code}|{$languages.name}'{if !$smarty.foreach.lF.last},{/if}
{/foreach}
);
</script> |
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script>
var default_map_location = false;
var default_map_type = '{$search_form_type}';
var default_map_coordinates = '{if $smarty.post.loc_lat && $smarty.post.loc_lng}{$smarty.post.loc_lat},{$smarty.post.loc_lng}{else}{$config.realty_search_map_location}{/if}';
**var default_map_zoom = {if $config.realty_search_map_location_zoom}{$config.realty_search_map_location_zoom}{else}14{/if};
lang['count_properties'] = '{$lang.count_properties}';
lang['number_property_found'] = '{$lang.number_property_found}';
lang['no_properties_found'] = '{$lang.no_properties_found}';
lang['map_listings_request_empty'] = '{$lang.map_listings_request_empty}';
lang['short_price_k'] = '{$lang.short_price_k}';
lang['short_price_m'] = '{$lang.short_price_m}';
lang['short_price_b'] = '{$lang.short_price_b}';
{if !$config.realty_search_map_location && $smarty.session.GEOLocationData}
default_map_location = "{$smarty.session.GEOLocationData->Country_name}{if $smarty.session.GEOLocationData->Region}, {$smarty.session.GEOLocationData->Region}{/if}{if $smarty.session.GEOLocationData->City}, {$smarty.session.GEOLocationData->City}{/if}";
{/if}
{if $geo_filter_data.location.0.name && !$pageInfo.Geo_exclude}
{foreach from=$geo_filter_data.location item='loc_name'}
{assign var='geo_location_address' value=$geo_location_address|cat:', '|cat:$loc_name.name}
{/foreach}
{assign var='geo_location_address' value=$geo_location_address|ltrim:', '}
default_map_location = '{$geo_location_address}';
{/if}
{if $smarty.post.loc_lat && $smarty.post.loc_lng}
default_map_location = false;
{/if}
flynaxTpl.mapSearch('map_container', trim(default_map_location));
</script> |
Merciii