source: WAeUP_SRP/fceokene/waeup_custom/main_template.pt @ 2379

Last change on this file since 2379 was 2277, checked in by Henrik Bettermann, 17 years ago

FCE Okene logo implemented.

File size: 9.9 KB
RevLine 
[2277]1<metal:block define-macro="master"
2  tal:define="showthirdcol showthirdcol|python:1;
3  emptybody emptybody|request/emptybody|nothing;
4  mtool here/portal_membership;
5 
6  utool nocall:here/portal_url;
7  atool here/portal_actions;
8  ttool here/portal_trees;
9  wtool here/portal_workflow;
10  ptool here/portal_cpsportlets;
11  context_url python:here.getContextUrl(utool=utool);
12  here_url here/absolute_url;
13  base_url here/getBaseUrl;
14  member mtool/getAuthenticatedMember;
15  isAnon mtool/isAnonymousUser;
16  isHomeless python:isAnon or member.getProperty('homeless', 0);
17  isHomeless python:(isHomeless == '0' and [0] or [isHomeless])[0];
18  actions python:atool.listFilteredActionsFor(here);
19  wf_state python:wtool.getInfoFor(here,'review_state','');
20  uname python: isAnon and 'Guest' or member.getUserName();
21  checkPerm nocall: mtool/checkPermission;
22  cpsmcat nocall:here/translation_service;
23  locale here/translation_service/getSelectedLanguage;
24  in_ws here/isInWorkspace;
25  waeup_skin here/get_waeup_skin;
26  student_theme python:test(waeup_skin == 'WAeUP_Student',1,0);
27  navigation_slot python:test(student_theme,'student_navigation_slot','navigation_slot');
28  object_tabs python:test(student_theme,'student_object_slot','staff_object_slot');
29 
30  ">
31  <metal:block define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
32    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33  </metal:block>
34  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
35        lang="en">
36    <head>
37      <metal:block use-macro="here/header_lib_header/macros/header|here/header_lib/macros/header">
38        <metal:block fill-slot="base">
39          <metal:block define-slot="base">
40            <base href=""
41                  tal:attributes="href string:${here_url}/" />
42          </metal:block>
43        </metal:block>
44        <metal:block fill-slot="head_slot">
45          <metal:block define-slot="head_slot" />
46        </metal:block>
47        <metal:block fill-slot="style_slot">
48          <link rel="stylesheet" type="text/css" media="all"
49                tal:attributes="href string:${base_url}common.css" />
50          <link rel="stylesheet" type="text/css" media="all"
51                tal:attributes="href string:${base_url}${waeup_skin}/render.css" />
52          <metal:block define-slot="style_slot" />
53        </metal:block>
54        <metal:block fill-slot="javascript_head_slot">
55          <metal:block define-slot="javascript_head_slot" />
56        </metal:block>
57      </metal:block>
58      <link rel="icon"
59            href="ng.png"
60            tal:attributes="href string:${base_url}ng.png"
61            type="image/png" />
62      <link rel="shortcut icon"
63            href="icons/ng.png"
64            tal:attributes="href string:${base_url}ng.png"
65            type="image/png" />
66    </head>
67    <body tal:condition="emptybody"
68          style="margin: 0px;"
69          tal:attributes="onload here/getOnLoad|string:setFocus();">
70      <metal:block define-slot="body" />
71      <metal:block define-slot="main" />
72    </body>
73   
74    <body tal:condition="not:emptybody"
75          style="margin: 0px;"
76          tal:attributes="onload here/getOnLoad|string:setFocus();">
77     
78     
79      <table summary="Logo Block"
80             style="margin-left: auto; margin-right: auto; width: 100%;"
81             class="shapeNoBorder colorTransparent" cellpadding="0"
82             cellspacing="0">
83        <tbody>
84          <tr>
85            <td style="width: 20px;"></td>
86            <td style="width: 170px; text-align: center; padding-top: 0.5em;">
87              <img tal:attributes="src string:${base_url}logo_left.jpg"  alt="Logo" />
88            </td>
89            <td padding=0.5em><h1>Federal College of Education Okene<br />Kogi State, Nigeria</h1></td>
90            <td style="width: 20px;"></td>
91          </tr>
92        </tbody>
93      </table>
94
95      <table summary="Navigation Block"
96             style="margin-left: auto; margin-right: auto; width: 100%;"
97             class="shapeNoBorder colorTransparent" cellpadding="0"
98             cellspacing="0">
99        <tbody>
100          <tr>
101            <td style="width: 20px;" valign="top"></td>
102            <td style="" valign="top">
103              <div id="navigation_slot"
104                       style="padding: 0em 0em 1px; text-align: right;"
105                       class="fontColornavigation fontShapenavigation portalTabTabStyle cpsskinsHBox body">
106                 <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot=navigation_slot)"
107                  tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet)" />
108              </div>
109            </td>
110            <td style="width: 20px;" valign="top"></td>
111          </tr>
112        </tbody>
113      </table>
114     
115     
116      <table summary="Main Table Block 1"
117           style="margin-left: auto; margin-right: auto; width: 100%;"
118           cellpadding="0" cellspacing="0">
119      <tbody>
120        <tr>
121          <td style="width: 20px;" valign="top"></td>
122          <td style="width: 170px;text-align: center;"
123              valign="top">
124            <div id="portal_session" style="padding: 0.4em 0.4em 0.4em 0.3em;"
125                 class="colorBarAreaColor fontColordefaultnovisitedlinks fontShapeaverage shapeAreaShape9">
126                    <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='portal_session')"
127                               tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
128            </div>
129          </td>
130          <td style="text-align: left; padding: 0.2em 0.2em 0em;" class="colorBarColor" valign="top">
131            <metal:block define-slot="action_slot" />
132            <div id="object_tabs" class="fontColornavigation fontShapeaverage cpsskinsHBox body"
133                 tal:define="portlets python:ptool.getPortlets(context=context, slot=object_tabs)">
134                <tal:block repeat="portlet portlets"
135                           tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet)" />
136            </div>
137          </td>
138          <td tal:condition="not:student_theme"
139              class="colorBarColor" valign="top" style="text-align: right;padding: 0.2em 0.2em 0em; width: 280px;">
140            <div id="status_slot" class="fontColordefaultfontcolors fontShapeaverage cpsskinsHBox body"
141                 tal:define="portlets python:ptool.getPortlets(context=context, slot='status_slot')">
142                <tal:block repeat="portlet portlets"
143                           tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
144            </div>
145          </td>
146          <td style="width: 20px;"
147              valign="top"></td>
148        </tr>
149      </tbody>
150    </table>
151 
152 
153 
154    <table summary="Main Table Block 2"
155             style="margin-left: auto; margin-right: auto; width: 100%;"
156             class="" cellpadding="0" cellspacing="0">
157      <tbody>
158        <tr>
159          <td style="width: 20px;" valign="top"></td>
160          <td style="width: 170px;text-align: left;"
161              class="colorBarColor fontColornavigation fontShapeaverage boxShapenavbox cpsskinsBox" valign="top">
162            <div id="staff_actions_slot" class="body" style="padding: 1.5em 0.5em 1.5em 0.5em;">
163              <tal:block tal:condition="not:student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='staff_actions_slot')"
164                         tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
165              <tal:block tal:condition="not:student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='global_actions_slot')"
166                         tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
167              <tal:block tal:condition="student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='student_actions_slot')"
168                         tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
169
170              <span tal:condition="student_theme">
171              <div style="padding: 0em;">
172                <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='student_workflow')"
173                             tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
174              </div>
175                   
176              <div style="padding-top: 10px;">
177              <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='student_notice_slot')"
178                             tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
179              </div>
180              </span>
181
182
183            </div>
184          </td>
185          <td style="" class="shapeAreaShape5 colorBarAreaColor" valign="top">
186            <div style="padding: 0.5em; text-align: left;" class="fontColordefaultfontcolors fontShapeaverage">
187              <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" />
188              <metal:block define-slot="header" />
189              <metal:block define-slot="main" />
190              <metal:block define-slot="sub" />
191            </div>
192          </td>
193          <td style="width: 20px;" valign="top"></td>
194        </tr>
195      </tbody>
196    </table>
197   
198   
199    <table summary="Copyright Info Block"
200             style="margin-left: auto; margin-right: auto; width: 100%;"
201             cellspacing="0">
202        <tbody>
203          <tr>
204            <td style="width: 20px;" valign="top"></td>
205            <td style="padding: 0.2em; text-align: right;" valign="top">
206              <div class="fontColordefaultfontcolors fontShapeaverage">
207              Copyright WAeUP Group 2007</div>
208            </td>
209            <td style="width: 20px;" valign="top"></td>
210          </tr>
211        </tbody>
212    </table>
213    </body>
214  </html>
215</metal:block>
Note: See TracBrowser for help on using the repository browser.