Permalink
Browse files

Fix markup in default page template

Make HTML case consistent to all lower case.
Fix opened <P>.
  • Loading branch information...
1 parent c09d7ae commit 9719b1a49d43993a0931c6aa985b9977e22f52c8 @dolmen dolmen committed Jul 18, 2012
Showing with 47 additions and 50 deletions.
  1. +47 −50 docs/shared/tpl/style/default.html
View
97 docs/shared/tpl/style/default.html
@@ -4,7 +4,7 @@
title = page.title || template.title;
IF page.bhead;
- page.banner = page.bhead _ '<SPAN CLASS="title">' _ page.banner _ "</span>";
+ page.banner = page.bhead _ '<span class="title">' _ page.banner _ "</span>";
END;
IF !page.site;
@@ -19,7 +19,7 @@
UNLESS page.banner;
# should we make use of page.site here? i.e. "dbi.perl.org: "
- page.banner = page.site _ '<SPAN CLASS="title">' _ title _ "</span>";
+ page.banner = page.site _ '<span class="title">' _ title _ "</span>";
END;
@@ -50,7 +50,7 @@
<link rel="shortcut icon" href="[% combust.static_url(page.favicon || "/favicon.ico") %]">
[% IF page.description;
- '<META name="description" content="' _ page.description _ '">';
+ '<meta name="description" content="' _ page.description _ '">';
END
%]
[% IF page.morehead; page.morehead; END %]
@@ -62,85 +62,85 @@
</head>
<body>
-<TABLE CELLSPACING="0" WIDTH="730">
-<TR>
-<TD WIDTH="100%" COLSPAN="2" class="BANNER">[% page.banner %]</TD>
-</TR>
+<table cellspacing="0" width="730">
+<tr>
+<td width="100%" colspan="2" class="BANNER">[% page.banner %]</TD>
+</tr>
[% IF page.sidebar %]
-<TR>
-<TD WIDTH="100%" COLSPAN="2" ID="NAV" CLASS="topNAV" style="border-bottom: 1px solid #191970;">
+<tr>
+<td width="100%" colspan="2" id="NAV" class="topNAV" style="border-bottom: 1px solid #191970;">
[% page.sidebar %]
-</TD>
-</TR>
+</td>
+</tr>
[% END %]
-</TABLE>
+</table>
[% IF isindex %]
-<DIV ID="MAIN">
+<div id="MAIN">
[% END %]
[% content %]
[% UNLESS !isindex %]
-</DIV>
+</div>
[% END %]
-[% UNLESS nofooter %]
-<P>
-<TABLE border="0" WIDTH="730" CELLSPACING="0" CELLPADDING="0">
-<TR ALIGN="RIGHT">
+[% UNLESS nofooter %]
+<table border="0" width="730" cellspacing="0" cellpadding="0">
+<tr align="right">
-<TD WIDTH="590" VALIGN="MIDDLE">
-<BR>
+<td width="590" valign="middle">
+<br>
-<DIV CLASS="FOOTER">
+<div class="FOOTER">
[% UNLESS shortfooter || page.footer %]
- <A HREF="/">Perl.org</A> sites
- : <!-- <A href="http://books.perl.org/" title="books.perl.org">books</a>
- | --> <A href="http://rt.perl.org/perlbug/">bugs</a>
- | <A href="http://dev.perl.org/">dev</a>
- | <A href="http://history.perl.org/">history</a>
- | <A href="http://jobs.perl.org/">jobs</a>
- | <A href="http://learn.perl.org/">learn</a>
- | <A href="http://lists.perl.org/">lists</a>
- | <A href="http://use.perl.org/">use</a>
- <BR>
+ <a href="/">Perl.org</A> sites
+ : <!-- <a href="http://books.perl.org/" title="books.perl.org">books</a>
+ | --> <a href="http://rt.perl.org/perlbug/">bugs</a>
+ | <a href="http://dev.perl.org/">dev</a>
+ | <a href="http://history.perl.org/">history</a>
+ | <a href="http://jobs.perl.org/">jobs</a>
+ | <a href="http://learn.perl.org/">learn</a>
+ | <a href="http://lists.perl.org/">lists</a>
+ | <a href="http://use.perl.org/">use</a>
+ <br>
<small>
<a href="http://www.perlfoundation.org">
- <IMG STYLE="float:right; position: relative; padding-left: 3px"
- HEIGHT=24 WIDTH=24
- BORDER=0
- SRC="[% combust.static_url("images/onion/onion-24x24.gif") %]"></A>
- &#169; Copyright 2002-[% USE date; year = date.format(date.now, '%Y'); year %] <a href="http://www.perlfoundation.org">The&nbsp;Perl&nbsp;Foundation</a><BR>
- <A HREF="[% page.siteinfo || "http://www.perl.org/siteinfo.html" %]"
- >Site Information and Contacts</A>
+ <img style="float:right; position: relative; padding-left: 3px"
+ height="24" width="24"
+ border="0"
+ alt="The Perl Foundation"
+ src="[% combust.static_url("images/onion/onion-24x24.gif") %]"></a>
+ &#169; Copyright 2002-[% USE date; year = date.format(date.now, '%Y'); year %] <a href="http://www.perlfoundation.org">The&nbsp;Perl&nbsp;Foundation</a><br>
+ <a href="[% page.siteinfo || "http://www.perl.org/siteinfo.html" %]"
+ >Site Information and Contacts</a>
</small>
[% ELSIF page.footer %]
[% page.footer %]
[% ELSE %]
&nbsp;
[% END %]
-</DIV>
-</TD>
-<TD valign="middle" align="center">
+</div>
+</td>
+<td valign="middle" align="center">
[% IF page.logobutton %]
<img border=0
- src="[% page.logobutton.src %]"
+ src="[% page.logobutton.src %]"
alt="[% page.logobutton.alt %]">
[% ELSE %]
<img border=0
- src="[% combust.static_url("/images/lcamel.gif") %]"
+ src="[% combust.static_url("/images/lcamel.gif") %]"
alt="the camel">
[% END %]
-</TD>
-</TR>
-</TABLE>
+</td>
+</tr>
+</table>
[% END %]
-
+
[%
page.js.unshift("/cdn/libs/jquery/1.6/jquery.js");
PROCESS tpl/js_includes.html(js_files = page.js);
@@ -161,6 +161,3 @@
</body>
</html>
-
-
-

0 comments on commit 9719b1a

Please sign in to comment.