source: products/qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.5.2/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.7 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        <tal:seo condition="override" content="here/qSEO_Title"/>
17        <tal:default condition="not:override">
18            <tal:pagetitle replace="page_title">
19                Inserts page title
20            </tal:pagetitle>
21            &mdash;
22            <tal:portaltitle replace="portal_title">
23             Inserts portal title
24            </tal:portaltitle>
25        </tal:default>
26    </title>
27
28    <tal:html_comment define="comment here/qSEO_HTML_Comment|nothing" condition="comment">
29      <tal:html_comment_start replace="structure string:&lt;!--" />
30        <tal:comment replace="comment" />
31      <tal:html_comment_end replace="structure string:--&gt;" />
32    </tal:html_comment>
33
34    <metal:baseslot define-slot="base" />
35
36    <meta name="generator" content="Plone - http://plone.org" />
37
38    <meta tal:define="metatags here/listMetaTags"
39          tal:condition="metatags"
40          tal:repeat="keyval metatags"
41          tal:attributes="name python:keyval[0];
42                          content python:keyval[1];" />
43
44    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript">
45        <tal:script replace="structure ecmascript" />
46    </tal:ecma_script>
47
48    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing"
49              tal:condition="nocall:scripts">
50      <metal:block metal:use-macro="scripts/macros/jsrenderer">
51      </metal:block>
52    </metal:js>
53
54    <metal:css tal:define="css nocall:here/renderAllTheStylesheets|nothing">
55        <tal:block condition="nocall:css">
56          <metal:block metal:use-macro="css/macros/cssrenderer">
57          </metal:block>
58        </tal:block>
59        <tal:block condition="not:nocall:css">
60        <style type="text/css" media="all" tal:condition="exists:portal/base.css"
61               tal:content="string:@import url($portal_url/base.css);">
62        </style>
63        <style type="text/css" media="all" tal:condition="exists:portal/columns.css"
64               tal:content="string:@import url($portal_url/columns.css);">
65        </style>
66        <style type="text/css" media="all" tal:condition="exists:portal/public.css"
67               tal:content="string:@import url($portal_url/public.css);">
68        </style>
69        <style type="text/css" media="all" tal:condition="exists:portal/portlets.css"
70               tal:content="string:@import url($portal_url/portlets.css);">
71        </style>
72        </tal:block>
73    </metal:css>
74
75    <tal:iefixstart replace="structure string:&lt;!--[if gte IE 7]&gt;" />
76        <style type="text/css" media="all" tal:condition="exists: portal/IEFixes.css"
77               tal:content="string:@import url($portal_url/IEFixes.css);">
78        </style>
79    <tal:iefixend replace="structure string:&lt;![endif]--&gt;" />
80
81    <link rel="shortcut icon" type="image/x-icon" tal:attributes="href string:$portal_url/favicon.ico" />
82
83    <link rel="home"
84          href=""
85          title="Front page"
86          i18n:attributes="title title_frontpage"
87          tal:attributes="href string:$portal_url" />
88    <link rel="search"
89          href=""
90          title="Search this site"
91          i18n:attributes="title title_search_this_site"
92          tal:attributes="href string:$portal_url/search_form" />
93    <link rel="author"
94          href=""
95          title="Author information"
96          i18n:attributes="title title_author_info"
97          tal:attributes="href string:${portal_url}/author/${here/Creator}" />
98    <link rel="contents"
99          href=""
100          title="Site Map"
101          i18n:attributes="title title_sitemap"
102          tal:attributes="href string:$portal_url/sitemap" />
103
104    <tal:fixme tal:replace="nothing">
105      <link rel="help" href="" title="Help" tal:attributes="href string:$portal_url/help" />
106      <link rel="copyright" href="" title="Copyright information" tal:attributes="href string:copyright" />
107    </tal:fixme>
108
109    <link rel="alternate" href="" title="RSS 1.0" type="application/rss+xml"
110          tal:condition="python: syntool.isSyndicationAllowed(here)"
111          tal:attributes="href string:$here_url/RSS" />
112
113    <link rel="up" href="" title="Up one level"
114          tal:define="parent python:here.navigationParent(here, template_id)"
115          tal:condition="parent"
116          tal:attributes="href parent" />
117
118    <metal:block metal:define-slot="rel_slot" tal:replace="nothing">
119      Inserts rel links specified from a page.
120    </metal:block>
121
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.