<!-- $Id -->

<metal:logo define-macro="logo">
  <a href="#" name="logo" title="Home"
     tal:attributes="href macro/href;
                     title macro/title"><img
               src="logo.gif" border="0" alt="Home"
               tal:attributes="src string:${resourceBase}${macro/resourceName};
                               alt macro/alt" /></a>
</metal:logo>


<metal:meta define-macro="meta">
  <meta tal:attributes="name macro/metaName;
                        content macro/metaContent" />
</metal:meta>


<metal:css define-macro="css"
           tal:define="isIE macro/is_ie|nothing">
  <tal:ie condition="isIE"
          content="structure string:&lt;!--[if lt IE 8]&gt;" />
  <link rel="stylesheet" href="css/blueprint/screen.css" type="text/css"
        tal:attributes="href string:${resourceBase}${macro/resourceName};
                        media macro/media;" />
  <tal:ie condition="isIE"
          content="structure string:&lt;![endif]--&gt;" />
</metal:css>


<metal:js define-macro="js">
  <script type="text/javascript" src="node.js"
          tal:attributes="src string:${resourceBase}${macro/resourceName}">
  </script>
</metal:js>


<metal:js define-macro="js-execute">
    <script type="text/javascript" tal:content="macro/jsCall"></script>
</metal:js>


<!-- portlets and similar collections of actions -->

<metal:portlet define-macro="portlet_left">
    <div metal:use-macro="macro/template/macros/portlet" />
</metal:portlet>

<metal:portlet define-macro="portlet_right">
    <div metal:use-macro="macro/template/macros/portlet" />
</metal:portlet>

<metal:portlet define-macro="portlet">
    <div class="box"
         tal:define="icon macro/icon|nothing;
                     url macro/url|nothing"
         tal:attributes="id string:portlet_${macro/identifier}">
      <h4>
        <a tal:omit-tag="not:url"
           tal:attributes="href url"
           i18n:translate=""><img
                tal:condition="icon"
                tal:attributes="src string:$resourceBase$icon"/>
          <span tal:content="macro/title">Navigation</span></a>
      </h4>
      <div class="body">
           <div metal:use-macro="macro/subMacro" />
      </div>
    </div>
</metal:portlet>


<metal:portlet define-macro="multi_actions">
    <tal:sub repeat="macro macro/subMacros">
      <metal:sub use-macro="macro" />
    </tal:sub>
</metal:portlet>

