root/tags/rel0_55_02/templates/header.tt

Revision 771, 1.9 kB (checked in by dom, 3 years ago)

Upgrade to new Gmaps API (closes #93)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3<html lang="[% language %]">
4<head>
5  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6  [% IF page_title %]
7    <title>[% page_title %]</title>
8  [% ELSE %]
9    <title>[% node_name %] - [% site_name %]</title>
10  [% END %]
11  [% IF contact_email %]
12    <link rev="made" href="mailto:[% contact_email %]" />
13  [% END %]
14  [% IF summary %]
15    <meta name="description" content="[% summary %]" />
16  [% END %]
17  [% IF stylesheet %]
18    <link rel="stylesheet" href="[% stylesheet %]" type="text/css" title="Stylesheet for [% site_name %]" />
19  [% END %]
20  [% IF latitude AND longitude %]
21    <meta name="ICBM" content="[% latitude %], [% longitude %]" />
22    <meta name="DC.title" content="[% site_name %]" />
23  [% END %]
24    <link rel="alternate" type="application/rss+xml" title="[% site_name %] - Recent Changes (RSS 1.0)" href="[% full_cgi_url %]?action=rc;format=rss" />
25  [% IF deter_robots %]
26    <meta name="robots" content="noindex,nofollow" />
27  [% END %]
28  [% IF enable_gmaps AND display_google_maps AND gmaps_api_key %]
29    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=[% gmaps_api_key %]" type="text/javascript"></script>
30  [% END %]
31</head>
32<body>
33  [% IF enable_gmaps AND display_google_maps AND gmaps_api_key %]
34    <script defer="defer" type="text/javascript">
35      //<![CDATA[
36        var baseIcon = new GIcon();
37        baseIcon.image = "http://www.google.com/mapfiles/marker.png";
38        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
39        baseIcon.iconSize = new GSize(10, 17);
40        baseIcon.shadowSize = new GSize(20, 17);
41        baseIcon.iconAnchor = new GPoint(5, 17);
42        baseIcon.infoWindowAnchor = new GPoint(9, 2);
43        baseIcon.infoShadowAnchor = new GPoint(9, 12);
44      //]]>
45    </script>
46  [% END %]
Note: See TracBrowser for help on using the browser.