Déplacement pour eggification.
[Plinn.git] / Products / Plinn / skins / generic / main_template_macros.pt
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3 <html xmlns="http://www.w3.org/1999/xhtml">
4
5 <head>
6 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
7 <title></title>
8 </head>
9
10 <body>
11
12 <div metal:define-macro="global_defines" tal:omit-tag=""
13 tal:define="
14 global utool nocall:here/portal_url;
15 global mtool here/portal_membership;
16 global atool here/portal_actions;
17 global wtool here/portal_workflow;
18 global portal_object utool/getPortalObject;
19 global portal_title portal_object/Title;
20 global object_title here/title_or_id;
21 global portal_url utool;
22 global member mtool/getAuthenticatedMember;
23 global membersfolder mtool/getMembersFolder;
24 global isAnon mtool/isAnonymousUser;
25 global actions python: atool.listFilteredActionsFor( here );
26 global user_actions actions/user;
27 global object_actions actions/object;
28 global workflow_actions actions/workflow;
29 global folder_actions actions/folder;
30 global global_actions actions/global;
31 global wf_state python:wtool.getInfoFor(here,'review_state','');
32 global locale_date_fmt here/locale_date_fmt;
33 global dummy python:request.RESPONSE.setHeader('Content-Type', 'text/html;;charset=utf-8');
34 Iterator python:modules['Products.Plinn'].IndexIterator;
35 global tabindex python:Iterator();
36 global specialCtxHeader options/specialCtxHeader|nothing"
37 />
38
39
40 <div id="top_bar" metal:define-macro="top_bar">
41 <table id="Masthead" cellspacing="0" border="0">
42 <tr>
43 <td id="PortalLogo"><a href="#" tal:attributes="href string:${portal_url}?noajax=1; title portal_object/title_or_id"><img src="logo.gif" tal:define="logo here/logo.png" tal:attributes="src logo/absolute_url; alt portal_object/title_or_id; height logo/height; width logo/width" /></a></td>
44 <!-- nav_bar / search_form -->
45 <td id="NavBar" align="right" i18n:domain="plinn"
46 tal:condition="not:isAnon">
47 <form action="search" method="get" tal:attributes="action string:${portal_url}/search">
48 <table>
49 <tr><td><input name="SearchableText" size="16" /><input type="submit" value="Search" i18n:attributes="value" /></td></tr>
50 <tr><td><a href="search_form" tal:attributes="href string:${portal_url}/search_form" i18n:translate="">Advanced search</a></td></tr>
51 </table>
52 </form>
53 </td>
54 <!-- end nav_bar / search_form -->
55 </tr>
56 </table>
57 </div>
58
59
60 <div id="user_menu_bar" metal:define-macro="user_menu_bar"
61 tal:define="uname python: (isAnon and [''] or [member.getMemberFullName(nameBefore=0)])[0]">
62 <table id="MemberActionsBox" border="0" cellspacing="0" i18n:domain="plinn">
63 <tr>
64 <td class="ActionTitle" tal:content="uname">Guest</td>
65 <td><img tal:attributes="src here/loading_progress.gif/absolute_url" width="82" height="7" id="loading_progress" alt="Loading progress..." i18n:attributes="alt" style="display:none" /></td>
66 <td class="ActionLink" align="right">
67 <span tal:repeat="action user_actions">
68 <a href="#" tal:attributes="href action/url" tal:content="action/title">Login</a>
69 <span tal:condition="not: repeat/action/end"> | </span>
70 </span>
71 <span tal:condition="nothing"><a href="join_form" i18n:translate="">Join</a></span>
72 </td>
73 </tr>
74 </table>
75 </div>
76
77
78 <div metal:define-macro="Breadcrumbs" tal:omit-tag="">
79 <span tal:content="here/absolute_url" id="BC_Object_URL" style="display:none"></span>
80 <span i18n:translate="">You are here:</span> <span tal:omit-tag="" tal:repeat="bc options/breadcrumbs|here/breadcrumbs"><a href="." tal:attributes="href bc/url" tal:content="python:bc['title'] or bc['id']" tal:omit-tag="not:bc/url">ID</a><span tal:condition="not: repeat/bc/end" tal:omit-tag=""> <img src="fleche_bc.gif" alt="/" height="14" width="11" tal:attributes="src string:${portal_url}/fleche_bc.gif" border="0" /> </span> </span>
81 </div>
82
83
84 <div id="leftCell" class="boxes_container" width="15%" metal:define-macro="leftCell"
85 tal:define="global_settings python:getattr(here, 'global_settings', None)"
86 tal:condition="python:global_settings is not None"
87 tal:omit-tag="">
88 <div tal:define="block python:getattr(here.global_settings, 'left_boxes', None)"
89 tal:condition="python:block is not None"
90 tal:omit-tag="">
91 <div tal:define="displayAction python:request.SESSION.get('editBoxes') and 'edit' or 'view'">
92
93 <a title="Paste" href="#" tal:attributes="href string:${block/absolute_url}/pasteBlocks"
94 tal:condition="python:displayAction == 'edit' and here.cb_dataValid() and block.haveRules()"
95 i18n:attributes="title"
96 ><img src="paste.png" alt="Paste" height="14" width="16" tal:attributes="src string:paste.png" border="0" i18n:attributes="alt" /></a>
97 <div metal:use-macro="here/block_canvas/macros/canvas">left boxes</div>
98 </div>
99 </div>
100 </div>
101
102 <div metal:define-macro="rightCell"
103 tal:define="global_settings python:getattr(here, 'global_settings', None)"
104 tal:omit-tag="">
105 <div tal:condition="python:global_settings is not None" tal:omit-tag="">
106 <div tal:define="block python:getattr(here.global_settings, 'right_boxes', None)"
107 tal:condition="python:block is not None" tal:omit-tag="">
108 <div tal:define="displayAction python:request.SESSION.get('editBoxes') and 'edit' or 'view'" tal:omit-tag="">
109 <div tal:condition="python:displayAction=='edit'" tal:omit-tag="">
110 <div style="text-align:right">
111 <a tal:attributes="href string:$portal_url/manage_boxes?exitMode:boolean=True" i18n:domain="plinn" i18n:translate="">Exit boxes editing</a>
112 </div>
113 <div tal:condition="python:here.cb_dataValid() and block.haveRules()">
114 <a title="Paste" href="#" tal:attributes="href string:${block/absolute_url}/pasteBlocks" i18n:attributes="title"
115 ><img src="paste.png" alt="Paste" height="14" width="16" tal:attributes="src string:paste.png" border="0" i18n:attributes="alt" /></a>
116 </div>
117 </div>
118 <div metal:use-macro="here/block_canvas/macros/canvas">right boxes</div>
119 </div>
120 </div>
121 </div>
122 <div metal:use-macro="here/widgets/macros/clipboard">Clipboard</div>
123 <div metal:use-macro="here/widgets/macros/news_box">5 last news</div>
124 </div>
125
126 </body>
127
128 </html>