source: products/qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.1.1/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: 4.2 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 metal:use-macro="here/renderAllTheScripts/macros/jsrenderer">SSS
49    </metal:js>
50
51    <metal:css metal:use-macro="here/renderAllTheStylesheets/macros/cssrenderer">SSS
52    </metal:css>
53
54    <tal:iefixstart replace="structure string:&lt;!--[if lt IE 7]&gt;" />
55        <style type="text/css" media="all" tal:condition="exists: portal/IEFixes.css"
56               tal:content="string:@import url($portal_url/IEFixes.css);">
57        </style>
58    <tal:iefixend replace="structure string:&lt;![endif]--&gt;" />
59
60    <link rel="shortcut icon" type="image/x-icon" tal:attributes="href string:$portal_url/favicon.ico" />
61
62    <link rel="home" href="" title="Front page" tal:attributes="href string:$portal_url" />
63    <link rel="search" title="Search this site" tal:attributes="href string:$portal_url/search_form" />
64    <link rel="author" title="Author information" tal:attributes="href string:${portal_url}/author/${here/Creator}" />
65    <link rel="contents" href="" title="Site Map" tal:attributes="href string:$portal_url/sitemap" />
66
67    <tal:fixme tal:replace="nothing">
68      <link rel="help" href="" title="Help" tal:attributes="href string:$portal_url/help" />
69      <link rel="copyright" href="" title="Copyright information" tal:attributes="href string:copyright" />
70    </tal:fixme>
71
72    <link rel="alternate" href="" title="RSS 1.0" type="application/rss+xml" 
73          tal:condition="python: syntool.isSyndicationAllowed(here)"
74          tal:attributes="href string:$here_url/RSS" />
75
76    <link rel="up" href="" title="Up one level"
77          tal:define="parent python:here.navigationParent(here, template_id)"
78          tal:condition="parent"
79          tal:attributes="href parent" />
80
81    <metal:block metal:define-slot="rel_slot" tal:replace="nothing">
82      Inserts rel links specified from a page.
83    </metal:block>
84
85    <meta http-equiv="imagetoolbar" content="no" />
86
87    <metal:block metal:define-slot="css_slot" tal:replace="nothing">
88      Inserts CSS specified from a page.
89    </metal:block>
90
91    <metal:block metal:define-slot="head_slot" tal:replace="nothing">
92      Flexibility for published templates to inject stuff into the head tag.
93    </metal:block>
94
95    <metal:block metal:define-slot="javascript_head_slot" tal:replace="nothing">
96      Inserts javascript specified from a page.
97    </metal:block>
98
99  </head>
100
101  <body>
102  </body>
103
104</html>
Note: See TracBrowser for help on using the repository browser.