[MKDoc-commit] Added | seperator between items

chris at mkdoc.demon.co.uk chris at mkdoc.demon.co.uk
Fri Oct 29 15:38:14 BST 2004


Log Message:
-----------
Added | seperator between items

Modified Files:
--------------
    mkd/resources/templates/macros/menu:
        en.html

-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/resources/templates/macros/menu/en.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -Lresources/templates/macros/menu/en.html -Lresources/templates/macros/menu/en.html -u -r1.12 -r1.13
--- resources/templates/macros/menu/en.html
+++ resources/templates/macros/menu/en.html
@@ -94,20 +94,12 @@
         i18n:translate="home"
     >Home</span></a></strong>
 
+    <!--? Example hard coded item with accesskey 
     <bdo 
       dir="ltr"
       metal:define-slot="seperator"
       petal:attributes="dir self/direction"
-      petal:condition="true: sitemap_p"
     >|</bdo>
-
-    <!--? Contact
-    <bdo 
-      dir="ltr"
-      metal:define-slot="seperator"
-      petal:attributes="dir self/direction"
-    >|</bdo>
-
     <strong
      id="menu-contact"
      petal:omit-tag="false: self/cgi/path_info_eq '/contact/'"
@@ -131,14 +123,18 @@
         petal:omit-tag="false: self/cgi/path_info_eq '/contact/'"
     >Contact</span></a></strong>
     ?-->
-    
+
     <!--? Loop through child documents of the front page ?-->
     <div
       petal:condition="true: self/root/children_showable"
       petal:repeat="child self/root/children_showable"
       petal:omit-tag=""
     >
-
+      <bdo 
+        dir="ltr"
+        metal:define-slot="seperator"
+        petal:attributes="dir self/direction"
+      >|</bdo>
       <strong
         id="menu-child"
         petal:attributes="id string:menu-${child/name};"
@@ -162,21 +158,19 @@
                             dir      self/direction;
                             xml:lang child/lang;"
       >Root Child Title</span></a></strong>
-
-      <bdo 
-        dir="ltr"
-        metal:define-slot="seperator"
-        petal:attributes="dir self/direction"
-      >|</bdo>
-
     </div>
 
-
-
     <!--? Sitemap ?-->
+    <bdo 
+      dir="ltr"
+      metal:define-slot="seperator"
+      petal:attributes="dir self/direction"
+      petal:condition="true: sitemap_p"
+    >|</bdo>
     <strong
       id="menu-sitemap"
       petal:omit-tag="true: sitemap_p/would_activate"
+      petal:condition="true: sitemap_p"
     ><a
        href=".sitemap.html"
        accesskey="3"
@@ -186,8 +180,8 @@
        metal:define-slot="sitemap"
        petal:attributes="href sitemap_p/uri;" 
        i18n:attributes="title    menu-sitemap-title;"
-       petal:condition="true: sitemap_p"
        petal:omit-tag="false: sitemap_p/would_activate"
+       petal:condition="true: sitemap_p"
      ><span
         xml:lang="en"
         lang="en"
@@ -196,6 +190,7 @@
                          lang     two-letter-language-code;
                          dir      text-direction;" 
         i18n:translate="sitemap"
+        petal:condition="true: sitemap_p"
     >Sitemap</span></a></strong>
 
   </p>


More information about the MKDoc-commit mailing list