8ae5de3de8c58ac4c84f6defee20f0db9780d2bd
[Plinn.git] / skins / generic / main_template_ajax.pt
1 <fragments metal:define-macro="master">
2 <metal:block use-macro="here/main_template_macros/macros/global_defines"/>
3 <tal:block define="global dummy python:request.RESPONSE.setHeader('Content-Type', 'text/xml;;charset=utf-8')"/>
4 <base tal:omit-tag="" metal:define-slot="base" />
5 <fragment id="mainCell"><span tal:replace="structure string:&lt;![CDATA[" />
6 <link metal:define-slot="css_slot" tal:replace="nothing" />
7
8 <div id="Object_URL" tal:content="here/absolute_url" style="display:none"></div>
9 <script type="text/javascript" metal:define-slot="javascript_head_slot" tal:replace="nothing"></script>
10 <div id="DesktopStatusBar" tal:condition="request/portal_status_message|nothing">
11 <img src="info.gif" alt="Information" tal:attributes="src here/info.gif/absolute_url" i18n:attributes="alt" />
12 <span tal:content="request/portal_status_message" i18n:translate="">Status message.</span>
13 </div>
14 <div metal:define-slot="body" tal:omit-tag="">
15 <div metal:define-slot="main_no_tabs" tal:omit-tag="">
16 <div tal:condition="specialCtxHeader" tal:content="structure specialCtxHeader">special context header</div>
17 <div id="ContentTabs" tal:condition="not:specialCtxHeader">
18 <div class="tabs" metal:use-macro="here/tabs/macros/tabs">Content tabs</div>
19 <div metal:use-macro="here/tabs/macros/additional_tabs">Additional tabs</div>
20 </div>
21 <div id="ForematterCell">
22 <div class="header">
23 <div tal:omit-tag="" metal:define-slot="header">
24 <h1 id="DesktopTitle">
25 <span tal:replace="here/title_or_id">Page Title</span>
26 </h1>
27 <div id="DesktopDescription" tal:content="structure here/Description">
28 Description of the resource goes here, perhaps even wrapping lines; this is to make it long enough to test.
29 </div>
30 </div>
31 </div>
32
33 <div id="Desktop">
34 <div metal:define-slot="main">
35 <h2>Section Header</h2>
36 <p>The content of the object is <a href=".">rendered</a>
37 hre. Lorem ipsum dolorem. Nihil obstat imprimatur. Semper ubi sub ubi.
38 Non illegitimi carborundum. In vino veritas. E pluribus unam.
39 </p>
40 </div>
41 </div>
42 <div tal:condition="not:isAnon" tal:omit-tag="">
43 <div id="ContentByLine" metal:use-macro="here/content_byline/macros/byline">
44 Content by me
45 </div>
46 </div>
47 <div metal:define-slot="footer" tal:replace="nothing">footer slot</div>
48 </div>
49 </div>
50 </div>
51 <span tal:replace="structure string:]]>" /></fragment>
52
53 <tal:block define="browserObjectUrl python:request.get('_browserObjectUrl');
54 fragments python:(browserObjectUrl and browserObjectUrl != here.absolute_url()) and ['Breadcrumbs', 'rightCell'] or request.get('syncFragments', []);"
55 condition="fragments">
56 <tal:loop define="main_macros here/main_template_macros/macros"
57 repeat="macroName fragments">
58 <fragment tal:attributes="id macroName"><span tal:replace="structure string:&lt;![CDATA[" />
59 <metal:block metal:use-macro="python:main_macros[macroName]" />
60 <span tal:replace="structure string:]]>" /></fragment>
61 </tal:loop>
62 </tal:block>
63
64 </fragments>