<metal:macro metal:define-macro="master"
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html tal:define="utool nocall:here/portal_url;
                  mtool here/portal_membership;
                  atool here/portal_actions;
                  wtool here/portal_workflow;
                  portal_object utool/getPortalObject;
                  portal_title portal_object/Title;
                  object_title here/Title;
                  portal_url utool;
                  member mtool/getAuthenticatedMember;
                  membersfolder mtool/getMembersFolder;
                  isAnon mtool/isAnonymousUser;
                  actions python: atool.listFilteredActionsFor( here );
                  user_actions actions/user;
                  object_actions actions/object;
                  workflow_actions actions/workflow;
                  folder_actions actions/folder;
                  global_actions actions/global;
                  wf_state python:wtool.getInfoFor(here,'review_state','');
                 "
>

<head>
 <title tal:content="here/expanded_title"> Title goes here </title>

 <metal:slot define-slot="base" />

 <link rel="stylesheet" type="text/css" href="zpt_stylesheet.css"
       tal:attributes="href here/zpt_stylesheet.css/absolute_url" />
 <link rel="stylesheet" type="text/css" href="CalendarStyle.css"
       tal:condition="here/CalendarStyle.css|nothing"
       tal:attributes="href here/CalendarStyle.css/absolute_url" />
 <metal:slot define-slot="style_slot" />
</head>

<body>

<div metal:define-macro="top_bar">

 <!-- hack around netscape 4.x to ensure table is solid -->
 <table width="100%" border="0" cellpadding="0" cellspacing="0">
 <tr>
 <td>

 <!-- Top bar -->
 <table id="Masthead"
        width="100%" cellpadding="0" cellspacing="0" border="0">

  <tr>
   <td id="PortalLogo">
    <a href="." tal:attributes="href string:${portal_url}/"
    ><img src="Zope_logo.gif" alt="Zope Logo"
          border="0" width="87" height="38"
          tal:attributes="src string:${portal_url}/Zope_logo.gif" /></a>
   </td>

   <td id="PortalTitle">
    <span tal:content="string:${portal_title}">Site Title</span>
   </td>

   <td id="NavBar" i18n:domain="cmf_default">
   <form action="search" method="get"
         tal:attributes="action string:${portal_url}/search">
    <a href="."
       tal:attributes="href string:${portal_url}/"
       i18n:translate="">home</a>&nbsp;
    <span tal:condition="membersfolder" tal:omit-tag="">
    <a href="roster"
       tal:attributes="href python: membersfolder.absolute_url()"
       tal:content="python: membersfolder.getId().lower()"
       i18n:translate="">members</a>&nbsp;
    </span>
    <a href="recent_news"
       tal:attributes="href string:${portal_url}/recent_news"
       i18n:translate="">news</a>&nbsp;
    <a href="search_form"
       tal:attributes="href string:${portal_url}/search_form"
       i18n:translate="">search</a>

    <input name="SearchableText" size="16" />
    <input type="image" name="go" value="go" src="go.gif"
           align="middle"
           tal:attributes="src string:${portal_url}/go.gif" /> &nbsp;
   </form>
   </td>
  </tr>

 </table>
 <!-- end topbar -->

 </td>
 </tr>
 </table>
 <!-- end NS4 hack -->

<!-- end top_bar-->
</div>

<div metal:define-macro="user_menu_bar"
     tal:define="uname python: isAnon and 'Guest' or member.getUserName()" >

 <!-- hack around netscape 4.x to ensure table is solid -->
 <table width="100%" border="0" cellpadding="0" cellspacing="0"
        i18n:domain="cmf_default">
 <tr>
 <td>

 <!-- user_menu_bar -->
 <table id="MemberActionsBox"
        width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td class="ActionTitle" tal:content="uname">Guest</td>
   <td class="ActionLink" align="right">
    <tal:span tal:repeat="action user_actions"
    ><a href="" tal:attributes="href action/url"
                tal:content="action/title" i18n:translate="">Login</a
    ><tal:span tal:condition="not: repeat/action/end"> |</tal:span></tal:span>
    <tal:span tal:condition="nothing"
    ><a href="">Join</a></tal:span> </td>
  </tr>
 </table>
 <!-- end user_menu_bar -->

 </td>
 </tr>
 </table>
 <!-- end NS4 hack -->

<!-- end user_menu_bar div-->
</div>

<div id="main_body">


 <table class="Forematter"
        width="100%" border="0" cellpadding="0" cellspacing="0" >
 <tr>
 <td width="20%">

  <!-- actions box -->
  <table class="ContextActionsBox"
         width="100%"
         style="float: left;"
         metal:define-macro="actions_box"
         i18n:domain="cmf_default">

   <!-- object actions -->
   <tr class="ContextActionsRow">

    <td class="ActionTitle"
        tal:define="getIcon python:hasattr(here, 'getIcon') and here.getIcon();
                    icon python:getIcon or getattr(here, 'icon', '');
                    typ python:getattr(here, 'Type', '');
                    objID python:here.truncID( here.getId(), size=15 )">

     <img src="icon" align="left" title="Type" alt="[X]"
          height="16" width="16"
          tal:condition="icon"
          tal:attributes="src string:${portal_url}/${icon};
                          alt typ; "
          i18n:attributes="alt" /> &nbsp;

     <span tal:replace="structure objID">ID</span>
    </td>
   </tr>

   <tr class="ContextActionsRow"
       tal:condition="python: len( object_actions ) > 1"
   >

    <td class="ActionLink">

     <span tal:repeat="action object_actions">
      <a href=""
         tal:attributes="href action/url"
         tal:content="action/title"
         i18n:translate="">View</a><br />
     </span>

     <span tal:condition="nothing">
      <a href="">Edit</a><br />
     </span>

     <span tal:condition="nothing">
      <a href="">Metadata</a><br />
     </span>

    </td>
   </tr>

   <!-- workflow actions -->
   <tr class="ContextActionsRow"
       tal:condition="workflow_actions" >

    <td class="ActionLink">

      <span class="ObjectStatus">
       <span tal:omit-tag=""
             i18n:translate="">Status:</span>
       <span tal:omit-tag=""
             tal:content="wf_state"
             i18n:translate="">Private</span><br />
      </span>

      <span tal:repeat="action workflow_actions">
       <a href="content_submit_form"
          tal:attributes="href action/url"
          tal:content="action/title"
          i18n:translate="">Submit</a><br />
      </span>
    </td>
   </tr>

   <!-- folder actions -->
   <tr class="ContextActionsRow"
       tal:condition="folder_actions"
   >
    <td class="ActionLink">
      <span tal:repeat="action folder_actions">
       <a href="../folder_contents"
          tal:attributes="href action/url"
          tal:content="action/title"
          i18n:translate="">Folder contents</a><br />
      </span>
    </td>
   </tr>

   <!-- global actions -->
   <tr class="ContextActionsRow"
       tal:condition="global_actions"
   >
    <td class="ActionLink">
     <span tal:repeat="action global_actions">
      <a href="undo_form"
         tal:attributes="href action/url"
         tal:content="action/title"
         i18n:translate="">Undo</a><br />
     </span>
    </td>
   </tr>

   <tr>
    <td>
     <div metal:use-macro="here/calendarBox/macros/calendarBox | default">
      <!-- CMFCalendar not Installed -->
     </div>
    </td>
   </tr>

  </table>
  <!-- end actions_box -->

 </td>

 <td width="2%">
  <br />
 </td>

 <td id="ForematterCell" width="78%">

  <p id="Breadcrumbs" style="padding-top: 5px">
   <span tal:repeat="bc here/breadcrumbs"
    ><a href="."
        tal:attributes="href bc/url" tal:content="bc/id"
     >ID</a><span tal:condition="not: repeat/bc/end">&nbsp;/&nbsp;</span>
   </span>
  </p>

  <p id="DesktopStatusBar"
     tal:condition="request/portal_status_message|nothing"
     tal:content="request/portal_status_message"
     i18n:translate="">Status message.</p>

  <div metal:define-slot="header">

    <h1 id="DesktopTitle"
        tal:content="here/Title"> Page Title </h1>

    <div id="DesktopDescription"
        tal:content="here/Description">
        Description of the resource goes here, perhaps even wrapping
        lines;  this is to make it long enough to test.
    </div>

  </div>

 <!-- end formatter -->

 <div id="Desktop">

 <div metal:define-slot="main">

 <h2> Section Header </h2>

 <p> The content of the object is <a href="render">rendered</a> hre.
     Lorem ipsum dolorem.  Nihil obstat imprimatur.  Semper ubi sub ubi.
     Non illegitimi carborundum.  In vino veritas.  E pluribus unam.
 </p>

 <!-- end main slot -->
 </div>
 
 <div id="Permalink"
      tal:define="url here/get_permalink | nothing"
      tal:condition="url">
  <span i18n:translate="" tal:omit-tag="">Permanent Link:</span>
  <a href="" tal:content="url" tal:attributes="href url">
    the permanent link if enabled
  </a>
 </div>

 <!-- end Desktop -->
 </div>

 </td>
 </tr>
 </table>

</div>

</body>
</html></metal:macro>
