4 <title>~$title html~~$cms_title html~</title>
5 <meta name="viewport" content="width=device-width, user-scalable=no" />
7 ~$running_locally {~<script src="/javascript/html5.js"></script>~}~
8 ~$running_locally unset {~<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>~}~
10 <link rel="stylesheet" href="css.css?m=~css.css mtime~" />
11 <!--~$meta_description nonempty {~--><meta name="description" content="~$meta_description attr~" /><!--~}~-->
12 <!--~$meta_keywords nonempty {~--><meta name="keywords" content="~$meta_keywords attr~" /><!--~}~-->
16 <body id="~$basename~_body" class="real_body_tag">
17 <div class="centerer ~$layout_centerer_class~">
18 <!--~$admin_links {~-->
19 <div id="admin_links">You are logged in as an administrator. <a href="admin_pages?~$edit_page_id {~edit_id=~$edit_page_id~~}~~$edit_page_id unset {~&new=1&new_filename=~$basename~~}~">Edit this page</a> — <a href="admin">Control panel</a> — <a href="logout">Log out</a></div>
22 <header id="site_header">
25 <!--~$navbar_items once_if {~-->
27 <form action="#" method="get">
28 <label for="mobile_menu_check" id="mobile_menu_button">☰ Menu</label>
29 <input type="checkbox" name="mobile_menu_check" id="mobile_menu_check">
31 <ul><!--~$navbar_items {~-->
32 <li><a href="~filename~">~title html~</a></li><!--~}~-->
40 <!--~$messages once_if {~-->
41 <div id="wfpl_messages">
43 <p>~message htmlbrtab~</p>
58 <!--~$cms_sidebar {~-->
59 <aside class="sidebar ~$layout_sidebar_class~">
63 <div style="clear: both"></div>
70 <!--~$render_timestamps {~-->
73 var i02 = function (i) { return i > 9 ? i : '0' + i; };
74 var date_to_html = function (d, include_time) {
75 var hours = d.getHours()
76 var ret = '<span class="date_time">' +
77 i02(d.getMonth() + 1) + '/' +
78 i02(d.getDate()) + '/' +
81 ret += ' ' + ((hours + 11) % 12 + 1) + ':' +
83 (hours < 12 ? 'am' : 'pm')
88 window.render_timestamps = function() {
89 var els = document.getElementsByClassName('unix_time');
92 d = new Date(1000 * parseInt(els[i].innerHTML));
93 els[i].innerHTML = date_to_html(d, true);
95 els = document.getElementsByClassName('unix_date');
97 d = new Date(1000 * parseInt(els[i].innerHTML));
98 els[i].innerHTML = date_to_html(d, false);