root/tags/rel0_62/templates/header.tt

Revision 1099, 3.4 kB (checked in by dom, 19 months ago)

Include licence URL in <head> (fixes #226)

  • 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 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  [% IF summary %]
19    <meta name="description" content="[% summary %]" />
20  [% END %]
21  [% IF (categories.size AND categories.size > 0)
22     OR (locales.size AND locales.size > 0) %]
23    <meta name="keywords" content="[% IF categories.size AND
24categories.size > 0 %][% FOREACH category = categories %][%
25category.name %][%- ", " %][% END %][% END %][% IF locales.size AND
26locales.size > 0 %][% FOREACH locale = locales %][% locale.name %][%-
27", " UNLESS loop.last %][% END %][% END %]" />
28  [% END %]
29  [% IF stylesheet %]
30    <link rel="stylesheet" href="[% stylesheet %]" type="text/css" title="Stylesheet for [% site_name %]" />
31  [% END %]
32  [% IF feed_base %]
33    <link rel="alternate" type="application/rss+xml" title="Page as RSS" href="[% feed_base %];format=rss" />
34    <link rel="alternate" type="application/atom+xml" title="Page as Atom" href="[% feed_base %];format=atom" />
35  [% END %]
36  [% IF wgs84_lat AND wgs84_long %]
37    <meta name="ICBM" content="[% wgs84_lat %], [% wgs84_long %]" />
38    <meta name="geo.position" content="[% wgs84_lat %], [% wgs84_long %]" />
39  [% END %]
40    <link rel="alternate"
41          type="application/rss+xml"
42          title="[% site_name %] - Recent Changes (RSS 1.0)"
43          href="[% full_cgi_url %]?action=rc;format=rss" />
44    <link rel="alternate"
45          type="application/atom+xml"
46          title="[% site_name %] - Recent Changes (Atom)"
47          href="[% full_cgi_url %]?action=rc;format=atom" />
48    <link rel="search"
49          type="application/opensearchdescription+xml"
50          title="Search the site '[% site_name %]'"
51          href="[% full_cgi_url %]?action=about;format=opensearch"  />
52  [% IF licence_url %]
53    <link rel="copyright" href="[% licence_url %]" />
54  [% END %]
55  [% IF deter_robots %]
56    <meta name="robots" content="noindex,nofollow" />
57  [% END %]
58  [% IF enable_gmaps AND display_google_maps AND gmaps_api_key %]
59    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=[% gmaps_api_key %]" type="text/javascript"></script>
60  [% END %]
61
62  [% TRY %]
63    [% INCLUDE custom_header.tt %]
64  [% CATCH %]
65  [% END %]
66
67</head>
68<body>
69  <div id="body_wrapper">
70  [% IF enable_gmaps AND display_google_maps AND gmaps_api_key %]
71    <script defer="defer" type="text/javascript">
72      //<![CDATA[
73        var baseIcon = new GIcon();
74        baseIcon.image = "http://www.google.com/mapfiles/marker.png";
75        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
76        baseIcon.iconSize = new GSize(10, 17);
77        baseIcon.shadowSize = new GSize(20, 17);
78        baseIcon.iconAnchor = new GPoint(5, 17);
79        baseIcon.infoWindowAnchor = new GPoint(9, 2);
80        baseIcon.infoShadowAnchor = new GPoint(9, 12);
81      //]]>
82    </script>
83  [% END %]
Note: See TracBrowser for help on using the browser.