]> Shamusworld >> Repos - ardour-manual/blob - page-template.txt
Update to bootstrap 3.3, minor tweaks
[ardour-manual] / page-template.txt
1 <!doctype html>
2 <html lang="en">
3
4 <head>
5         <title>{{page.page_title}}</title>
6         <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
7         <meta name="description" content="The Ardour Manual">
8         <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
10         <link href="{{page.bootstrap_path}}/css/bootstrap.min.css" rel="stylesheet">
11         <link href="{{page.bootstrap_path}}/css/bootstrap-responsive.min.css" rel="stylesheet">
12         <link href="/css/app.css" rel="stylesheet">
13 {% if page.style %}
14         <link href="/css/{{page.style}}.css" rel="stylesheet">
15 {% endif %}
16 </head>
17
18 <body>
19 <div class="container-fluid"><div class="row-fluid">
20         <div id="tree"><div id="tree-inner">
21                 <h1 class="title"><a href="/"><img class="img-responsive" src="/images/logo.png" alt="The Ardour Manual" /></a></h1>
22
23     <form id="custom-search-form" class="navbar-form" method="post" action="https://duckduckgo.com">
24
25             <div class="input-group">
26                       <input type="text" class="form-control" placeholder="Search &hellip;" name="q">
27                       <span class="input-group-btn">
28                         <button class="btn btn-default" type="button"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
29                       </span>
30                   </div>
31
32 <!--
33                         <div class="input-group add-on">
34           <input type="text" class="form-control" name="q" placeholder="Search &hellip;">
35           <button type="submit" class="btn"><i class="glyphicon glyphicon-search"></i></button>
36       </div>  -->
37                         <input type="hidden" name="sites" value="manual.ardour.org"><!-- domain -->
38                         <input type="hidden" name="kh" value="1"> <!--HTTPS on/off -->
39                         <input type="hidden" name="kl" value="wt-wt"> <!--region wt-wt = no region/worldwide -->
40                         <input type="hidden" name="kg" value="p"> <!--get [g] vs post [p] -->
41                         <input type="hidden" name="k7" value="w"> <!-- background colour -->
42                         <input type="hidden" name="kj" value="#212a30"> <!-- results page header colour -->
43                         <input type="hidden" name="kx" value="#59acd4"> <!-- URLs colour -->
44                         <input type="hidden" name="k1" value="-1"> <!-- adverts on/off -->
45                         <input type="hidden" name="k9" value="#59acd4"> <!-- links colour -->
46                         <input type="hidden" name="kaa" value="#2d586c"> <!-- visited links colour -->
47                         <input type="hidden" name="kae" value="#cc0000"> <!-- theme [changes result titles] colour -->
48                         <input type="hidden" name="ka" value="junge"> <!-- link font -->
49                         <input type="hidden" name="kt" value="junge"> <!-- text font -->
50     </form>
51
52
53 {% tree %}
54         </div></div>
55         <div class="span12" id="content">
56     {% breadcrumbs %}
57                 <div id="content-main">
58                 <h1 class="title">{{ page.title }}</h1>
59
60 {{ content }}
61 {% prevnext %}
62
63                 </div>
64         </div>
65 </div></div>
66
67 <script type="text/javascript">
68 // I'll go to hell for this
69 var isA = function(regex) { return navigator.userAgent.match(regex) };
70 var isAbout = function(regex) { return document.getElementsByTagName('h1')[1].textContent.match(regex) };
71
72 if ( (isA(/Mac/) || isAbout(/OS X/)) && (!isAbout(/Linux/)) ) {
73         var e = document.getElementsByTagName('body')[0];
74         e.className += ' mac';  // class magic for Cmd vs. Ctrl keys.
75 }
76 </script>
77
78 </body>
79 </html>