1.0.1 • Published 5 years ago

aitomic-o-contact9 v1.0.1

Weekly downloads
9
License
SEE LICENSE IN li...
Repository
-
Last release
5 years ago

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.