source: products/qSEOptimizer/trunk/skins/qSEOptimizer/2.5.5/header.pt @ 1

Last change on this file since 1 was 1, checked in by myroslav, 19 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 5.8 KB
Line 
1<metal:block use-macro="here/global_defines/macros/defines" />
2<html xmlns="http://www.w3.org/1999/xhtml"
3      xml:lang="en"
4      lang="en"
5      i18n:domain="plone">
6
7  <head metal:define-macro="html_header"
8        tal:define="skinrequest python:request.get(here.portal_skins.getRequestVarname(), '');">
9    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
10          tal:define="charset site_properties/default_charset|string:utf-8"
11          tal:attributes="content string:text/html;;charset=${charset}" />
12
13    <title tal:define="safe_unicode python:modules['Products.CMFPlone.utils'].safe_unicode;
14                       portal_title portal_properties/title;
15                       page_title object_title;
16                       override python:here.hasProperty('qSEO_title')">
17
18        <tal:seo condition="override" content="here/qSEO_title" />
19        <tal:default condition="not:override">
20            <tal:hastitle condition="python:safe_unicode(portal_title) != safe_unicode(page_title)">
21                <tal:pagetitle replace="page_title">
22                    Inserts page title
23                </tal:pagetitle>
24                &mdash;
25            </tal:hastitle>
26            <tal:portaltitle replace="portal_title">
27                Inserts portal title
28            </tal:portaltitle>
29        </tal:default>
30    </title>
31
32    <tal:html_comment define="comment here/qSEO_HTML_Comment|nothing" condition="comment">
33        <tal:html_comment_start replace="structure string:&lt;!--" />
34        <tal:comment replace="comment" />
35        <tal:html_comment_end replace="structure string:--&gt;" />
36    </tal:html_comment>
37
38    <metal:baseslot define-slot="base" />
39
40    <meta name="generator" content="Plone - http://plone.org" />
41
42    <meta name="meta_name" content="meta_content"
43          tal:define="metatags python:putils.listMetaTags(here).items()"
44          tal:condition="metatags"
45          tal:repeat="keyval metatags"
46          tal:attributes="name python:keyval[0];
47                          content python:keyval[1];" />
48
49    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing"
50              tal:condition="nocall:scripts">
51      <metal:block metal:use-macro="scripts/macros/jsrenderer">
52      </metal:block>
53    </metal:js>
54
55    <metal:css tal:define="css nocall:here/renderAllTheStylesheets|nothing">
56        <tal:block condition="nocall:css">
57          <metal:block metal:use-macro="css/macros/cssrenderer">
58          </metal:block>
59        </tal:block>
60        <tal:block condition="not:nocall:css">
61        <style type="text/css" media="all" tal:condition="exists:portal/base.css"
62               tal:content="string:@import url($portal_url/base.css);">
63        </style>
64        <style type="text/css" media="all" tal:condition="exists:portal/columns.css"
65               tal:content="string:@import url($portal_url/columns.css);">
66        </style>
67        <style type="text/css" media="all" tal:condition="exists:portal/public.css"
68               tal:content="string:@import url($portal_url/public.css);">
69        </style>
70        <style type="text/css" media="all" tal:condition="exists:portal/portlets.css"
71               tal:content="string:@import url($portal_url/portlets.css);">
72        </style>
73        </tal:block>
74    </metal:css>
75
76    <tal:iefixstart replace="structure string:&lt;!--[if IE]&gt;" />
77        <style type="text/css" media="all" tal:condition="exists: portal/IEFixes.css"
78               tal:content="string:@import url($portal_url/IEFixes.css);">
79        </style>
80    <tal:iefixend replace="structure string:&lt;![endif]--&gt;" />
81
82    <link rel="shortcut icon" type="image/x-icon" tal:attributes="href string:$portal_url/favicon.ico" />
83
84    <link rel="home"
85          href=""
86          title="Front page"
87          i18n:attributes="title title_frontpage"
88          tal:attributes="href string:$portal_url" />
89    <link rel="search"
90          href=""
91          title="Search this site"
92          i18n:attributes="title title_search_this_site"
93          tal:attributes="href string:$portal_url/search_form" />
94    <link rel="author"
95          href=""
96          title="Author information"
97          i18n:attributes="title title_author_info"
98          tal:attributes="href string:${portal_url}/author/${here/Creator}" />
99    <link rel="contents"
100          href=""
101          title="Site Map"
102          i18n:attributes="title title_sitemap"
103          tal:attributes="href string:$portal_url/sitemap" />
104
105    <tal:fixme tal:replace="nothing">
106      <link rel="help" href="" title="Help" tal:attributes="href string:$portal_url/help" />
107      <link rel="copyright" href="" title="Copyright information" tal:attributes="href string:copyright" />
108    </tal:fixme>
109
110    <link rel="alternate" href="" title="RSS 1.0" type="application/rss+xml"
111          tal:condition="python: syntool.isSyndicationAllowed(here)"
112          tal:attributes="href string:$here_url/RSS" />
113
114    <link rel="up" href="" title="Up one level"
115          tal:define="parent python:here.navigationParent(here, template_id)"
116          tal:condition="parent"
117          tal:attributes="href parent" />
118
119    <metal:block metal:define-slot="rel_slot" tal:replace="nothing">
120      Inserts rel links specified from a page.
121    </metal:block>
122    <meta http-equiv="imagetoolbar" content="no" />
123   
124    <metal:block metal:define-slot="style_slot" tal:replace="nothing">
125      Inserts CSS specified from a page.
126    </metal:block>
127
128    <metal:block metal:define-slot="css_slot" tal:replace="nothing">
129      This is deprecated, please use style_slot instead.
130    </metal:block>
131
132    <metal:block metal:define-slot="head_slot" tal:replace="nothing">
133      Flexibility for published templates to inject stuff into the head tag.
134    </metal:block>
135
136    <metal:block metal:define-slot="javascript_head_slot" tal:replace="nothing">
137      Inserts javascript specified from a page.
138    </metal:block>
139
140  </head>
141
142  <body>
143  </body>
144
145</html>
Note: See TracBrowser for help on using the repository browser.