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