source: products/qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.5.3-final/header.pt @ 1028

Last change on this file since 1028 was 1028, checked in by mylan, 15 years ago

Implemented possibility to add specific ecma-script to header of a seo supported content

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