source: products/qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.0-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

File size: 6.3 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
2      i18n:domain="plone" tal:define="Iterator python:modules['Products.CMFPlone'].IndexIterator;
3                  tabindex python:Iterator();">
4
5<head metal:define-macro="html_header"
6      tal:define="ztu ztu|modules/ZTUtils;
7                  skinrequest python:request.get(here.portal_skins.getRequestVarname(), '');">
8    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
9          tal:define="charset site_properties/default_charset|string:utf-8"
10          tal:attributes="content string:text/html;;charset=${charset}" />
11
12    <title tal:define="portal_title portal_properties/title;
13                       here_title here/title_or_id;
14                       template_title template/title_or_id;
15                       here_title python:test( portal_title != here_title,
16                                               here_title,
17                                               template_title );
18                       seo_title here/qSEO_Title;"
19           tal:content="python: test(seo_title == here.title_or_id(), '%s - %s' % (portal_title, here_title), seo_title)">Title of page</title>
20
21    <tal:html_comment define="comment here/qSEO_HTML_Comment|nothing" condition="comment">
22      <tal:html_comment_start replace="structure string:&lt;!--" />
23        <tal:comment replace="comment" />
24      <tal:html_comment_end replace="structure string:--&gt;" />
25    </tal:html_comment>
26
27    <metal:baseslot define-slot="base" />
28
29    <meta name="generator" content="Plone - http://plone.org" />
30   
31    <meta tal:condition="here/listMetaTags|nothing"
32          tal:repeat="keyval here/listMetaTags"
33          tal:attributes="name python:keyval[0];
34                          content python:keyval[1];" />
35
36    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript">
37        <tal:script replace="structure ecmascript" />
38    </tal:ecma_script>
39
40    <link rel="Stylesheet" type="text/css" href="" tal:attributes="href string:$portal_url/ploneNS4.css" />
41
42    <style type="text/css" media="all" tal:condition="exists: portal/ploneColumns.css"
43           tal:content="string:@import url($portal_url/ploneColumns.css);"></style>
44   
45    <style type="text/css" media="screen"
46           tal:content="string: @import url($portal_url/plone.css);"></style>
47
48    <style type="text/css" media="screen"
49           tal:condition="nothing"
50           tal:content="string: @import url($portal_url/ploneDeprecated.css);"></style>
51   
52    <link rel="alternate stylesheet" type="text/css" media="screen" href="" tal:attributes="href string:$portal_url/ploneTextSmall.css" title="Small Text" />
53    <link rel="alternate stylesheet" type="text/css" media="screen" href="" tal:attributes="href string:$portal_url/ploneTextLarge.css" title="Large Text" />
54
55    <style type="text/css" media="all" tal:condition="exists: portal/ploneCustom.css"
56           tal:content="string:@import url($portal_url/ploneCustom.css);"></style>
57
58    <link rel="stylesheet" type="text/css" media="print" href=""
59          tal:attributes="href string:$portal_url/plonePrint.css" />
60
61    <link rel="stylesheet" type="text/css" media="projection" href=""
62          tal:attributes="href string:$portal_url/plonePresentation.css" />
63
64    <tal:iefixstart replace="structure string:&lt;!--[if IE]&gt;" />
65    <style type="text/css" media="all" tal:condition="exists: portal/ploneIEFixes.css"
66           tal:content="string:@import url($portal_url/ploneIEFixes.css);"></style>
67    <tal:iefixend replace="structure string:&lt;![endif]--&gt;" />
68
69    <link rel="shortcut icon" href="" type="image/x-icon" tal:attributes="href string:$portal_url/favicon.ico" />
70
71    <link rel="search" href="" title="Search this site" tal:attributes="href string:$portal_url/search_form" />
72
73    <tal:comment tal:replace="nothing">
74       <link rel="help" href="" title="Help" tal:attributes="href string:$portal_url/help" />
75       <link rel="contents" href="" title="Site Map" tal:attributes="href string:$portal_url/sitemap" />
76    </tal:comment>
77    <link rel="up" href="" title="Up one level"
78          tal:define="parent python:here.navigationParent(here, template_id)"
79          tal:attributes="href python:test(parent, parent, '#')" />
80    <link rel="copyright" href="" title="Copyright information" tal:attributes="href string:copyright" />
81    <link rel="author" href="" title="Author information" tal:attributes="href string:author" />
82
83    <metal:block metal:define-slot="rel_slot" tal:replace="nothing">
84    Inserts rel links specified from a page.
85    </metal:block>
86
87    <meta http-equiv="imagetoolbar" content="no" />
88
89    <metal:block metal:define-slot="css_slot" tal:replace="nothing">
90    Inserts CSS specified from a page.
91    </metal:block>
92
93    <metal:block metal:define-slot="head_slot" tal:replace="nothing">
94    Flexibility for published templates to inject stuff into the head tag.
95    </metal:block>
96
97    <metal:block metal:define-slot="javascript_head_slot" tal:replace="nothing">
98    Inserts javascript specified from a page.
99    </metal:block>
100
101    <script tal:condition="not: isAnon"
102            type="text/javascript"
103            tal:attributes="src string:$portal_url/plone_menu.js"></script>
104
105    <script type="text/javascript"
106            tal:attributes="src string:$portal_url/plone_javascript_variables.js"></script>
107
108    <script type="text/javascript"
109            tal:attributes="src string:$portal_url/plone_javascripts.js"></script>
110
111    <tal:block tal:define="showdefault python:test(portal.portal_memberdata.getProperty('formtooltips'), 'true', 0);
112                           formtooltips python:member.getProperty('formtooltips', showdefault)"
113               tal:omit-tag="">
114
115      <tal:oldjs tal:condition="nothing">
116        <script type="text/javascript"
117                tal:condition="formtooltips"
118                tal:attributes="src string:$portal_url/plone_formtooltip.js"></script>
119 
120        <tal:block tal:condition="not:formtooltips">
121          <tal:block tal:replace="structure string:&lt;script language='javascript' type='text/javascript' &gt;" />
122            <metal:block >function formtooltip(el,flag){}</metal:block>
123          <tal:block tal:replace="structure python:'&lt;/script&gt;'" />
124        </tal:block>
125      </tal:oldjs>
126     
127    </tal:block>
128</head>
129
130<body>
131</body>
132
133</html>
Note: See TracBrowser for help on using the repository browser.