[MKDoc-commit] [1.6] Menu updated to match the one in 1.8 and to
allow it to be styled
chris at mkdoc.demon.co.uk
chris at mkdoc.demon.co.uk
Thu Dec 8 15:50:20 GMT 2005
Log Message:
-----------
[1.6] Menu updated to match the one in 1.8 and to allow it to be styled
to look like tabs
Tags:
----
mkdoc-1-6
Modified Files:
--------------
mkd/templates/fragments/menu:
en.html
-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/fragments/menu/Attic/en.html,v
retrieving revision 1.2.2.15
retrieving revision 1.2.2.16
diff -Ltemplates/fragments/menu/en.html -Ltemplates/fragments/menu/en.html -u -r1.2.2.15 -r1.2.2.16
--- templates/fragments/menu/en.html
+++ templates/fragments/menu/en.html
@@ -3,6 +3,8 @@
This template is used for main navigation menu for documents.
+If you want to style it as tabs then use div.menu bdo { display: none }
+
?-->
<div
class="menu"
@@ -14,25 +16,25 @@
petal:attributes="dir dir"
>
- <a
- href="/"
- title="The home page [Accesskey 1 ]."
- hreflang="en"
- xml:lang="en"
- lang="en"
- dir="ltr"
- accesskey="1"
- petal:attributes="href root_uri; hreflang root_lang"
- petal:condition="false:self/cgi/path_info_eq '/'"
- >Home</a>
- <span
- xml:lang="en"
- lang="en"
- dir="ltr"
- petal:condition="true:self/cgi/path_info_eq '/'"
- >
- Home
- </span>
+ <!--? Home ?-->
+ <strong
+ id="menu-home"
+ petal:omit-tag="false: self/cgi/path_info_eq '/'"
+ ><a
+ href="/"
+ hreflang="en"
+ accesskey="1"
+ title="The home page [ Accesskey 1 ]"
+ id="menu-home"
+ name="menu-home"
+ petal:attributes="href self/root/uri;
+ hreflang self/root/lang;"
+ petal:omit-tag="true: self/cgi/path_info_eq '/'"
+ ><span
+ xml:lang="en"
+ lang="en"
+ dir="ltr"
+ >Home</span></a></strong>
<bdo
dir="ltr"
petal:attributes="dir dir"
@@ -45,24 +47,27 @@
petal:repeat="child self/root/children_showable"
petal:condition="true: self/root/children_showable"
>
- <a
- href="http://example.com/"
- hreflang="en"
- xml:lang="en"
- lang="en"
- dir="ltr"
- petal:content="child/title"
- petal:attributes="href child/uri;
- hreflang child/lang;
- dir child/direction;
- lang child/lang;
- xml:lang child/lang;
- title child/description;"
- petal:omit-tag="true: self/equals child "
- ><strong
+ <strong
petal:omit-tag="false: self/equals child"
- petal:content="child/title"
- >Document Title</strong></a>
+ petal:attributes="id string:menu-${child/name};"
+ >
+ <a
+ href="http://example.com/"
+ hreflang="en"
+ petal:attributes="href child/uri;
+ hreflang child/lang;
+ title child/description;
+ id string:menu-${child/name};"
+ petal:omit-tag="true: self/equals child "
+ ><span
+ xml:lang="en"
+ lang="en"
+ dir="ltr"
+ petal:content="child/title"
+ petal:attributes="lang child/lang;
+ dir child/direction;
+ xml:lang child/lang;"
+ >Root Child Title</span></a></strong>
<bdo
dir="ltr"
petal:attributes="dir dir"
@@ -97,26 +102,27 @@
>|</bdo>
?-->
- <a
- href="./.sitemap.html"
- title="The sitemap [Accesskey 3 ]."
- hreflang="en"
- xml:lang="en"
- lang="en"
- dir="ltr"
- accesskey="3"
- petal:condition="true:sitemap_uri"
- petal:attributes="href sitemap_uri; hreflang lang"
- >Sitemap</a>
- <span
- xml:lang="en"
- lang="en"
- dir="ltr"
- petal:condition="false:sitemap_uri"
- petal:content="title"
- >
- Sitemap
- </span>
+
+ <!--? Sitemap ?-->
+ <strong
+ id="menu-sitemap"
+ petal:omit-tag="true: sitemap_uri"
+ ><a
+ href=".sitemap.html"
+ accesskey="3"
+ title="The sitemap [ Accesskey 3 ]"
+ id="menu-sitemap"
+ name="menu-sitemap"
+ petal:attributes="href sitemap_uri;
+ hreflang lang"
+ petal:omit-tag="false: sitemap_uri"
+ ><span
+ xml:lang="en"
+ lang="en"
+ dir="ltr"
+ >Sitemap</span></a></strong>
</p>
+
+
</div>
More information about the MKDoc-commit
mailing list