aitomic-o-contact9
v2.0.0
Published
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-contact9`.
Downloads
27
Readme
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-contact9
.
Define latte block #map
as inicialization Google Maps javascript API like this:
{block #map}
<div class="o-contact9__embed jq_contact9" 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-contact9__embed" frameborder="0" allowfullscreen></iframe>
{/block}
Take a look at source of {latte} template to discover other available hooks to customization.