Commit 05e558785e241ddb2cfaee917780cb6f65caf7c3

Authored by William Daniau
1 parent 63ddb1e182
Exists in master

Ajout de l'affichage du logo placé sous common/logo.png s'il existe.

Showing 4 changed files with 17 additions and 0 deletions Inline Diff

templates/html/Wize.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 2 2 <html>
<head> 3 3 <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>[% title %]</title> 5 5 <title>[% title %]</title>
<meta name='Generator' content='[% generator.name %]'> 6 6 <meta name='Generator' content='[% generator.name %]'>
<link rel="stylesheet" 7 7 <link rel="stylesheet"
href="[% resource('common/zim-variables.css') %]" > 8 8 href="[% resource('common/zim-variables.css') %]" >
<link rel="stylesheet" 9 9 <link rel="stylesheet"
href="[% resource('common/zim-style.css') %]" > 10 10 href="[% resource('common/zim-style.css') %]" >
<link rel="stylesheet" 11 11 <link rel="stylesheet"
href="[% resource('common/zim-table-style.css') %]" > 12 12 href="[% resource('common/zim-table-style.css') %]" >
<link rel="stylesheet" 13 13 <link rel="stylesheet"
href="[% resource('common/zim-special.css') %]" > 14 14 href="[% resource('common/zim-special.css') %]" >
<link rel="stylesheet" 15 15 <link rel="stylesheet"
href="[% resource('common/zim-hljs.css') %]" > 16 16 href="[% resource('common/zim-hljs.css') %]" >
17 17
<style type='text/css'> 18 18 <style type='text/css'>
* { font-family: sans-serif } 19 19 * { font-family: sans-serif }
20 20
a:hover { text-decoration: underline; } 21 21 a:hover { text-decoration: underline; }
22 22
/* Centre les images mais elles sont coupées aux sauts de page à l'impression */ 23 23 /* Centre les images mais elles sont coupées aux sauts de page à l'impression */
img { 24 24 img {
display: block; 25 25 display: block;
margin-left: auto; 26 26 margin-left: auto;
margin-right: auto; 27 27 margin-right: auto;
} 28 28 }
29 29
.pages { 30 30 .pages {
/*max-width: 1000px;*/ 31 31 /*max-width: 1000px;*/
/*padding-left: 320px;*/ 32 32 /*padding-left: 320px;*/
width: inherit; 33 33 width: inherit;
transition: margin-left .3s; 34 34 transition: margin-left .3s;
background: white; 35 35 background: white;
padding-left: 10px; 36 36 padding-left: 10px;
padding-right: 10px; 37 37 padding-right: 10px;
padding-bottom: 20px; 38 38 padding-bottom: 20px;
padding-top: 10px; 39 39 padding-top: 10px;
} 40 40 }
41 41
.header{ 42 42 .header{
max-width: var(--main-page-width); 43 43 max-width: var(--main-page-width);
position: fixed; 44 44 position: fixed;
width: 100%; 45 45 width: 100%;
top:0; 46 46 top:0;
background:white; 47 47 background:white;
z-index: 1; 48 48 z-index: 1;
} 49 49 }
50 50
hr{ 51 51 hr{
clear:both; 52 52 clear:both;
border-style: solid; 53 53 border-style: solid;
border-width: 1px; 54 54 border-width: 1px;
border-color: var(--main-header-color); 55 55 border-color: var(--main-header-color);
} 56 56 }
57 57
body { 58 58 body {
max-width: var(--main-page-width); 59 59 max-width: var(--main-page-width);
display:block; 60 60 display:block;
margin-left:auto; 61 61 margin-left:auto;
margin-right:auto; 62 62 margin-right:auto;
background: var(--main-body-background-color); 63 63 background: var(--main-body-background-color);
} 64 64 }
65 65
.intercalaire { 66 66 .intercalaire {
background:white; 67 67 background:white;
margin-top: 48px; 68 68 margin-top: 48px;
padding: 10px; 69 69 padding: 10px;
} 70 70 }
71 71
.bold-footer { 72 72 .bold-footer {
color: var(--main-header-color); 73 73 color: var(--main-header-color);
} 74 74 }
75 75
</style> 76 76 </style>
77 77
<!-- Themes clair : 78 78 <!-- Themes clair :
atom-one-light.css, vs.css googlecode.css github.css 79 79 atom-one-light.css, vs.css googlecode.css github.css
qtcreator_light.css 80 80 qtcreator_light.css
Themes sombres : 81 81 Themes sombres :
agate.css vs2015.css atom-one-dark.css hybrid.css 82 82 agate.css vs2015.css atom-one-dark.css hybrid.css
ir-black.css sunburst.css tomorrow-night-bright.css 83 83 ir-black.css sunburst.css tomorrow-night-bright.css
qtcreator_dark.css 84 84 qtcreator_dark.css
Demo live : https://highlightjs.org/static/demo/ --> 85 85 Demo live : https://highlightjs.org/static/demo/ -->
<link rel="stylesheet" 86 86 <link rel="stylesheet"
href="[% resource('common/hljs/styles/sunburst.css') %]" > 87 87 href="[% resource('common/hljs/styles/sunburst.css') %]" >
88 88
<!-- hljs --> 89 89 <!-- hljs -->
<script src="[% resource('common/hljs/highlight.pack.js') %]"></script> 90 90 <script src="[% resource('common/hljs/highlight.pack.js') %]"></script>
91 91
</head> 92 92 </head>
<body> 93 93 <body>
94 94
[% options.empty_lines = "default" %] 95 95 [% options.empty_lines = "default" %]
96 96
<div class='header'> 97 97 <div class='header'>
<table class='navigation' style="float:left"> 98 98 <table class='navigation' style="float:left">
<tr class='navigation'> 99 99 <tr class='navigation'>
<td class='navigation'> 100 100 <td class='navigation'>
[% IF navigation.prev %] 101 101 [% IF navigation.prev %]
<a href='[% uri(navigation.prev) %]'> 102 102 <a href='[% uri(navigation.prev) %]'>
<img src="[% resource('common/arrow-left.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]"> 103 103 <img src="[% resource('common/arrow-left.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]">
</a> 104 104 </a>
[% ELSE %] 105 105 [% ELSE %]
<!-- 106 106 <!--
<img src="[% resource('common/arrow-left-inact.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]"> 107 107 <img src="[% resource('common/arrow-left-inact.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]">
--> 108 108 -->
[% END %] 109 109 [% END %]
</td> 110 110 </td>
<td class='navigation'> 111 111 <td class='navigation'>
[% IF links.get("index") %] 112 112 [% IF links.get("index") %]
<a href='[% uri(links.get("index")) %]'> 113 113 <a href='[% uri(links.get("index")) %]'>
<img src="[% resource('common/arrow-up.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]"> 114 114 <img src="[% resource('common/arrow-up.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]">
</a> 115 115 </a>
[% ELSE %] 116 116 [% ELSE %]
<!-- 117 117 <!--
<img src="[% resource('common/arrow-up-inact.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]"> 118 118 <img src="[% resource('common/arrow-up-inact.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]">
--> 119 119 -->
[% END %] 120 120 [% END %]
</td> 121 121 </td>
<td class='navigation'> 122 122 <td class='navigation'>
[% IF navigation.next %] 123 123 [% IF navigation.next %]
<a href='[% uri(navigation.next) %]'> 124 124 <a href='[% uri(navigation.next) %]'>
<img src="[% resource('common/arrow-right.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]"> 125 125 <img src="[% resource('common/arrow-right.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]">
</a> 126 126 </a>
[% ELSE %] 127 127 [% ELSE %]
<!-- 128 128 <!--
<img src="[% resource('common/arrow-right-inact.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]"> 129 129 <img src="[% resource('common/arrow-right-inact.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]">
--> 130 130 -->
[% END %] 131 131 [% END %]
</td> 132 132 </td>
</tr> 133 133 </tr>
</table> 134 134 </table>
135 135
<span> 136 136 <span>
[% FOR page IN pages %] 137 137 [% FOR page IN pages %]
<a name='[% anchor(page) %]'></a> 138 138 <a name='[% anchor(page) %]'></a>
<h1 style="display:inline-block;margin-left:20px;margin-top:5px;"> 139 139 <h1 style="display:inline-block;margin-left:20px;margin-top:5px;">
[% page.title %]</h1> 140 140 [% page.title %]</h1>
[% END %] 141 141 [% END %]
</span> 142 142 </span>
143 143
<table class='navigation' style="float:right;margin-right:10px;"> 144 144 <table class='navigation' style="float:right;margin-right:10px;">
<tr class='navigation'> 145 145 <tr class='navigation'>
<td class='navigation'> 146 146 <td class='navigation'>
[% FOR page IN pages %] 147 147 [% FOR page IN pages %]
[% FOR link IN page.backlinks %] 148 148 [% FOR link IN page.backlinks %]
[% IF loop.first %]<a href="#backlinks"> 149 149 [% IF loop.first %]<a href="#backlinks">
<img src='[% resource("common/backlink.png") %]' alt='[% gettext("Backlinks:") %]' title='[% gettext("Backlinks:") %]'> 150 150 <img src='[% resource("common/backlink.png") %]' alt='[% gettext("Backlinks:") %]' title='[% gettext("Backlinks:") %]'>
</a>[% END %] 151 151 </a>[% END %]
[% END %] 152 152 [% END %]
[% END %] 153 153 [% END %]
</td> 154 154 </td>
<td class='navigation'> 155 155 <td class='navigation'>
[% FOR page IN pages %] 156 156 [% FOR page IN pages %]
[% FOR file IN page.attachments %] 157 157 [% FOR file IN page.attachments %]
[% IF loop.first %]<a href="#attach"> 158 158 [% IF loop.first %]<a href="#attach">
<img src='[% resource("common/attachment.png") %]' alt='[% gettext("Attachments:") %]' title='[% gettext("Attachments:") %]'> 159 159 <img src='[% resource("common/attachment.png") %]' alt='[% gettext("Attachments:") %]' title='[% gettext("Attachments:") %]'>
</a>[% END %] 160 160 </a>[% END %]
[% END %] 161 161 [% END %]
[% END %] 162 162 [% END %]
</td> 163 163 </td>
</tr> 164 164 </tr>
</table> 165 165 </table>
</div> 166 166 </div>
167 167
<div class="intercalaire"> 168 168 <div class="intercalaire">
<hr /> 169 169 <hr />
</div> 170 170 </div>
171 171
172 <div style="float:right">
173 <img src='[% resource("common/logo.png") %]' alt=' '>
174 </div>
175
<!-- Wiki content --> 172 176 <!-- Wiki content -->
173 177
<div class='pages'> 174 178 <div class='pages'>
<!--[% FOR page IN pages %]--> 175 179 <!--[% FOR page IN pages %]-->
<!-- 176 180 <!--
<div class='heading'> 177 181 <div class='heading'>
<h1>[% page.title %] <a name='[% anchor(page) %]'></a></h1> 178 182 <h1>[% page.title %] <a name='[% anchor(page) %]'></a></h1>
</div> 179 183 </div>
--> 180 184 -->
181 185
<div class='content'> 182 186 <div class='content'>
[% page.body %] 183 187 [% page.body %]
</div> 184 188 </div>
185 189
<br /> 186 190 <br />
187 191
<div class='page-footer'> 188 192 <div class='page-footer'>
<!--[% FOR link IN page.backlinks %]--> 189 193 <!--[% FOR link IN page.backlinks %]-->
templates/html/Wize_Print.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 2 2 <html>
<head> 3 3 <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>[% title %]</title> 5 5 <title>[% title %]</title>
<meta name='Generator' content='[% generator.name %]'> 6 6 <meta name='Generator' content='[% generator.name %]'>
<!-- ATTENTION Le template Print ne supporte pas les ressources, 7 7 <!-- ATTENTION Le template Print ne supporte pas les ressources,
Il faut mettre des chemins absolus sur les fichiers :( --> 8 8 Il faut mettre des chemins absolus sur les fichiers :( -->
<link rel="stylesheet" 9 9 <link rel="stylesheet"
href="file:////home/daniau/.local/share/zim/templates/html/common/zim-variables.css" > 10 10 href="file:////home/daniau/.local/share/zim/templates/html/common/zim-variables.css" >
<link rel="stylesheet" 11 11 <link rel="stylesheet"
href="file:////home/daniau/.local/share/zim/templates/html/common/zim-style.css" > 12 12 href="file:////home/daniau/.local/share/zim/templates/html/common/zim-style.css" >
<link rel="stylesheet" 13 13 <link rel="stylesheet"
href="file:////home/daniau/.local/share/zim/templates/html/common/zim-table-style.css" > 14 14 href="file:////home/daniau/.local/share/zim/templates/html/common/zim-table-style.css" >
<link rel="stylesheet" 15 15 <link rel="stylesheet"
href="file:////home/daniau/.local/share/zim/templates/html/common/zim-special.css" > 16 16 href="file:////home/daniau/.local/share/zim/templates/html/common/zim-special.css" >
<link rel="stylesheet" 17 17 <link rel="stylesheet"
href="file:////home/daniau/.local/share/zim/templates/html/common/zim-hljs.css" > 18 18 href="file:////home/daniau/.local/share/zim/templates/html/common/zim-hljs.css" >
<style type='text/css'> 19 19 <style type='text/css'>
20 20
* { font-family: serif } 21 21 * { font-family: serif }
22 22
/* Centre les images mais elles sont coupées aux sauts de page à l'impression */ 23 23 /* Centre les images mais elles sont coupées aux sauts de page à l'impression */
/*img { 24 24 /*img {
display: block; 25 25 display: block;
margin-left: auto; 26 26 margin-left: auto;
margin-right: auto; 27 27 margin-right: auto;
}*/ 28 28 }*/
29 29
</style> 30 30 </style>
31 31
<!-- Themes clair : 32 32 <!-- Themes clair :
atom-one-light.css, vs.css 33 33 atom-one-light.css, vs.css
Themes sombres : 34 34 Themes sombres :
agate.css, vs2015.css, atom-one-dark.css 35 35 agate.css, vs2015.css, atom-one-dark.css
Demo live : https://highlightjs.org/static/demo/ --> 36 36 Demo live : https://highlightjs.org/static/demo/ -->
<link rel="stylesheet" 37 37 <link rel="stylesheet"
href="file:////home/daniau/.local/share/zim/templates/html/common/hljs/styles/atom-one-light-wb.css" > 38 38 href="file:////home/daniau/.local/share/zim/templates/html/common/hljs/styles/atom-one-light-wb.css" >
39 39
<!-- hljs --> 40 40 <!-- hljs -->
<script src="file:////home/daniau/.local/share/zim/templates/html/common/hljs/highlight.pack.js"></script> 41 41 <script src="file:////home/daniau/.local/share/zim/templates/html/common/hljs/highlight.pack.js"></script>
42 42
</head> 43 43 </head>
<body> 44 44 <body>
45 45
[% options.empty_lines = "default" %] 46 46 [% options.empty_lines = "default" %]
47 47
<!-- Wiki content --> 48 48 <!-- Wiki content -->
49 49
50 <div style="float:right">
51 <img src="file:////home/daniau/.local/share/zim/templates/html/common/logo.png" alt=' '>
52 </div>
templates/html/Wize_with_index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 2 2 <html>
<head> 3 3 <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>[% title %]</title> 5 5 <title>[% title %]</title>
<meta name='Generator' content='[% generator.name %]'> 6 6 <meta name='Generator' content='[% generator.name %]'>
<link rel="stylesheet" 7 7 <link rel="stylesheet"
href="[% resource('common/zim-variables.css') %]" > 8 8 href="[% resource('common/zim-variables.css') %]" >
<link rel="stylesheet" 9 9 <link rel="stylesheet"
href="[% resource('common/zim-style.css') %]" > 10 10 href="[% resource('common/zim-style.css') %]" >
<link rel="stylesheet" 11 11 <link rel="stylesheet"
href="[% resource('common/zim-table-style.css') %]" > 12 12 href="[% resource('common/zim-table-style.css') %]" >
<link rel="stylesheet" 13 13 <link rel="stylesheet"
href="[% resource('common/zim-special.css') %]" > 14 14 href="[% resource('common/zim-special.css') %]" >
<link rel="stylesheet" 15 15 <link rel="stylesheet"
href="[% resource('common/zim-hljs.css') %]" > 16 16 href="[% resource('common/zim-hljs.css') %]" >
17 17
<style type='text/css'> 18 18 <style type='text/css'>
* { font-family: sans-serif } 19 19 * { font-family: sans-serif }
20 20
a:hover { text-decoration: underline; } 21 21 a:hover { text-decoration: underline; }
22 22
/* Centre les images mais elles sont coupées aux sauts de page à l'impression */ 23 23 /* Centre les images mais elles sont coupées aux sauts de page à l'impression */
img { 24 24 img {
display: block; 25 25 display: block;
margin-left: auto; 26 26 margin-left: auto;
margin-right: auto; 27 27 margin-right: auto;
} 28 28 }
29 29
/* Specifique au with index */ 30 30 /* Specifique au with index */
span.insen { color: grey } 31 31 span.insen { color: grey }
32 32
.pages { 33 33 .pages {
/*max-width: 1000px;*/ 34 34 /*max-width: 1000px;*/
/*padding-left: 320px;*/ 35 35 /*padding-left: 320px;*/
width: inherit; 36 36 width: inherit;
transition: margin-left .3s; 37 37 transition: margin-left .3s;
background: white; 38 38 background: white;
padding-left: 10px; 39 39 padding-left: 10px;
padding-right: 10px; 40 40 padding-right: 10px;
padding-bottom: 20px; 41 41 padding-bottom: 20px;
padding-top: 10px; 42 42 padding-top: 10px;
} 43 43 }
44 44
.menu{ 45 45 .menu{
/*float:left; */ 46 46 /*float:left; */
width: 0; 47 47 width: 0;
color:var(--main-header-color); 48 48 color:var(--main-header-color);
overflow-x: hidden; 49 49 overflow-x: hidden;
position: absolute; 50 50 position: absolute;
transition:.3s; 51 51 transition:.3s;
background: var(--main-menu-background-color); 52 52 background: var(--main-menu-background-color);
border-style: solid; 53 53 border-style: solid;
border-width: 1px; 54 54 border-width: 1px;
margin-left:-20px; 55 55 margin-left:-20px;
} 56 56 }
57 57
.menu a,.menu a:link,.menu a:hover,.menu a:active,.menu a:visited { 58 58 .menu a,.menu a:link,.menu a:hover,.menu a:active,.menu a:visited {
color: var(--main-header-color); 59 59 color: var(--main-header-color);
} 60 60 }
61 61
.menuOpen { 62 62 .menuOpen {
/*display: block;*/ 63 63 /*display: block;*/
} 64 64 }
65 65
.menuClosed { 66 66 .menuClosed {
border-style: unset; 67 67 border-style: unset;
} 68 68 }
69 69
.header{ 70 70 .header{
max-width: var(--main-page-width); 71 71 max-width: var(--main-page-width);
position: fixed; 72 72 position: fixed;
width: 100%; 73 73 width: 100%;
top:0; 74 74 top:0;
background:white; 75 75 background:white;
z-index: 1; 76 76 z-index: 1;
} 77 77 }
78 78
hr{ 79 79 hr{
clear:both; 80 80 clear:both;
border-style: solid; 81 81 border-style: solid;
border-width: 1px; 82 82 border-width: 1px;
border-color: var(--main-header-color); 83 83 border-color: var(--main-header-color);
} 84 84 }
85 85
body { 86 86 body {
max-width: var(--main-page-width); 87 87 max-width: var(--main-page-width);
display:block; 88 88 display:block;
margin-left:auto; 89 89 margin-left:auto;
margin-right:auto; 90 90 margin-right:auto;
background: var(--main-body-background-color); 91 91 background: var(--main-body-background-color);
} 92 92 }
93 93
.intercalaire { 94 94 .intercalaire {
background:white; 95 95 background:white;
margin-top: 48px; 96 96 margin-top: 48px;
padding: 10px; 97 97 padding: 10px;
} 98 98 }
99 99
.bold-footer { 100 100 .bold-footer {
color: var(--main-header-color); 101 101 color: var(--main-header-color);
} 102 102 }
103 103
</style> 104 104 </style>
105 105
<!-- Themes clair : 106 106 <!-- Themes clair :
atom-one-light.css, vs.css googlecode.css github.css 107 107 atom-one-light.css, vs.css googlecode.css github.css
qtcreator_light.css 108 108 qtcreator_light.css
Themes sombres : 109 109 Themes sombres :
agate.css vs2015.css atom-one-dark.css hybrid.css 110 110 agate.css vs2015.css atom-one-dark.css hybrid.css
ir-black.css sunburst.css tomorrow-night-bright.css 111 111 ir-black.css sunburst.css tomorrow-night-bright.css
qtcreator_dark.css 112 112 qtcreator_dark.css
Demo live : https://highlightjs.org/static/demo/ --> 113 113 Demo live : https://highlightjs.org/static/demo/ -->
<link rel="stylesheet" 114 114 <link rel="stylesheet"
href="[% resource('common/hljs/styles/sunburst.css') %]" > 115 115 href="[% resource('common/hljs/styles/sunburst.css') %]" >
116 116
<!-- hljs --> 117 117 <!-- hljs -->
<script src="[% resource('common/hljs/highlight.pack.js') %]"></script> 118 118 <script src="[% resource('common/hljs/highlight.pack.js') %]"></script>
119 119
<script> 120 120 <script>
function openNav() { 121 121 function openNav() {
if (document.getElementById("mySidenav").getAttribute("class").split(' ')[1] == "menuClosed") { 122 122 if (document.getElementById("mySidenav").getAttribute("class").split(' ')[1] == "menuClosed") {
document.getElementById("mySidenav").style.width = "300px"; 123 123 document.getElementById("mySidenav").style.width = "300px";
/*document.getElementById("main").style.marginLeft = "300px";*/ 124 124 /*document.getElementById("main").style.marginLeft = "300px";*/
document.getElementById("mySidenav").setAttribute("class","menu menuOpen"); 125 125 document.getElementById("mySidenav").setAttribute("class","menu menuOpen");
/* Scroll to top when opening menu */ 126 126 /* Scroll to top when opening menu */
document.body.scrollTop = 0 127 127 document.body.scrollTop = 0
document.documentElement.scrollTop = 0; 128 128 document.documentElement.scrollTop = 0;
} else { 129 129 } else {
document.getElementById("mySidenav").style.width = "0"; 130 130 document.getElementById("mySidenav").style.width = "0";
/*document.getElementById("main").style.marginLeft = "0";*/ 131 131 /*document.getElementById("main").style.marginLeft = "0";*/
document.getElementById("mySidenav").setAttribute("class","menu menuClosed"); 132 132 document.getElementById("mySidenav").setAttribute("class","menu menuClosed");
} 133 133 }
} 134 134 }
</script> 135 135 </script>
</head> 136 136 </head>
<body> 137 137 <body>
138 138
<!-- Header --> 139 139 <!-- Header -->
<div class='header'> 140 140 <div class='header'>
<table class='navigation' style="float:left"> 141 141 <table class='navigation' style="float:left">
<tr class='navigation'> 142 142 <tr class='navigation'>
<td class='navigation'> 143 143 <td class='navigation'>
<span style="font-size:30px;cursor:pointer;color: var(--main-header-color);" onclick="openNav()">&#9776;</span> 144 144 <span style="font-size:30px;cursor:pointer;color: var(--main-header-color);" onclick="openNav()">&#9776;</span>
</td> 145 145 </td>
<td class='navigation'> 146 146 <td class='navigation'>
[% IF navigation.prev %] 147 147 [% IF navigation.prev %]
<a href='[% uri(navigation.prev) %]'> 148 148 <a href='[% uri(navigation.prev) %]'>
<img src="[% resource('common/arrow-left.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]"> 149 149 <img src="[% resource('common/arrow-left.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]">
</a> 150 150 </a>
[% ELSE %] 151 151 [% ELSE %]
<img src="[% resource('common/arrow-left-inact.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]"> 152 152 <img src="[% resource('common/arrow-left-inact.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]">
[% END %] 153 153 [% END %]
</td> 154 154 </td>
<td class='navigation'> 155 155 <td class='navigation'>
[% IF links.get("index") %] 156 156 [% IF links.get("index") %]
<a href='[% uri(links.get("index")) %]'> 157 157 <a href='[% uri(links.get("index")) %]'>
<img src="[% resource('common/arrow-up.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]"> 158 158 <img src="[% resource('common/arrow-up.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]">
</a> 159 159 </a>
[% ELSE %] 160 160 [% ELSE %]
<img src="[% resource('common/arrow-up-inact.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]"> 161 161 <img src="[% resource('common/arrow-up-inact.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]">
[% END %] 162 162 [% END %]
</td> 163 163 </td>
<td class='navigation'> 164 164 <td class='navigation'>
[% IF navigation.next %] 165 165 [% IF navigation.next %]
<a href='[% uri(navigation.next) %]'> 166 166 <a href='[% uri(navigation.next) %]'>
<img src="[% resource('common/arrow-right.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]"> 167 167 <img src="[% resource('common/arrow-right.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]">
</a> 168 168 </a>
[% ELSE %] 169 169 [% ELSE %]
<img src="[% resource('common/arrow-right-inact.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]"> 170 170 <img src="[% resource('common/arrow-right-inact.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]">
[% END %] 171 171 [% END %]
</td> 172 172 </td>
</tr> 173 173 </tr>
</table> 174 174 </table>
175 175
<span> 176 176 <span>
[% FOR page IN pages %] 177 177 [% FOR page IN pages %]
<a name='[% anchor(page) %]'></a> 178 178 <a name='[% anchor(page) %]'></a>
<h1 style="display:inline-block;margin-left:20px;margin-top:5px;"> 179 179 <h1 style="display:inline-block;margin-left:20px;margin-top:5px;">
[% page.title %]</h1> 180 180 [% page.title %]</h1>
[% END %] 181 181 [% END %]
</span> 182 182 </span>
183 183
<table class='navigation' style="float:right;margin-right:10px;"> 184 184 <table class='navigation' style="float:right;margin-right:10px;">
<tr class='navigation'> 185 185 <tr class='navigation'>
<td class='navigation'> 186 186 <td class='navigation'>
[% FOR page IN pages %] 187 187 [% FOR page IN pages %]
[% FOR link IN page.backlinks %] 188 188 [% FOR link IN page.backlinks %]
[% IF loop.first %]<a href="#backlinks"> 189 189 [% IF loop.first %]<a href="#backlinks">
<img src='[% resource("common/backlink.png") %]' alt='[% gettext("Backlinks:") %]' title='[% gettext("Backlinks:") %]'> 190 190 <img src='[% resource("common/backlink.png") %]' alt='[% gettext("Backlinks:") %]' title='[% gettext("Backlinks:") %]'>
</a>[% END %] 191 191 </a>[% END %]
[% END %] 192 192 [% END %]
[% END %] 193 193 [% END %]
</td> 194 194 </td>
<td class='navigation'> 195 195 <td class='navigation'>
[% FOR page IN pages %] 196 196 [% FOR page IN pages %]
[% FOR file IN page.attachments %] 197 197 [% FOR file IN page.attachments %]
[% IF loop.first %]<a href="#attach"> 198 198 [% IF loop.first %]<a href="#attach">
<img src='[% resource("common/attachment.png") %]' alt='[% gettext("Attachments:") %]' title='[% gettext("Attachments:") %]'> 199 199 <img src='[% resource("common/attachment.png") %]' alt='[% gettext("Attachments:") %]' title='[% gettext("Attachments:") %]'>
</a>[% END %] 200 200 </a>[% END %]
[% END %] 201 201 [% END %]
[% END %] 202 202 [% END %]
</td> 203 203 </td>
</tr> 204 204 </tr>
</table> 205 205 </table>
</div> 206 206 </div>
207 207
<div class="intercalaire"> 208 208 <div class="intercalaire">
<hr /> 209 209 <hr />
</div> 210 210 </div>
211 211
212 <div style="float:right">
213 <img src='[% resource("common/logo.png") %]' alt=' '>
214 </div>
215
<div id="mySidenav" class="menu menuClosed"> 212 216 <div id="mySidenav" class="menu menuClosed">
[% index() %] 213 217 [% index() %]
</div> 214 218 </div>
215 219
[% options.empty_lines = "default" %] 216 220 [% options.empty_lines = "default" %]
217 221
<!-- Wiki content --> 218 222 <!-- Wiki content -->
219 223
<div id="main" class='pages'> 220 224 <div id="main" class='pages'>
<!--[% FOR page IN pages %]--> 221 225 <!--[% FOR page IN pages %]-->
<!-- 222 226 <!--
<div class='heading'> 223 227 <div class='heading'>
<h1>[% page.title %] <a name='[% anchor(page) %]'></a></h1> 224 228 <h1>[% page.title %] <a name='[% anchor(page) %]'></a></h1>
</div> 225 229 </div>
--> 226 230 -->
<div class='content'> 227 231 <div class='content'>
[% page.body %] 228 232 [% page.body %]
</div> 229 233 </div>
230 234
<br /> 231 235 <br />
232 236
<div style="padding-bottom:10px;"> 233 237 <div style="padding-bottom:10px;">
<hr /> 234 238 <hr />
templates/html/Wize_with_index_sod.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 2 2 <html>
<head> 3 3 <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>[% title %]</title> 5 5 <title>[% title %]</title>
<meta name='Generator' content='[% generator.name %]'> 6 6 <meta name='Generator' content='[% generator.name %]'>
<link rel="stylesheet" 7 7 <link rel="stylesheet"
href="[% resource('common/zim-variables.css') %]" > 8 8 href="[% resource('common/zim-variables.css') %]" >
<link rel="stylesheet" 9 9 <link rel="stylesheet"
href="[% resource('common/zim-style.css') %]" > 10 10 href="[% resource('common/zim-style.css') %]" >
<link rel="stylesheet" 11 11 <link rel="stylesheet"
href="[% resource('common/zim-table-style.css') %]" > 12 12 href="[% resource('common/zim-table-style.css') %]" >
<link rel="stylesheet" 13 13 <link rel="stylesheet"
href="[% resource('common/zim-special.css') %]" > 14 14 href="[% resource('common/zim-special.css') %]" >
<link rel="stylesheet" 15 15 <link rel="stylesheet"
href="[% resource('common/zim-hljs.css') %]" > 16 16 href="[% resource('common/zim-hljs.css') %]" >
17 17
<style type='text/css'> 18 18 <style type='text/css'>
19 19
/* Comme on a le menu sur le côté */ 20 20 /* Comme on a le menu sur le côté */
/* On augmente la taille de la page */ 21 21 /* On augmente la taille de la page */
:root { 22 22 :root {
--main-page-width: 80em; 23 23 --main-page-width: 80em;
} 24 24 }
25 25
* { font-family: sans-serif } 26 26 * { font-family: sans-serif }
27 27
a:hover { text-decoration: underline; } 28 28 a:hover { text-decoration: underline; }
29 29
/* Centre les images mais elles sont coupées aux sauts de page à l'impression */ 30 30 /* Centre les images mais elles sont coupées aux sauts de page à l'impression */
img { 31 31 img {
display: block; 32 32 display: block;
margin-left: auto; 33 33 margin-left: auto;
margin-right: auto; 34 34 margin-right: auto;
} 35 35 }
36 36
/* Specifique au with index */ 37 37 /* Specifique au with index */
span.insen { color: grey } 38 38 span.insen { color: grey }
39 39
.pages { 40 40 .pages {
/*max-width: 1000px;*/ 41 41 /*max-width: 1000px;*/
/*padding-left: 320px;*/ 42 42 /*padding-left: 320px;*/
margin-left: 300px; 43 43 margin-left: 300px;
width: inherit; 44 44 width: inherit;
transition: margin-left .3s; 45 45 transition: margin-left .3s;
background: white; 46 46 background: white;
padding-left: 10px; 47 47 padding-left: 10px;
padding-right: 10px; 48 48 padding-right: 10px;
padding-bottom: 20px; 49 49 padding-bottom: 20px;
padding-top: 10px; 50 50 padding-top: 10px;
} 51 51 }
52 52
.menu{ 53 53 .menu{
float:left; 54 54 float:left;
width: 300px; 55 55 width: 300px;
color:var(--main-header-color); 56 56 color:var(--main-header-color);
overflow-x: hidden; 57 57 overflow-x: hidden;
/*position: absolute;*/ 58 58 /*position: absolute;*/
transition:.3s; 59 59 transition:.3s;
background: var(--main-menu-background-color); 60 60 background: var(--main-menu-background-color);
border-style: solid; 61 61 border-style: solid;
border-width: 1px; 62 62 border-width: 1px;
margin-left:-20px; 63 63 margin-left:-20px;
} 64 64 }
65 65
.menu a,.menu a:link,.menu a:hover,.menu a:active,.menu a:visited { 66 66 .menu a,.menu a:link,.menu a:hover,.menu a:active,.menu a:visited {
color: var(--main-header-color); 67 67 color: var(--main-header-color);
} 68 68 }
69 69
.menuOpen { 70 70 .menuOpen {
/*display: block;*/ 71 71 /*display: block;*/
} 72 72 }
73 73
.menuClosed { 74 74 .menuClosed {
border-style: unset; 75 75 border-style: unset;
} 76 76 }
77 77
.header{ 78 78 .header{
max-width: var(--main-page-width); 79 79 max-width: var(--main-page-width);
position: fixed; 80 80 position: fixed;
width: 100%; 81 81 width: 100%;
top:0; 82 82 top:0;
background:white; 83 83 background:white;
z-index: 1; 84 84 z-index: 1;
} 85 85 }
86 86
hr{ 87 87 hr{
clear:both; 88 88 clear:both;
border-style: solid; 89 89 border-style: solid;
border-width: 1px; 90 90 border-width: 1px;
border-color: var(--main-header-color); 91 91 border-color: var(--main-header-color);
} 92 92 }
93 93
body { 94 94 body {
max-width: var(--main-page-width); 95 95 max-width: var(--main-page-width);
display:block; 96 96 display:block;
margin-left:auto; 97 97 margin-left:auto;
margin-right:auto; 98 98 margin-right:auto;
background: var(--main-body-background-color); 99 99 background: var(--main-body-background-color);
} 100 100 }
101 101
.intercalaire { 102 102 .intercalaire {
background:white; 103 103 background:white;
margin-top: 48px; 104 104 margin-top: 48px;
padding: 10px; 105 105 padding: 10px;
} 106 106 }
107 107
.bold-footer { 108 108 .bold-footer {
color: var(--main-header-color); 109 109 color: var(--main-header-color);
} 110 110 }
111 111
.zemaster { 112 112 .zemaster {
background: white; 113 113 background: white;
} 114 114 }
115 115
</style> 116 116 </style>
117 117
<!-- Themes clair : 118 118 <!-- Themes clair :
atom-one-light.css, vs.css googlecode.css github.css 119 119 atom-one-light.css, vs.css googlecode.css github.css
qtcreator_light.css 120 120 qtcreator_light.css
Themes sombres : 121 121 Themes sombres :
agate.css vs2015.css atom-one-dark.css hybrid.css 122 122 agate.css vs2015.css atom-one-dark.css hybrid.css
ir-black.css sunburst.css tomorrow-night-bright.css 123 123 ir-black.css sunburst.css tomorrow-night-bright.css
qtcreator_dark.css 124 124 qtcreator_dark.css
Demo live : https://highlightjs.org/static/demo/ --> 125 125 Demo live : https://highlightjs.org/static/demo/ -->
<link rel="stylesheet" 126 126 <link rel="stylesheet"
href="[% resource('common/hljs/styles/sunburst.css') %]" > 127 127 href="[% resource('common/hljs/styles/sunburst.css') %]" >
128 128
<!-- hljs --> 129 129 <!-- hljs -->
<script src="[% resource('common/hljs/highlight.pack.js') %]"></script> 130 130 <script src="[% resource('common/hljs/highlight.pack.js') %]"></script>
131 131
<script> 132 132 <script>
function openNav() { 133 133 function openNav() {
if (document.getElementById("mySidenav").getAttribute("class").split(' ')[1] == "menuClosed") { 134 134 if (document.getElementById("mySidenav").getAttribute("class").split(' ')[1] == "menuClosed") {
document.getElementById("mySidenav").style.width = "300px"; 135 135 document.getElementById("mySidenav").style.width = "300px";
document.getElementById("main").style.marginLeft = "300px"; 136 136 document.getElementById("main").style.marginLeft = "300px";
document.getElementById("mySidenav").setAttribute("class","menu menuOpen"); 137 137 document.getElementById("mySidenav").setAttribute("class","menu menuOpen");
/* Scroll to top when opening menu */ 138 138 /* Scroll to top when opening menu */
document.body.scrollTop = 0 139 139 document.body.scrollTop = 0
document.documentElement.scrollTop = 0; 140 140 document.documentElement.scrollTop = 0;
} else { 141 141 } else {
document.getElementById("mySidenav").style.width = "0"; 142 142 document.getElementById("mySidenav").style.width = "0";
document.getElementById("main").style.marginLeft = "0"; 143 143 document.getElementById("main").style.marginLeft = "0";
document.getElementById("mySidenav").setAttribute("class","menu menuClosed"); 144 144 document.getElementById("mySidenav").setAttribute("class","menu menuClosed");
} 145 145 }
} 146 146 }
</script> 147 147 </script>
</head> 148 148 </head>
<body> 149 149 <body>
150 150
<!-- Header --> 151 151 <!-- Header -->
<div class='header'> 152 152 <div class='header'>
<table class='navigation' style="float:left"> 153 153 <table class='navigation' style="float:left">
<tr class='navigation'> 154 154 <tr class='navigation'>
<td class='navigation'> 155 155 <td class='navigation'>
<span style="font-size:30px;cursor:pointer;color: var(--main-header-color);" onclick="openNav()">&#9776;</span> 156 156 <span style="font-size:30px;cursor:pointer;color: var(--main-header-color);" onclick="openNav()">&#9776;</span>
</td> 157 157 </td>
<td class='navigation'> 158 158 <td class='navigation'>
[% IF navigation.prev %] 159 159 [% IF navigation.prev %]
<a href='[% uri(navigation.prev) %]'> 160 160 <a href='[% uri(navigation.prev) %]'>
<img src="[% resource('common/arrow-left.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]"> 161 161 <img src="[% resource('common/arrow-left.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]">
</a> 162 162 </a>
[% ELSE %] 163 163 [% ELSE %]
<img src="[% resource('common/arrow-left-inact.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]"> 164 164 <img src="[% resource('common/arrow-left-inact.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]">
[% END %] 165 165 [% END %]
</td> 166 166 </td>
<td class='navigation'> 167 167 <td class='navigation'>
[% IF links.get("index") %] 168 168 [% IF links.get("index") %]
<a href='[% uri(links.get("index")) %]'> 169 169 <a href='[% uri(links.get("index")) %]'>
<img src="[% resource('common/arrow-up.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]"> 170 170 <img src="[% resource('common/arrow-up.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]">
</a> 171 171 </a>
[% ELSE %] 172 172 [% ELSE %]
<img src="[% resource('common/arrow-up-inact.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]"> 173 173 <img src="[% resource('common/arrow-up-inact.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]">
[% END %] 174 174 [% END %]
</td> 175 175 </td>
<td class='navigation'> 176 176 <td class='navigation'>
[% IF navigation.next %] 177 177 [% IF navigation.next %]
<a href='[% uri(navigation.next) %]'> 178 178 <a href='[% uri(navigation.next) %]'>
<img src="[% resource('common/arrow-right.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]"> 179 179 <img src="[% resource('common/arrow-right.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]">
</a> 180 180 </a>
[% ELSE %] 181 181 [% ELSE %]
<img src="[% resource('common/arrow-right-inact.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]"> 182 182 <img src="[% resource('common/arrow-right-inact.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]">
[% END %] 183 183 [% END %]
</td> 184 184 </td>
</tr> 185 185 </tr>
</table> 186 186 </table>
187 187
<span> 188 188 <span>
[% FOR page IN pages %] 189 189 [% FOR page IN pages %]
<a name='[% anchor(page) %]'></a> 190 190 <a name='[% anchor(page) %]'></a>
<h1 style="display:inline-block;margin-left:20px;margin-top:5px;"> 191 191 <h1 style="display:inline-block;margin-left:20px;margin-top:5px;">
[% page.title %]</h1> 192 192 [% page.title %]</h1>
[% END %] 193 193 [% END %]
</span> 194 194 </span>
195 195
<table class='navigation' style="float:right;margin-right:10px;"> 196 196 <table class='navigation' style="float:right;margin-right:10px;">
<tr class='navigation'> 197 197 <tr class='navigation'>
<td class='navigation'> 198 198 <td class='navigation'>
[% FOR page IN pages %] 199 199 [% FOR page IN pages %]
[% FOR link IN page.backlinks %] 200 200 [% FOR link IN page.backlinks %]
[% IF loop.first %]<a href="#backlinks"> 201 201 [% IF loop.first %]<a href="#backlinks">
<img src='[% resource("common/backlink.png") %]' alt='[% gettext("Backlinks:") %]' title='[% gettext("Backlinks:") %]'> 202 202 <img src='[% resource("common/backlink.png") %]' alt='[% gettext("Backlinks:") %]' title='[% gettext("Backlinks:") %]'>
</a>[% END %] 203 203 </a>[% END %]
[% END %] 204 204 [% END %]
[% END %] 205 205 [% END %]
</td> 206 206 </td>
<td class='navigation'> 207 207 <td class='navigation'>
[% FOR page IN pages %] 208 208 [% FOR page IN pages %]
[% FOR file IN page.attachments %] 209 209 [% FOR file IN page.attachments %]
[% IF loop.first %]<a href="#attach"> 210 210 [% IF loop.first %]<a href="#attach">
<img src='[% resource("common/attachment.png") %]' alt='[% gettext("Attachments:") %]' title='[% gettext("Attachments:") %]'> 211 211 <img src='[% resource("common/attachment.png") %]' alt='[% gettext("Attachments:") %]' title='[% gettext("Attachments:") %]'>
</a>[% END %] 212 212 </a>[% END %]
[% END %] 213 213 [% END %]
[% END %] 214 214 [% END %]
</td> 215 215 </td>
</tr> 216 216 </tr>
</table> 217 217 </table>
</div> 218 218 </div>
219 219
<div class="intercalaire"> 220 220 <div class="intercalaire">
<hr /> 221 221 <hr />
</div> 222 222 </div>
223 223
224 <div style="float:right">
225 <img src='[% resource("common/logo.png") %]' alt=' '>
226 </div>
227
<div class="zemaster"> 224 228 <div class="zemaster">
225 229
<div id="mySidenav" class="menu menuOpen"> 226 230 <div id="mySidenav" class="menu menuOpen">
[% index() %] 227 231 [% index() %]
</div> 228 232 </div>
229 233
[% options.empty_lines = "default" %] 230 234 [% options.empty_lines = "default" %]
231 235
<!-- Wiki content --> 232 236 <!-- Wiki content -->
233 237
<div id="main" class='pages'> 234 238 <div id="main" class='pages'>
<!--[% FOR page IN pages %]--> 235 239 <!--[% FOR page IN pages %]-->
<!-- 236 240 <!--
<div class='heading'> 237 241 <div class='heading'>
<h1>[% page.title %] <a name='[% anchor(page) %]'></a></h1> 238 242 <h1>[% page.title %] <a name='[% anchor(page) %]'></a></h1>
</div> 239 243 </div>
--> 240 244 -->
<div class='content'> 241 245 <div class='content'>
[% page.body %] 242 246 [% page.body %]
</div> 243 247 </div>
244 248
<br /> 245 249 <br />