Author: dom Date: 2013-04-30 20:13:39 +0100 (Tue, 30 Apr 2013) New Revision: 1466
Modified: sites/oxford.openguides.org/templates/custom_auto_map_link.tt Log: updated custom template to work with new hook
Modified: sites/oxford.openguides.org/templates/custom_auto_map_link.tt =================================================================== --- sites/oxford.openguides.org/templates/custom_auto_map_link.tt 2013-04-20 21:14:12 UTC (rev 1465) +++ sites/oxford.openguides.org/templates/custom_auto_map_link.tt 2013-04-30 19:13:39 UTC (rev 1466) @@ -1,7 +1,17 @@ -[% IF os_x AND os_y %] [% IF auto_map_link_in_address %] -<a href="http://www.streetmap.co.uk/streetmap.dll?grid2map?[% os_x %]&[% os_y %]&arrow=yes">(map of this place)</a> + [% IF map_link %] + <a href="[% map_link %]">(map of this place)</a> + [% ELSE %] + [% IF os_x AND os_y %] + <a href="http://www.streetmap.co.uk/streetmap.dll?grid2map?[% os_x %]&[% os_y %]&arrow=yes">(map of this place)</a> + [% END %] + [% END %] [% ELSE %] -<a href="http://www.streetmap.co.uk/streetmap.dll?grid2map?[% os_x %]&[% os_y %]&arrow=yes">Map of this place</a> + [% IF map_link %] + <a href="[% map_link %]">Map of this place</a> + [% ELSE %] + [% IF os_x AND os_y %] + <a href="http://www.streetmap.co.uk/streetmap.dll?grid2map?[% os_x %]&[% os_y %]&arrow=yes">Map of this place</a> + [% END %] + [% END %] [% END %] -[% END %]