Changeset 1466


Ignore:
Timestamp:
Apr 30, 2013, 8:13:39 PM (4 years ago)
Author:
Dominic Hargreaves
Message:

updated custom template to work with new hook

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/oxford.openguides.org/templates/custom_auto_map_link.tt

    r1465 r1466  
    1 [% IF os_x AND os_y %]
    21[% IF auto_map_link_in_address %]
    3 <a href="http://www.streetmap.co.uk/streetmap.dll?grid2map?[% os_x %]&amp;[% os_y %]&amp;arrow=yes">(map of this place)</a>
     2  [% IF map_link %]
     3    <a href="[% map_link %]">(map of this place)</a>
     4  [% ELSE %]
     5    [% IF os_x AND os_y %]
     6      <a href="http://www.streetmap.co.uk/streetmap.dll?grid2map?[% os_x %]&amp;[% os_y %]&amp;arrow=yes">(map of this place)</a>
     7    [% END %]
     8  [% END %]
    49[% ELSE %]
    5 <a href="http://www.streetmap.co.uk/streetmap.dll?grid2map?[% os_x %]&amp;[% os_y %]&amp;arrow=yes">Map of this place</a>
     10  [% IF map_link %]
     11    <a href="[% map_link %]">Map of this place</a>
     12  [% ELSE %]
     13    [% IF os_x AND os_y %]
     14      <a href="http://www.streetmap.co.uk/streetmap.dll?grid2map?[% os_x %]&amp;[% os_y %]&amp;arrow=yes">Map of this place</a>
     15    [% END %]
     16  [% END %]
    617[% END %]
    7 [% END %]
Note: See TracChangeset for help on using the changeset viewer.