<{if $section.address || $section.embed_code}> <{* Zoom level -> Google Maps z parameter *}> <{$z = 14}> <{if $section.zoom == 'close'}> <{$z = 16}> <{elseif $section.zoom == 'wide'}> <{$z = 12}> <{/if}> <{* Map height *}> <{$map_height = '420px'}> <{if $section.map_height == 'low'}> <{$map_height = '300px'}> <{elseif $section.map_height == 'high'}> <{$map_height = '560px'}> <{/if}> <{* URL-encode the address for the map query. escape:'url' is a built-in Smarty modifier, so it works in secure mode. *}> <{$map_query = $section.address|escape:'url'}> <{capture name="map"}>
<{if $section.embed_code}> <{$section.embed_code nofilter}> <{elseif $section.address}> <{/if}>
<{/capture}> <{capture name="details"}>
<{if $section.title}>

<{$section.title}>

<{/if}> <{if $section.address}>

<{$section.address|nl2br}>

<{/if}> <{if $section.info}> <{include file="components/wysiwyg.html" content=$section.info}> <{/if}>
<{if $section.directions && $section.address}> <{t}>Get directions<{/t}> <{/if}> <{/capture}>
<{if $section.layout == 'map_only'}> <{$smarty.capture.map nofilter}> <{else}>
<{if $section.layout == 'map_left'}>
<{$smarty.capture.map nofilter}>
<{$smarty.capture.details nofilter}>
<{else}>
<{$smarty.capture.details nofilter}>
<{$smarty.capture.map nofilter}>
<{/if}>
<{/if}>
<{/if}>