source: trunk/templates/header.tt

Last change on this file was 1447, checked in by Dominic Hargreaves, 9 years ago

Fix several test failures triggered by the stricter Test::HTML::Content (et al) found in current Debian unstable.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
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 profile="http://a9.com/-/spec/opensearch/1.1/">
5  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6  [% IF page_title %]
7    <title>[% page_title %]</title>
8    <meta name="DC.title" content="[% page_title %]" />
9  [% ELSE %]
10    <title>[% node_name %] - [% site_name %]</title>
11    <meta name="DC.title" content="[% node_name %] - [% site_name %]" />
12  [% END %]
13    <meta name="DC.publisher" content="[% site_name %]" />
14
15  [% IF contact_email %]
16    <link rev="made" href="mailto:[% contact_email %]" />
17  [% END %]
18
19  [% IF page_description %]
20    <meta name="description" content="[% page_description %]" />
21  [% ELSIF summary %]
22    <meta name="description" content="[% summary %]" />
23  [% END %]
24
25  [% IF (categories.size AND categories.size > 0)
26     OR (locales.size AND locales.size > 0) %]
27    <meta name="keywords" content="[% IF categories.size AND
28categories.size > 0 %][% FOREACH category = categories %][%
29category.name %][%- ", " %][% END %][% END %][% IF locales.size AND
30locales.size > 0 %][% FOREACH locale = locales %][% locale.name %][%-
31", " UNLESS loop.last %][% END %][% END %]" />
32  [% END %]
33
34  [% IF stylesheet %]
35    <link rel="stylesheet" href="[% stylesheet %]" type="text/css" title="Stylesheet for [% site_name %]" />
36  [% ELSE %]
37    <link rel="stylesheet" href="[% config.static_url %]openguides-base.css" type="text/css" title="Basic OpenGuides stylesheet" />
38  [% END %]
39  [% IF config.use_leaflet %]
40    <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4/leaflet.css" />
41    <!--[if lte IE 8]>
42      <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4/leaflet.ie.css" />
43    <![endif]-->
44  [% END %]
45
46  [% IF feed_base %]
47    <link rel="alternate" type="application/rss+xml" title="Page as RSS" href="[% feed_base %];format=rss" />
48    <link rel="alternate" type="application/atom+xml" title="Page as Atom" href="[% feed_base %];format=atom" />
49  [% END %]
50  [% IF wgs84_lat AND wgs84_long %]
51    <meta name="ICBM" content="[% wgs84_lat %], [% wgs84_long %]" />
52    <meta name="geo.position" content="[% wgs84_lat %], [% wgs84_long %]" />
53  [% END %]
54    <link rel="alternate"
55          type="application/rss+xml"
56          title="[% site_name %] - Recent Changes (RSS 1.0)"
57          href="[% full_cgi_url %]?action=rc;format=rss" />
58    <link rel="alternate"
59          type="application/atom+xml"
60          title="[% site_name %] - Recent Changes (Atom)"
61          href="[% full_cgi_url %]?action=rc;format=atom" />
62    <link rel="search"
63          type="application/opensearchdescription+xml"
64          title="Search the site '[% site_name %]'"
65          href="[% full_cgi_url %]?action=about;format=opensearch"  />
66  [% IF licence_url %]
67    <link rel="copyright" href="[% licence_url %]" />
68  [% END %]
69  [% IF deter_robots %]
70    <meta name="robots" content="noindex,nofollow" />
71  [% END %]
72  [% UNLESS not_editable %]
73    <link rel="alternate" type="application/wiki" title="Edit this page!"
74     href="[% source_site or full_cgi_url %]?id=[% node_param %];action=edit" />
75  [% END %]
76
77  [% IF display_google_maps %]
78    [% IF config.use_leaflet %]
79      <script
80         src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
81         type="text/javascript"></script>
82      <script src="http://cdn.leafletjs.com/leaflet-0.4/leaflet.js"
83              type="text/javascript"></script>
84      <script src="[% config.static_url %]map-leaflet.js"
85              type="text/javascript"></script>
86    [% ELSIF enable_gmaps AND gmaps_api_key %]
87      <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=[% gmaps_api_key %]" type="text/javascript"></script>
88    [% END %]
89  [% END %]
90
91  [% TRY %]
92    [% INCLUDE custom_header.tt %]
93  [% CATCH %]
94  [% END %]
95
96</head>
97<body>
98  <div id="body_wrapper">
99  [% IF !config.use_leaflet AND enable_gmaps AND display_google_maps
100     AND gmaps_api_key %]
101    <script defer="defer" type="text/javascript">
102      //<![CDATA[
103        var baseIcon = new GIcon();
104        baseIcon.image = "http://www.google.com/mapfiles/marker.png";
105        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
106        baseIcon.iconSize = new GSize(10, 17);
107        baseIcon.shadowSize = new GSize(20, 17);
108        baseIcon.iconAnchor = new GPoint(5, 17);
109        baseIcon.infoWindowAnchor = new GPoint(9, 2);
110        baseIcon.infoShadowAnchor = new GPoint(9, 12);
111      //]]>
112    </script>
113  [% END %]
Note: See TracBrowser for help on using the repository browser.