Ignore:
Timestamp:
13 Apr 2007, 12:20:32 (17 years ago)
Author:
joachim
Message:

first step to implement the WAeUP_Themes
it works like this:
there are theme-directories under waeup_design
WAeUP_Student and WAeUP_Backoffice. All theme-dependent stylesheets go there.

for each theme-dependent portlet there is a macro in theme.pt in the themes
directory.

The main_template.pt is in waeup_design and calls the macros from the themes
directory.

The student-theme looks quite similar to the original, but the
backoffice-theme is not usable.

For the "slips" there is a slip_template. To display the slips correctly all
slip-pts have to be modified to uses this template.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/branches/regebro-noskins/skins/waeup_design/main_template.pt

    r1614 r1685  
    2424  in_ws here/isInWorkspace;
    2525  waeup_skin here/get_waeup_skin;
    26 "><metal:block define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    27     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"></metal:block>
     26  ">
     27  <metal:block define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     28    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     29  </metal:block>
    2830  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
    29   lang="en">
     31        lang="en">
    3032    <head>
    3133      <metal:block use-macro="here/header_lib_header/macros/header|here/header_lib/macros/header">
    32 
    3334        <metal:block fill-slot="base">
    3435          <metal:block define-slot="base">
    3536            <base href=""
    36             tal:attributes="href string:${here_url}/" />
     37                  tal:attributes="href string:${here_url}/" />
    3738          </metal:block>
    3839        </metal:block>
     
    4243        <metal:block fill-slot="style_slot">
    4344          <link rel="stylesheet" type="text/css" media="all"
    44             title="CPSSkins styles"
    45             tal:attributes="href string:${base_url}${waeup_skin}/cpsskins_common.css" />
     45                title="CPSSkins styles"
     46                tal:attributes="href string:${base_url}cpsskins_common.css" />
    4647          <link rel="stylesheet" type="text/css" media="all"
    47             title="CPSSkins styles"
    48             tal:attributes="href string:${base_url}${waeup_skin}/cpsskins_render.css" />
     48                title="CPSSkins styles"
     49                tal:attributes="href string:${base_url}${waeup_skin}/cpsskins_render.css" />
    4950          <style type="text/css" media="all"
    50             tal:content="string:@import url(${base_url}${waeup_skin}/cpsskins_common-css2.css);"/>
     51                 tal:content="string:@import url(${base_url}cpsskins_common-css2.css);"/>
    5152          <metal:block define-slot="style_slot" />
    5253        </metal:block>
     
    5657      </metal:block>
    5758      <link rel="icon"
    58       href="http://uniben.waeup.org/portal_themes/WAeUP_Student/icons/ng.png"
    59       type="image/png" />
     59            href="http://uniben.waeup.org/portal_themes/WAeUP_Student/icons/ng.png"
     60            type="image/png" />
    6061      <link rel="shortcut icon"
    61       href="http://uniben.waeup.org/portal_themes/WAeUP_Student/icons/ng.png"
    62       type="image/png" />
     62            href="http://uniben.waeup.org/portal_themes/WAeUP_Student/icons/ng.png"
     63            type="image/png" />
    6364      <!-- CSS1 -->
    6465    </head>
    6566    <body tal:condition="emptybody"
    66     style="margin: 0px;"
    67     tal:attributes="onload here/getOnLoad|string:setFocus();">
     67          style="margin: 0px;"
     68          tal:attributes="onload here/getOnLoad|string:setFocus();">
    6869      <metal:block define-slot="body" />
    6970      <metal:block define-slot="main" />
    7071    </body>
    7172    <body tal:condition="not:emptybody"
    72     style="margin: 0px;"
    73     tal:attributes="onload here/getOnLoad|string:setFocus();">
    74       <!-- AA -->
     73          style="margin: 0px;"
     74          tal:attributes="onload here/getOnLoad|string:setFocus();">
    7575      <div>
    7676        <a href="http://uniben.waeup.org/accessibility"
    77         accesskey="0"></a>
     77           accesskey="0"></a>
    7878        <a href="http://uniben.waeup.org/" accesskey="1"></a>
    7979        <a href="#content" accesskey="2"></a>
    8080        <a href="#menu" accesskey="3"></a>
    8181        <a href="http://uniben.waeup.org/advanced_search_form"
    82         accesskey="4"></a>
     82           accesskey="4"></a>
    8383        <a href="http://uniben.waeup.org/" accesskey="7"></a>
    8484      </div>
    8585      <table summary="Page Block"
    86       style="margin-left: auto; margin-right: auto; width: 100%;"
    87       class="shapeNoBorder colorTransparent" cellpadding="0"
    88       cellspacing="0">
     86             style="margin-left: auto; margin-right: auto; width: 100%;"
     87             class="shapeNoBorder colorTransparent" cellpadding="0"
     88             cellspacing="0">
    8989        <tbody>
    9090          <tr>
     
    9393              <div style="padding: 0.5em;">
    9494                <div style="padding: 0.5em; text-align: right;"
    95                 class="fontColordefaultfontcolors fontShapeaverage">
    96 
     95                     class="fontColordefaultfontcolors fontShapeaverage">
    9796                  <img tal:attributes="src string:${base_url}uniben_mark.jpg"  alt="Logo"
    98                   height="84" width="82" />
     97                       height="84" width="82" />
    9998                </div>
    10099              </div>
     
    103102              <div style="padding: 1.5em 0em 0em;">
    104103                <div style="padding: 0.5em; text-align: left;"
    105                   class="fontColordefaultfontcolors fontShapeaverage">
     104                     class="fontColordefaultfontcolors fontShapeaverage">
    106105                  <img tal:attributes="src string:${base_url}uniben_logo.gif"
    107                     alt="Logo" height="51" width="234" />
     106                       alt="Logo" height="51" width="234" />
    108107                </div>
    109108              </div>
     
    114113      </table>
    115114      <table summary="Page Block"
    116       style="margin-left: auto; margin-right: auto; width: 100%;"
    117       class="shapeNoBorder colorTransparent" cellpadding="0"
    118       cellspacing="0">
     115             style="margin-left: auto; margin-right: auto; width: 100%;"
     116             class="shapeNoBorder colorTransparent" cellpadding="0"
     117             cellspacing="0">
    119118        <tbody>
    120119          <tr>
     
    125124        </tbody>
    126125      </table>
    127       <table summary="Page Block"
    128       style="margin-left: auto; margin-right: auto; width: 100%;"
    129       class="shapeNoBorder colorTransparent" cellpadding="0"
    130       cellspacing="0">
    131         <tbody>
    132           <tr>
    133             <td style="width: 20px;" valign="top"></td>
    134             <td style="" valign="top">
    135               <div style="padding: 0em 0em 1px;">
    136                 <div style="text-align: right;"
    137                 class="fontColornavigation fontShapenavigation">
    138                   <div style="padding: 0pt; text-align: right;">
    139                     <div style="">
    140                       <div class="portalTabTabStyle">
    141                         <div class="cpsskinsHBox body">
    142                           <div id="student_navigation_slot">
    143                             <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='student_navigation_slot')"
    144                                 tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
    145                           </div>
    146                         </div>
    147                         <div style="clear: both;"></div>
    148                       </div>
     126    <metal:block use-macro="here/?waeup_skin/theme/macros/navigation" />
     127    <metal:block use-macro="here/?waeup_skin/theme/macros/session" />
     128    <table summary="Page Block"
     129             style="margin-left: auto; margin-right: auto; width: 100%;"
     130             class="" cellpadding="0" cellspacing="0">
     131      <tbody>
     132        <tr>
     133          <metal:block use-macro="here/?waeup_skin/theme/macros/tdactions" />
     134          <td style=""
     135              class="shapeAreaShape5 colorStudentBarAreaColor"
     136              valign="top">
     137            <div style="padding: 0.2em;">
     138              <div style="text-align: left;"
     139                   class="fontColordefaultfontcolors fontShapeaverage">
     140                <div style="padding: 0pt; text-align: left;">
     141                  <div style="padding: 0.2em;">
     142                    <div id="main_slot_student">
     143                      <metal:block define-slot="header" />
     144                      <metal:block define-slot="main" />
     145                      <metal:block define-slot="sub" />
    149146                    </div>
    150147                  </div>
    151148                </div>
    152149              </div>
    153             </td>
    154             <td style="width: 20px;" valign="top"></td>
    155           </tr>
    156         </tbody>
    157       </table>
    158       <table summary="Main"
    159       style="margin-left: auto; margin-right: auto; width: 100%;"
    160       class="" cellpadding="0" cellspacing="0">
    161         <tbody>
    162           <tr>
    163             <td style="width: 20px;" valign="top"></td>
    164             <td style="width: 150px;"
    165             class="shape colorStudentBarColor" valign="top">
    166               <div style="text-align: left;"
    167               class="colorStudentBarAreaColor fontColordefaultnovisitedlinks fontShapeaverage shapeAreaShape9">
    168 
    169                 <div style="padding: 0pt; text-align: left;">
    170                   <div style="padding: 0.4em 0.4em 0.4em 0.3em;">
    171                     <div id="portal_session">
    172                       <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='portal_session')"
    173                           tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
    174                     </div>                       
    175                   </div>
    176                 </div>
    177               </div>
    178             </td>
    179             <td style="" class="shape colorStudentBarColor"
    180             valign="top">
    181               <div style="text-align: left;"
    182               class="fontColornavigation fontShapeaverage">
    183                 <div style="padding: 0pt; text-align: left;">
    184                   <div style="padding: 0.2em 0.2em 0em;">
    185                     <div class="cpsskinsHBox body">                   
    186                       <div id="student_object_tabs">
    187                         <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='student_object_tabs')"
    188                             tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
    189                       </div>                                           
    190                     </div>
    191                     <div style="clear: both;"></div>
    192                   </div>
    193                 </div>
    194               </div>
    195             </td>
    196             <td style="width: 20px;" class="shape color"
    197             valign="top"></td>
    198           </tr>
    199         </tbody>
    200       </table>
     150            </div>
     151          </td>
     152          <td style="width: 20px;" valign="top"></td>
     153        </tr>
     154      </tbody>
     155    </table>
    201156      <table summary="Page Block"
    202       style="margin-left: auto; margin-right: auto; width: 100%;"
    203       class="" cellpadding="0" cellspacing="0">
    204         <tbody>
    205           <tr>
    206             <td style="width: 20px;" valign="top"></td>
    207             <td style="width: 150px;"
    208             class="shape colorStudentBarColor" valign="top">
    209               <div style="padding: 0.4em 0.2em 0.2em;">
    210                 <div style="text-align: left;"
    211                 class="fontColornavigation fontShapeaverage">
    212                   <div style="padding: 0pt; text-align: left;">
    213                     <div style="padding: 0.2em;">
    214                       <div class="boxShapenavbox cpsskinsBox">
    215                         <div class="body">
    216                           <div id="student_actions_slot">
    217                             <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='student_actions_slot')"
    218                                 tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
    219                           </div>                       
    220                         </div>
    221                       </div>
    222                     </div>
    223                   </div>
    224                 </div>
    225               </div>
    226               <div style="padding: 0.2em;">
    227                 <div style="text-align: left;"
    228                 class="fontColornavigation fontShapeaverage"></div>
    229               </div>
    230             </td>
    231             <td style=""
    232             class="shapeAreaShape5 colorStudentBarAreaColor"
    233             valign="top">
    234               <div style="padding: 0.2em;">
    235                 <div style="text-align: left;"
    236                 class="fontColordefaultfontcolors fontShapeaverage">
    237 
    238                   <div style="padding: 0pt; text-align: left;">
    239                     <div style="padding: 0.2em;">
    240                       <div id="main_slot_student">
    241                         <metal:block define-slot="header" />
    242                         <metal:block define-slot="main" />
    243                         <metal:block define-slot="sub" />
    244                       </div>
    245                     </div>
    246                   </div>
    247                 </div>
    248               </div>
    249             </td>
    250             <td style="width: 20px;" valign="top"></td>
    251           </tr>
    252         </tbody>
    253       </table>
    254       <table summary="Page Block"
    255       style="margin-left: auto; margin-right: auto; width: 100%;"
    256       class="shapeNoBorder colorTransparent" cellpadding="0"
    257       cellspacing="0">
     157             style="margin-left: auto; margin-right: auto; width: 100%;"
     158             class="shapeNoBorder colorTransparent" cellpadding="0"
     159             cellspacing="0">
    258160        <tbody>
    259161          <tr>
     
    261163            <td style="" valign="top">
    262164              <div style="padding: 0.2em; text-align: right;"
    263               class="fontColordefaultfontcolors fontShapeaverage">
     165                   class="fontColordefaultfontcolors fontShapeaverage">
    264166              Copyright WAeUP Group 2007</div>
    265167            </td>
Note: See TracChangeset for help on using the changeset viewer.