Abandon de l’affichage de la position (c’est moche). Il faudra trouver un moyen de...
[Plinn.git] / skins / photo_theme / 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 metal:define-macro="top_bar">
41 <table id="Masthead" cellspacing="0" border="0">
42 <tr>
43 <td id="PortalLogo" width="215"><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.gif" tal:attributes="src logo/absolute_url; alt portal_object/title_or_id; height logo/height; width logo/width" /></a></td>
44 <td>
45 <div id="site_menu"
46 tal:define="menu actions/site_menu|nothing"
47 tal:condition="menu">
48 <span tal:repeat="a menu" tal:omit-tag="">
49 <a tal:content="a/title" tal:attributes="href a/url">Site Menu</a>
50 <span tal:condition="not:repeat/a/end" tal:omit-tag=""> |</span>
51 </span>
52 </div>
53 </td>
54 <td>
55 <img tal:attributes="src here/loading_progress.gif/absolute_url" width="32" height="32" id="loading_progress" alt="Loading progress..." i18n:attributes="alt" style="display:none" />
56 </td>
57 <td style="vertical-align:top">
58 <div id="site_related"
59 tal:define="menu actions/site_related|nothing"
60 tal:condition="menu">
61 <span tal:repeat="a menu" tal:omit-tag="">
62 <a tal:content="a/title" tal:attributes="href a/url">Site Menu</a>
63 <span tal:condition="not:repeat/a/end" tal:omit-tag=""> |</span>
64 </span>
65 </div>
66 </td>
67 </tr>
68 </table>
69 </div>
70
71
72 <div tal:define="uname python: (isAnon and [''] or [member.getMemberFullName(nameBefore=0)])[0]" metal:define-macro="user_menu_bar">
73 <table id="MemberActionsBox" border="0" cellspacing="0" i18n:domain="cmf_default">
74 <tr>
75 <td class="ActionTitle" tal:content="uname">Guest</td>
76 <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>
77 <td class="ActionLink" align="right">
78 <span tal:repeat="action user_actions">
79 <a href="#" tal:attributes="href action/url" tal:content="action/name" i18n:translate="">Login</a>
80 <span tal:condition="not: repeat/action/end"> | </span>
81 </span>
82 <span tal:condition="nothing"><a href="join_form" i18n:translate="">Join</a></span>
83 </td>
84 </tr>
85 </table>
86 </div>
87
88
89 <div metal:define-macro="Breadcrumbs" tal:omit-tag="">
90 <span tal:content="here/absolute_url" id="BC_Object_URL" style="display:none"></span>
91 <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']">ID</a><span tal:condition="not: repeat/bc/end" tal:omit-tag=""> / </span> </span>
92 </div>
93
94
95 <div id="leftCell" class="boxes_container" width="15%" metal:define-macro="leftCell"
96 tal:define="block python:getattr(here.global_settings, 'left_boxes', None) ;
97 displayAction python:request.SESSION.get('editBoxes') and 'edit' or 'view'"
98 tal:omit-tag="">
99 <div tal:condition="python:displayAction == 'edit' and here.cb_dataValid() and block.haveRules()">
100 <a title="Paste" href="#" tal:attributes="href string:${block/absolute_url}/pasteBlocks" i18n:attributes="title"><img src="paste.png" alt="Paste" height="14" width="16" tal:attributes="src string:paste.png" border="0" i18n:attributes="alt" /></a>
101 </div>
102 <div metal:use-macro="here/block_canvas/macros/canvas">left boxes</div>
103 </div>
104
105 <div metal:define-macro="rightCell"
106 tal:define="block python:getattr(here.global_settings, 'right_boxes', None) ;
107 displayAction python:request.SESSION.get('editBoxes') and 'edit' or 'view'"
108 tal:condition="python:block is not None">
109 <div tal:condition="python:displayAction=='edit'" style="text-align:right">
110 <a tal:attributes="href string:$portal_url/manage_boxes?exitMode:boolean=True" i18n:domain="plinn" i18n:translate="">Exit boxes editing</a><br/>
111 </div>
112 <div tal:condition="python:displayAction == 'edit' and here.cb_dataValid() and block.haveRules()">
113 <a title="Paste" href="#" tal:attributes="href string:${block/absolute_url}/pasteBlocks" i18n:attributes="title"><img src="paste.png" alt="Paste" height="14" width="16" tal:attributes="src string:paste.png" border="0" i18n:attributes="alt" /></a>
114 </div>
115
116 <div metal:use-macro="here/block_canvas/macros/canvas">right boxes</div>
117
118 <div metal:use-macro="here/widgets/macros/clipboard">Clipboard</div>
119 </div>
120
121 </body>
122
123 </html>