2.0.0 • Published 1 year ago
aitomic-o-contact7 v2.0.0
A template of contact box. Include the template (stored in folder named 'control') in module GenericList using macro {layout '../path-to-latte-template'}. Module add to page pattern with class o-contact7.
Define latte block #map as inicialization Google Maps javascript API like this:
{block #map}
<div class="o-contact7__embed jq_contact7" data-zoom="..." data-lat="..."data-lng="..." ...and other attributes according js library>
<span class="jq_mapMarker" data-lat="..." data-lng="...">
Marker content...
</span>
</div>
{/block}or iframe embed like this:
{block #map}
<iframe n:if="$item->address" src="//maps.google.com/maps?q={$item->address->lat},{$item->address->lng}&t=&z=16&ie=UTF8&iwloc=&output=embed" class="o-contact7__embed" frameborder="0" allowfullscreen></iframe>
{/block}Take a look at source of {latte} template to discover other available hooks to customization.