ed5f20597e7a2ec61d5ae2364df9e3a3b0b2ae96
[Plinn.git] / 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 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="cmf_default">
46 <form action="search" method="get" tal:attributes="action string:${portal_url}/search">
47 <table>
48 <tr><td><input name="SearchableText" size="16" /><input type="submit" value="Search" i18n:attributes="value" /></td></tr>
49 <tr><td><a href="search_form" tal:attributes="href string:${portal_url}/search_form" i18n:translate="">Advanced search</a></td></tr>
50 </table>
51 </form>
52 </td>
53 <!-- end nav_bar / search_form -->
54 </tr>
55 </table>
56 </div>
57
58
59 <div tal:define="uname python: (isAnon and [''] or [member.getMemberFullName(nameBefore=0)])[0]" metal:define-macro="user_menu_bar">
60 <table id="MemberActionsBox" border="0" cellspacing="0" i18n:domain="cmf_default">
61 <tr>
62 <td class="ActionTitle" tal:content="uname">Guest</td>
63 <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>
64 <td class="ActionLink" align="right">
65 <span tal:repeat="action user_actions">
66 <a href="#" tal:attributes="href action/url" tal:content="action/title">Login</a>
67 <span tal:condition="not: repeat/action/end"> | </span>
68 </span>
69 <span tal:condition="nothing"><a href="join_form" i18n:translate="">Join</a></span>
70 </td>
71 </tr>
72 </table>
73 </div>
74
75
76 <div metal:define-macro="Breadcrumbs" tal:omit-tag="">
77 <span tal:content="here/absolute_url" id="BC_Object_URL" style="display:none"></span>
78 <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>
79 </div>
80
81
82 <div id="leftCell" class="boxes_container" width="15%" metal:define-macro="leftCell"
83 tal:define="global_settings python:getattr(here, 'global_settings', None)"
84 tal:condition="python:global_settings is not None"
85 tal:omit-tag="">
86 <div tal:define="block python:getattr(here.global_settings, 'left_boxes', None)"
87 tal:condition="python:block is not None"
88 tal:omit-tag="">
89 <div tal:define="displayAction python:request.SESSION.get('editBoxes') and 'edit' or 'view'">
90
91 <a title="Paste" href="#" tal:attributes="href string:${block/absolute_url}/pasteBlocks"
92 tal:condition="python:displayAction == 'edit' and here.cb_dataValid() and block.haveRules()"
93 i18n:attributes="title"
94 ><img src="paste.png" alt="Paste" height="14" width="16" tal:attributes="src string:paste.png" border="0" i18n:attributes="alt" /></a>
95 <div metal:use-macro="here/block_canvas/macros/canvas">left boxes</div>
96 </div>
97 </div>
98 </div>
99
100 <div metal:define-macro="rightCell"
101 tal:define="global_settings python:getattr(here, 'global_settings', None)"
102 tal:omit-tag="">
103 <div tal:condition="python:global_settings is not None" tal:omit-tag="">
104 <div tal:define="block python:getattr(here.global_settings, 'right_boxes', None)"
105 tal:condition="python:block is not None" tal:omit-tag="">
106 <div tal:define="displayAction python:request.SESSION.get('editBoxes') and 'edit' or 'view'" tal:omit-tag="">
107 <div tal:condition="python:displayAction=='edit'" tal:omit-tag="">
108 <div style="text-align:right">
109 <a tal:attributes="href string:$portal_url/manage_boxes?exitMode:boolean=True" i18n:domain="plinn" i18n:translate="">Exit boxes editing</a>
110 </div>
111 <div tal:condition="python:here.cb_dataValid() and block.haveRules()">
112 <a title="Paste" href="#" tal:attributes="href string:${block/absolute_url}/pasteBlocks" i18n:attributes="title"
113 ><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 </div>
116 <div metal:use-macro="here/block_canvas/macros/canvas">right boxes</div>
117 </div>
118 </div>
119 </div>
120 <div metal:use-macro="here/widgets/macros/clipboard">Clipboard</div>
121 <div metal:use-macro="here/widgets/macros/news_box">5 last news</div>
122 </div>
123
124 </body>
125
126 </html>