Commits

Anonymous committed 5c60088

Added the dir setting for the body tag in the templates.

Comments (0)

Files changed (3)

installer/wml/quadpres_main.wml

 
 <default-var "lang" "en-US" />
 <default-var "charset" "iso-8859-1" />
+<default-var "main_dir" "ltr" />
 
 <define-tag qp:html:header>
 <?xml version="1.0" encoding="<get-var charset />"?>
 </head>
 </define-tag>
 
+<define-tag qp:html:bodystart>
+<ifeq "<get-var "base_dir" />" "rtl" 
+    "<body dir="rtl">"
+    "<body>"
+    />
+</define-tag>
+
 <define-tag qpcontents>
 <:{
     if (!defined($contents_tree))

installer/wml/themes/alon-altman-text/template.wml

 <qp:html:header />
-<body>
+<qp:html:bodystart />
 <h1><qp:title /></h1>
 <div class="nav">
 <a href="<qp:contentsurl />">[Top]</a> <a href="<qp:prevurl />">[Previous]</a> <a href="<qp:nexturl />">[Next]</a>
 {#BODY#}
 <address>
 <a href="http://validator.w3.org/check/referer">Valid HTML!</a><br />
-<address:email />
+# Removed - I'll have to see what to do about it because I don't know
+# where it fits in.
+# <address:email />
 </address>
 </body>
 </html>

installer/wml/themes/shlomif-text/template.wml

 </define-tag>
 
 <qp:html:header />
-<body>
+<qp:html:bodystart />
 <qpnavigationbar withkey="1" />
 <h1><qp:title /></h1>
 {#BODY#}