Déplacement pour eggification.
[Plinn.git] / Products / Plinn / skins / generic / main_template_ajax.pt
diff --git a/Products/Plinn/skins/generic/main_template_ajax.pt b/Products/Plinn/skins/generic/main_template_ajax.pt
new file mode 100644 (file)
index 0000000..3d407cb
--- /dev/null
@@ -0,0 +1,64 @@
+<fragments metal:define-macro="master">
+  <metal:block use-macro="here/main_template_macros/macros/global_defines"/>
+  <tal:block define="global dummy python:request.RESPONSE.setHeader('Content-Type', 'text/xml;;charset=utf-8')"/>
+  <base metal:define-slot="base" tal:attributes="href python: here.absolute_url() + '/'"/>
+<fragment id="mainCell"><span tal:replace="structure string:&lt;![CDATA[" />
+  <link metal:define-slot="css_slot" tal:replace="nothing" />
+
+  <div id="Object_URL" tal:content="here/absolute_url" style="display:none"></div>
+  <script type="text/javascript" metal:define-slot="javascript_head_slot" tal:replace="nothing"></script>
+  <div id="DesktopStatusBar" tal:condition="request/portal_status_message|nothing">
+    <img src="info.gif" alt="Information" tal:attributes="src here/info.gif/absolute_url" i18n:attributes="alt" />
+    <span tal:content="request/portal_status_message" i18n:translate="">Status message.</span>
+  </div>
+  <div metal:define-slot="body" tal:omit-tag="">
+  <div metal:define-slot="main_no_tabs" tal:omit-tag="">
+    <div tal:condition="specialCtxHeader" tal:content="structure specialCtxHeader">special context header</div>
+    <div id="ContentTabs" tal:condition="not:specialCtxHeader">
+      <div class="tabs" metal:use-macro="here/tabs/macros/tabs">Content tabs</div>
+      <div metal:use-macro="here/tabs/macros/additional_tabs">Additional tabs</div>
+    </div>
+    <div id="ForematterCell">
+      <div class="header">
+        <div tal:omit-tag="" metal:define-slot="header">
+          <h1 id="DesktopTitle">
+            <span tal:replace="here/title_or_id">Page Title</span>
+          </h1>
+          <div id="DesktopDescription" tal:content="structure here/Description">
+            Description of the resource goes here, perhaps even wrapping lines; this is to make it long enough to test.
+          </div>
+        </div>
+      </div>
+
+      <div id="Desktop">
+        <div metal:define-slot="main">
+          <h2>Section Header</h2>
+          <p>The content of the object is <a href=".">rendered</a>
+          hre. Lorem ipsum dolorem. Nihil obstat imprimatur. Semper ubi sub ubi.
+          Non illegitimi carborundum. In vino veritas. E pluribus unam.
+          </p>
+        </div>
+      </div>
+      <div tal:condition="not:isAnon" tal:omit-tag="">
+        <div id="ContentByLine" metal:use-macro="here/content_byline/macros/byline">
+          Content by me
+        </div>
+      </div>
+      <div metal:define-slot="footer" tal:replace="nothing">footer slot</div>
+    </div>
+  </div>
+  </div>
+<span tal:replace="structure string:]]>" /></fragment>
+
+<tal:block define="browserObjectUrl python:request.get('_browserObjectUrl');
+                   fragments python:(browserObjectUrl and browserObjectUrl != here.absolute_url()) and ['Breadcrumbs', 'rightCell'] or request.get('syncFragments', []);"
+           condition="fragments">
+  <tal:loop define="main_macros here/main_template_macros/macros"
+            repeat="macroName fragments">
+    <fragment tal:attributes="id macroName"><span tal:replace="structure string:&lt;![CDATA[" />
+      <metal:block metal:use-macro="python:main_macros[macroName]" />
+    <span tal:replace="structure string:]]>" /></fragment>
+  </tal:loop>
+</tal:block>
+
+</fragments>
\ No newline at end of file