]> git.sur5r.net Git - openldap/commitdiff
Rework HTML generation for consistency with web site
authorKurt Zeilenga <kurt@openldap.org>
Thu, 24 Aug 2000 22:25:19 +0000 (22:25 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 24 Aug 2000 22:25:19 +0000 (22:25 +0000)
doc/guide/preamble.sdf

index e02f2992c043762cf4a8c99245246277e7e92e70..49e5f53bd2abf288dc749377e1cb736259bb4710 100644 (file)
 !define DOC_NAME    "OpenLDAP"
 !define DOC_TYPE    "Guide"
 
-!define DOC_LOGO       "../images/LDAPwww.gif"
-# should create a smaller logo for HTML and TOPIC purposes
-#!define DOC_HTML_LOGO "../images/LDAPlogo.gif"
-!define DOC_TOPIC_LOGO "../images/LDAPlogo.gif"
+!define DOC_LOGO       "../images/LDAPlogo.gif"
+!define DOC_HTML_LOGO ""
 
 !define DOC_LOF_TITLE  "Figures"
 !define DOC_LOF
        !block inline
 <FONT FACE="Arial,Verdana,Helvetica">
        !endblock
-       !HTML_NAVIGATE
+       !if DOC_LOGO
+               !block inline
+<A HREF="http://www.OpenLDAP.org/">
+               !endblock
+               !import DOC_LOGO; align="Left"; border="0"; base=$var{'DOC_LOGO_BASE'}
+               !block inline
+</A>
+               !endblock
+               !HTML_NAVIGATE
+               !clear "Left"
+       !else
+               !HTML_NAVIGATE
+       !endif
 !endmacro
 
 !macro HTML_FOOTER
@@ -48,10 +58,24 @@ ______________<BR>
 !endmacro
 
 !macro HTML_TOPIC_HEADER
-       !block inline
+       !block inline; expand
 <FONT FACE="Arial,Verdana,Helvetica">
        !endblock
-       !HTML_TOPIC_NAVIGATE
+       !define DOC_TOPIC_LOGO $var{'DOC_LOGO'}
+       !if DOC_TOPIC_LOGO
+               !default DOC_TOPIC_LOGO_BASE $var{'DOC_LOGO_BASE'}
+               !block inline
+<A HREF="http://www.OpenLDAP.org/">
+               !endblock
+               !import DOC_TOPIC_LOGO; align="Left"; border="0"; base=$var{'DOC_TOPIC_LOGO_BASE'}
+               !block inline
+</A>
+               !endblock
+               !HTML_TOPIC_NAVIGATE
+               !clear "Left"
+       !else
+               !HTML_TOPIC_NAVIGATE
+       !endif
 !endmacro
 
 !macro HTML_TOPIC_FOOTER