comparison templates/page.tmpl @ 12:a1002d3b5a6d

Simplify template by enforcing HTML5 usage.
author Samuel Hodgkins <samuel.hodgkins@sky.com>
date Fri, 01 Sep 2017 03:39:35 +0100
parents cee5d08194eb
children
comparison
equal deleted inserted replaced
11:cee5d08194eb 12:a1002d3b5a6d
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <TMPL_IF HTML_LANG_CODE><html lang="<TMPL_VAR HTML_LANG_CODE>" dir="<TMPL_VAR HTML_LANG_DIR>" xmlns="http://www.w3.org/1999/xhtml"><TMPL_ELSE><html xmlns="http://www.w3.org/1999/xhtml"></TMPL_IF> 2 <TMPL_IF HTML_LANG_CODE><html lang="<TMPL_VAR HTML_LANG_CODE>" dir="<TMPL_VAR HTML_LANG_DIR>"><TMPL_ELSE><html></TMPL_IF>
3 <head> 3 <head>
4 <TMPL_IF DYNAMIC> 4 <TMPL_IF DYNAMIC>
5 <TMPL_IF FORCEBASEURL><base href="<TMPL_VAR FORCEBASEURL>" /><TMPL_ELSE> 5 <TMPL_IF FORCEBASEURL><base href="<TMPL_VAR FORCEBASEURL>" /><TMPL_ELSE>
6 <TMPL_IF BASEURL><base href="<TMPL_VAR BASEURL>" /></TMPL_IF> 6 <TMPL_IF BASEURL><base href="<TMPL_VAR BASEURL>" /></TMPL_IF>
7 </TMPL_IF> 7 </TMPL_IF>
8 </TMPL_IF> 8 </TMPL_IF>
9 <TMPL_IF HTML5><meta charset="utf-8" /><TMPL_ELSE><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></TMPL_IF> 9 <meta charset="utf-8" />
10 <title><TMPL_VAR TITLE></title> 10 <title><TMPL_VAR TITLE></title>
11 <TMPL_IF RESPONSIVE_LAYOUT><meta name="viewport" content="width=device-width, initial-scale=1" /></TMPL_IF> 11 <meta name="viewport" content="width=device-width, initial-scale=1" />
12 <TMPL_IF FAVICON> 12 <TMPL_IF FAVICON>
13 <link rel="icon" href="<TMPL_VAR BASEURL><TMPL_VAR FAVICON>" type="image/x-icon" /> 13 <link rel="icon" href="<TMPL_VAR BASEURL><TMPL_VAR FAVICON>" type="image/x-icon" />
14 </TMPL_IF> 14 </TMPL_IF>
15 <link rel="stylesheet" href="<TMPL_VAR BASEURL>style.css" type="text/css" /> 15 <link rel="stylesheet" href="<TMPL_VAR BASEURL>style.css" type="text/css" />
16 <TMPL_IF LOCAL_CSS> 16 <TMPL_IF LOCAL_CSS>
38 </TMPL_UNLESS> 38 </TMPL_UNLESS>
39 39
40 </head> 40 </head>
41 <body> 41 <body>
42 42
43 <TMPL_IF HTML5><article class="page"><TMPL_ELSE><div class="page"></TMPL_IF> 43 <article class="page">
44 44
45 <TMPL_IF HTML5><section class="pageheader"><TMPL_ELSE><div class="pageheader"></TMPL_IF> 45 <section class="pageheader">
46 <TMPL_IF HTML5><header class="header"><TMPL_ELSE><div class="header"></TMPL_IF> 46 <header class="header">
47 <span> 47 <span>
48 <span class="parentlinks"> 48 <span class="parentlinks">
49 <TMPL_LOOP PARENTLINKS> 49 <TMPL_LOOP PARENTLINKS>
50 <a href="<TMPL_VAR URL>"><TMPL_VAR PAGE></a>/ 50 <a href="<TMPL_VAR URL>"><TMPL_VAR PAGE></a>/
51 </TMPL_LOOP> 51 </TMPL_LOOP>
60 <TMPL_UNLESS DYNAMIC> 60 <TMPL_UNLESS DYNAMIC>
61 <TMPL_IF SEARCHFORM> 61 <TMPL_IF SEARCHFORM>
62 <TMPL_VAR SEARCHFORM> 62 <TMPL_VAR SEARCHFORM>
63 </TMPL_IF> 63 </TMPL_IF>
64 </TMPL_UNLESS> 64 </TMPL_UNLESS>
65 <TMPL_IF HTML5></header><TMPL_ELSE></div></TMPL_IF> 65 </header>
66 66
67 <TMPL_IF HAVE_ACTIONS> 67 <TMPL_IF HAVE_ACTIONS>
68 <TMPL_IF HTML5><nav class="actions"><TMPL_ELSE><div class="actions"></TMPL_IF> 68 <nav class="actions">
69 <ul> 69 <ul>
70 <TMPL_IF EDITURL> 70 <TMPL_IF EDITURL>
71 <li><a href="<TMPL_VAR EDITURL>" rel="nofollow">Edit</a></li> 71 <li><a href="<TMPL_VAR EDITURL>" rel="nofollow">Edit</a></li>
72 </TMPL_IF> 72 </TMPL_IF>
73 <TMPL_IF RECENTCHANGESURL> 73 <TMPL_IF RECENTCHANGESURL>
93 <TMPL_IF DISCUSSIONLINK> 93 <TMPL_IF DISCUSSIONLINK>
94 <li><TMPL_VAR DISCUSSIONLINK></li> 94 <li><TMPL_VAR DISCUSSIONLINK></li>
95 </TMPL_IF> 95 </TMPL_IF>
96 </TMPL_IF> 96 </TMPL_IF>
97 </ul> 97 </ul>
98 <TMPL_IF HTML5></nav><TMPL_ELSE></div></TMPL_IF> 98 </nav>
99 </TMPL_IF> 99 </TMPL_IF>
100 100
101 <TMPL_IF OTHERLANGUAGES> 101 <TMPL_IF OTHERLANGUAGES>
102 <TMPL_IF HTML5><nav id="otherlanguages"><TMPL_ELSE><div id="otherlanguages"></TMPL_IF> 102 <nav id="otherlanguages">
103 <ul> 103 <ul>
104 <TMPL_LOOP OTHERLANGUAGES> 104 <TMPL_LOOP OTHERLANGUAGES>
105 <li> 105 <li>
106 <a href="<TMPL_VAR URL>"><TMPL_VAR LANGUAGE></a> 106 <a href="<TMPL_VAR URL>"><TMPL_VAR LANGUAGE></a>
107 <TMPL_IF MASTER> 107 <TMPL_IF MASTER>
110 &nbsp;(<TMPL_VAR PERCENT>%) 110 &nbsp;(<TMPL_VAR PERCENT>%)
111 </TMPL_IF> 111 </TMPL_IF>
112 </li> 112 </li>
113 </TMPL_LOOP> 113 </TMPL_LOOP>
114 </ul> 114 </ul>
115 <TMPL_IF HTML5></nav><TMPL_ELSE></div></TMPL_IF> 115 </nav>
116 </TMPL_IF> 116 </TMPL_IF>
117 117
118 <TMPL_UNLESS DYNAMIC> 118 <TMPL_UNLESS DYNAMIC>
119 <TMPL_VAR TRAILS> 119 <TMPL_VAR TRAILS>
120 </TMPL_UNLESS> 120 </TMPL_UNLESS>
121 121
122 <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> 122 </section>
123 123
124 <TMPL_UNLESS DYNAMIC> 124 <TMPL_UNLESS DYNAMIC>
125 <TMPL_IF SIDEBAR> 125 <TMPL_IF SIDEBAR>
126 <TMPL_IF HTML5><aside class="sidebar"><TMPL_ELSE><div class="sidebar"></TMPL_IF> 126 <aside class="sidebar">
127 <TMPL_VAR SIDEBAR> 127 <TMPL_VAR SIDEBAR>
128 <TMPL_IF HTML5></aside><TMPL_ELSE></div></TMPL_IF> 128 </aside>
129 </TMPL_IF> 129 </TMPL_IF>
130 </TMPL_UNLESS> 130 </TMPL_UNLESS>
131 131
132 <div id="pagebody"> 132 <div id="pagebody">
133 133
134 <TMPL_IF HTML5><section<TMPL_ELSE><div</TMPL_IF> id="content" role="main"> 134 <section id="content" role="main">
135 <TMPL_VAR CONTENT> 135 <TMPL_VAR CONTENT>
136 <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> 136 </section>
137 137
138 <TMPL_IF ENCLOSURE> 138 <TMPL_IF ENCLOSURE>
139 <TMPL_IF HTML5><section id="enclosure"><TMPL_ELSE><div id="enclosure"></TMPL_IF> 139 <section id="enclosure">
140 <a href="<TMPL_VAR ENCLOSURE>">Download</a> 140 <a href="<TMPL_VAR ENCLOSURE>">Download</a>
141 <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> 141 </section>
142 </TMPL_IF> 142 </TMPL_IF>
143 143
144 <TMPL_UNLESS DYNAMIC> 144 <TMPL_UNLESS DYNAMIC>
145 <TMPL_IF COMMENTS> 145 <TMPL_IF COMMENTS>
146 <TMPL_IF HTML5><section<TMPL_ELSE><div</TMPL_IF> id="comments" role="complementary"> 146 <section id="comments" role="complementary">
147 <TMPL_VAR COMMENTS> 147 <TMPL_VAR COMMENTS>
148 <TMPL_IF ADDCOMMENTURL> 148 <TMPL_IF ADDCOMMENTURL>
149 <div class="addcomment"> 149 <div class="addcomment">
150 <a rel="nofollow" href="<TMPL_VAR ADDCOMMENTURL>">Add a comment</a> 150 <a rel="nofollow" href="<TMPL_VAR ADDCOMMENTURL>">Add a comment</a>
151 </div> 151 </div>
152 <TMPL_ELSE> 152 <TMPL_ELSE>
153 <div class="addcomment">Comments on this page are closed.</div> 153 <div class="addcomment">Comments on this page are closed.</div>
154 </TMPL_IF> 154 </TMPL_IF>
155 <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> 155 </section>
156 </TMPL_IF> 156 </TMPL_IF>
157 </TMPL_UNLESS> 157 </TMPL_UNLESS>
158 158
159 </div> 159 </div>
160 160
161 <TMPL_IF HTML5><footer<TMPL_ELSE><div</TMPL_IF> id="footer" class="pagefooter" role="contentinfo"> 161 <footer id="footer" class="pagefooter" role="contentinfo">
162 <TMPL_UNLESS DYNAMIC> 162 <TMPL_UNLESS DYNAMIC>
163 <TMPL_IF HTML5><nav id="pageinfo"><TMPL_ELSE><div id="pageinfo"></TMPL_IF> 163 <nav id="pageinfo">
164 164
165 <TMPL_VAR TRAILS> 165 <TMPL_VAR TRAILS>
166 166
167 <TMPL_IF TAGS> 167 <TMPL_IF TAGS>
168 <TMPL_IF HTML5><nav class="tags"><TMPL_ELSE><div class="tags"></TMPL_IF> 168 <nav class="tags">
169 Tags: 169 Tags:
170 <TMPL_LOOP TAGS> 170 <TMPL_LOOP TAGS>
171 <TMPL_VAR LINK> 171 <TMPL_VAR LINK>
172 </TMPL_LOOP> 172 </TMPL_LOOP>
173 <TMPL_IF HTML5></nav><TMPL_ELSE></div></TMPL_IF> 173 </nav>
174 </TMPL_IF> 174 </TMPL_IF>
175 175
176 <TMPL_IF BACKLINKS> 176 <TMPL_IF BACKLINKS>
177 <TMPL_IF HTML5><nav id="backlinks"><TMPL_ELSE><div id="backlinks"></TMPL_IF> 177 <nav id="backlinks">
178 Links: 178 Links:
179 <TMPL_LOOP BACKLINKS> 179 <TMPL_LOOP BACKLINKS>
180 <a href="<TMPL_VAR URL>"><TMPL_VAR PAGE></a> 180 <a href="<TMPL_VAR URL>"><TMPL_VAR PAGE></a>
181 </TMPL_LOOP> 181 </TMPL_LOOP>
182 <TMPL_IF MORE_BACKLINKS> 182 <TMPL_IF MORE_BACKLINKS>
186 <a href="<TMPL_VAR URL>"><TMPL_VAR PAGE></a> 186 <a href="<TMPL_VAR URL>"><TMPL_VAR PAGE></a>
187 </TMPL_LOOP> 187 </TMPL_LOOP>
188 </span> 188 </span>
189 </span> 189 </span>
190 </TMPL_IF> 190 </TMPL_IF>
191 <TMPL_IF HTML5></nav><TMPL_ELSE></div></TMPL_IF> 191 </nav>
192 </TMPL_IF> 192 </TMPL_IF>
193 193
194 <TMPL_IF COPYRIGHT> 194 <TMPL_IF COPYRIGHT>
195 <div class="pagecopyright"> 195 <div class="pagecopyright">
196 <a name="pagecopyright"></a> 196 <a name="pagecopyright"></a>
207 207
208 <div class="pagedate"> 208 <div class="pagedate">
209 Original posted: <TMPL_VAR CTIME>. Last modified: <TMPL_VAR MTIME> 209 Original posted: <TMPL_VAR CTIME>. Last modified: <TMPL_VAR MTIME>
210 </div> 210 </div>
211 211
212 <TMPL_IF HTML5></nav><TMPL_ELSE></div></TMPL_IF> 212 </nav>
213 <TMPL_IF EXTRAFOOTER><TMPL_VAR EXTRAFOOTER></TMPL_IF> 213 <TMPL_IF EXTRAFOOTER><TMPL_VAR EXTRAFOOTER></TMPL_IF>
214 </TMPL_UNLESS> 214 </TMPL_UNLESS>
215 <!-- from <TMPL_VAR WIKINAME> --> 215 </footer>
216 <TMPL_IF HTML5></footer><TMPL_ELSE></div></TMPL_IF> 216
217 217 </article>
218 <TMPL_IF HTML5></article><TMPL_ELSE></div></TMPL_IF>
219 218
220 </body> 219 </body>
221 </html> 220 </html>