source: trunk/templates/header.tt @ 1034

Last change on this file since 1034 was 968, checked in by kake, 15 years ago

Change name of body wrapper div to something less confusing.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 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>
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 latitude AND longitude %]
37    <meta name="ICBM" content="[% latitude %], [% longitude %]" />
38    <meta name="geo.position" content="[% latitude %], [% longitude %]" />
39  [% END %]
40    <link rel="alternate" type="application/rss+xml" title="[% site_name %] - Recent Changes (RSS 1.0)" href="[% full_cgi_url %]?action=rc;format=rss" />
41    <link rel="alternate" type="application/atom+xml" title="[% site_name %] - Recent Changes (Atom)" href="[% full_cgi_url %]?action=rc;format=atom" />
42  [% IF deter_robots %]
43    <meta name="robots" content="noindex,nofollow" />
44  [% END %]
45  [% IF enable_gmaps AND display_google_maps AND gmaps_api_key %]
46    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=[% gmaps_api_key %]" type="text/javascript"></script>
47  [% END %]
48
49  [% TRY %]
50    [% INCLUDE custom_header.tt %]
51  [% CATCH %]
52  [% END %]
53
54</head>
55<body>
56  <div id="body_wrapper">
57  [% IF enable_gmaps AND display_google_maps AND gmaps_api_key %]
58    <script defer="defer" type="text/javascript">
59      //<![CDATA[
60        var baseIcon = new GIcon();
61        baseIcon.image = "http://www.google.com/mapfiles/marker.png";
62        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
63        baseIcon.iconSize = new GSize(10, 17);
64        baseIcon.shadowSize = new GSize(20, 17);
65        baseIcon.iconAnchor = new GPoint(5, 17);
66        baseIcon.infoWindowAnchor = new GPoint(9, 2);
67        baseIcon.infoShadowAnchor = new GPoint(9, 12);
68      //]]>
69    </script>
70  [% END %]
Note: See TracBrowser for help on using the repository browser.