1<?php
2/**
3 * DokuWiki Template Scanlines
4 *
5 * This is the template you need to change for the overall look
6 * of DokuWiki.
7 *
8 * You should leave the doctype at the very top - It should
9 * always be the very first line of a document.
10 *
11 * Thanks to Andreas Haerter's mnml-blog template, Michael Klier's arctic template and Anika Henke's starter template.
12 * I used these templates as a starting point (mainly the configuration, sidebar and customizing).
13 *
14 * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
15 * @author Johannes Winkler <johannes@rocking-minds.org>
16 * @author Andreas Gohr <andi@splitbrain.org>
17 * @link http://www.rocking-minds.org
18 * @link http://www.dokuwiki.org/template:scanlines
19 * @link http://www.dokuwiki.org/devel:templates
20 * @link http://www.dokuwiki.org/devel:coding_style
21 * @link http://www.dokuwiki.org/devel:environment
22 * @link http://www.dokuwiki.org/devel:action_modes
23 */
24
25// must be run from within DokuWiki
26if (!defined('DOKU_INC')) die();
27
28global $ACT;
29
30// include scanlines template functions
31require_once(dirname(__FILE__).'/tpl_functions.php');
32?>
33<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
34 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
35<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
36 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
37<head>
38<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
39<title><?php tpl_pagetitle()?>[<?php echo strip_tags($conf['title'])?>]</title>
40<?php
41//show meta-tags
42tpl_metaheaders();
43echo "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />";
44
45//include default or userdefined favicon
46//
47//note: since 2011-04-22 "Rincewind RC1", there is a core function named
48//      "tpl_getFavicon()". But its functionality is not really fitting the
49//      behaviour of this template, therefore I don't use it here exclusively.
50if (file_exists(DOKU_TPLINC."user/favicon.ico")){
51    //user defined - you might find http://tools.dynamicdrive.com/favicon/
52    //useful to generate one
53    echo "\n<link rel=\"shortcut icon\" href=\"".DOKU_TPL."user/favicon.ico\" />\n";
54}elseif (file_exists(DOKU_TPLINC."user/favicon.png")){
55    //note: I do NOT recommend PNG for favicons (cause it is not supported by
56    //all browsers).
57    echo "\n<link rel=\"shortcut icon\" href=\"".DOKU_TPL."user/favicon.png\" />\n";
58}else{
59    //default
60    echo "\n<link rel=\"shortcut icon\" href=\"".(function_exists("tpl_getFavicon") ? tpl_getFavicon() : DOKU_TPL."images/favicon.ico")."\" />\n";
61}
62
63//include default or userdefined Apple Touch Icon (see <http://j.mp/sx3NMT> for
64//details)
65if (file_exists(DOKU_TPLINC."user/apple-touch-icon.png")){
66    echo "<link rel=\"apple-touch-icon\" href=\"".DOKU_TPL."user/apple-touch-icon.png\" />\n";
67}else{
68    //default
69    echo "<link rel=\"apple-touch-icon\" href=\"".(function_exists("tpl_getFavicon") ? tpl_getFavicon(false, "apple-touch-icon.png") : DOKU_TPL."images/apple-touch-icon.png")."\" />\n";
70}
71
72
73//load userdefined js?
74if (tpl_getConf("scanlines_loaduserjs")){
75	echo "<script type=\"text/javascript\" charset=\"utf-8\" src=\"".DOKU_TPL."user/user.js\"></script>\n";
76}
77
78 /* old includehook */ @include(dirname(__FILE__).'/meta.html')?>
79
80<!--[if lt IE 9]><link rel="stylesheet" media="all" type="text/css" href="<?php echo DOKU_TPL?>css/ltie9.css"/><![endif]-->
81<!--[if IE 9]><link rel="stylesheet" media="all" type="text/css" href="<?php echo DOKU_TPL?>css/ie9.css"/><![endif]-->
82
83<script src="<?php echo DOKU_TPL?>js/cufon-yui.js" type="text/javascript"></script>
84<script src="<?php echo DOKU_TPL?>js/Limelight.font.js" type="text/javascript"></script>
85<script src="<?php echo DOKU_TPL?>js/Aclonica.font.js" type="text/javascript"></script>
86<script type="text/javascript">
87	Cufon.replace('div.logo h1', { fontFamily: 'Limelight', color: '-linear-gradient(#55616c, 0.45=#8b97a2, 0.45=#7e8b98, #55616c)' });
88	Cufon.replace('div.logo h2', { fontFamily: 'Aclonica',  color: '-linear-gradient(#55616c, #8b97a2)' });
89</script>
90</head>
91
92<body>
93<?php /* old includehook */ @include(dirname(__FILE__).'/topheader.html')?>
94<div class="dokuwiki">
95	<?php html_msgarea()?>
96
97	<div class="stylehead">
98
99   	<div class="header" id="header">
100
101   		<div class="header_content">
102      		<div class="logo">
103					<?php tpl_logo()?>
104				</div>
105				<!-- To avoid delays, initialize Cufón before other scripts at the bottom -->
106		      <script type="text/javascript"> Cufon.now(); </script>
107
108				<div class="userbar">
109    				<?php tpl_userbar()?>
110    			</div>
111    		</div>
112
113			<div class="clearer"></div>
114
115     </div>
116
117    	<?php /* old includehook */ @include(dirname(__FILE__).'/header.html')?>
118
119	 	<div class="bar_top">
120	 		<div class="bar_top_content">
121	 			<div class="navi">
122    				<?php tpl_navi()?>
123    				<div class="clearer"></div>
124    				<div class="bar-right" id="bar__topright">
125   	 				<?php tpl_searchform()?>
126   	 				<?php tpl_sitemap()?>
127      			</div>
128    			</div>
129			</div>
130		</div>
131
132  	</div>
133
134
135	<div class="main">
136
137  		<?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>
138
139
140		<?php flush()?>
141
142
143		<?php /* -------------- Closed Wiki (show no sidebar if not logged in) --------------- */ ?>
144		<?php if(tpl_getConf('closedwiki1') && !isset($_SERVER['REMOTE_USER'])) {	?>
145		<?php tpl_closedwiki1(); } else {?>
146
147
148		<?php /* -------------- left sidebar --------------- */ ?>
149
150		<?php if(tpl_getConf('sidebar') == 'left') { ?>
151
152		<?php if(!tpl_sidebar_hide() && $ACT != 'media') { ?>
153
154
155  		<div class="left_sidebar">
156		  	<?php tpl_sidebar('left')?>
157  		</div>
158
159		<div class="right_page">
160			<div class="page_720">
161				<div class="page_title">
162					<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?>
163     			</div>
164	     		<div class="page_content">
165    				<?php /* wikipage start */?>
166	  				<?php tpl_content(false)?>
167   				<?php /* wikipage stop */?>
168    				<div class="clearer"></div>
169   	 		</div>
170  			</div>
171
172  			<!-- Pageinfo.  -->
173  			<div class="bar_bottom" id="bar__bottom">
174  				<div class="bar_bottom_content">
175      			<div class="bar-left">
176      			<?php tpl_pageinfo()?>
177      		</div>
178     				<div class="bar-right">
179      				<?php tpl_button('edit')?>
180      	  			<?php tpl_button('history')?>
181      	  			<?php tpl_button('revert')?>
182      	  			<?php tpl_button('media')?>
183      	  		</div>
184     			</div>
185     		</div>
186     	</div>
187
188		<?php } else { ?>
189
190		<div class="full_page">
191	  		<div class="page">
192  				<div class="page_title">
193  					<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?>
194     			</div>
195      		<div class="page_content">
196    				<?php /* wikipage start */?>
197    				<div class="toc_none_sidebar">
198    					<?php tpl_toc()?>
199    				</div>
200    				<?php tpl_content(false)?>
201	   			<?php /* wikipage stop */?>
202	   			<div class="clearer"></div>
203	    		</div>
204  			</div>
205
206  			<!-- Pageinfo.  -->
207  			<div class="bar_bottom" id="bar__bottom">
208  				<div class="bar_bottom_content">
209      			<div class="bar-left">
210      			<?php tpl_pageinfo()?>
211      		</div>
212     				<div class="bar-right">
213      				<?php tpl_button('edit')?>
214      	  			<?php tpl_button('history')?>
215      	  			<?php tpl_button('revert')?>
216      	  			<?php tpl_button('media')?>
217      	  		</div>
218     			</div>
219     		</div>
220		</div>
221
222     	<?php } ?>
223
224
225
226		<?php /* -------------- right sidebar --------------- */ ?>
227
228		<?php } elseif(tpl_getConf('sidebar') == 'right') { ?>
229
230		<?php if(!tpl_sidebar_hide() && $ACT != 'media') { ?>
231		<div class="left_page">
232			<div class="page_720">
233				<div class="page_title">
234					<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?>
235				</div>
236 				<div class="page_content">
237  	 				<?php /* wikipage start */?>
238    				<?php tpl_content(false)?>
239  	 				<?php /* wikipage stop */?>
240  	 				<div class="clearer"></div>
241  	 			</div>
242 			</div>
243
244  			<!-- Pageinfo.  -->
245  			<div class="bar_bottom" id="bar__bottom">
246  				<div class="bar_bottom_content">
247      			<div class="bar-left">
248      			<?php tpl_pageinfo()?>
249      		</div>
250     				<div class="bar-right">
251      				<?php tpl_button('edit')?>
252      	  			<?php tpl_button('history')?>
253      	  			<?php tpl_button('revert')?>
254      	  			<?php tpl_button('media')?>
255      	  		</div>
256     			</div>
257     		</div>
258		</div>
259
260		<div class="right_sidebar">
261			<?php tpl_sidebar('right')?>
262		</div>
263
264
265		<?php } else { ?>
266		<div class="full_page">
267			<div class="page">
268 				<div class="page_title">
269 					<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?>
270  				</div>
271  				<div class="page_content">
272   				<?php /* wikipage start */?>
273   				<div class="toc_none_sidebar">
274   					<?php tpl_toc()?>
275   				</div>
276   				<?php tpl_content(false); ?>
277  					<?php /* wikipage stop */?>
278  					<div class="clearer"></div>
279   			</div>
280			</div>
281
282  			<!-- Pageinfo.  -->
283  			<div class="bar_bottom" id="bar__bottom">
284  				<div class="bar_bottom_content">
285      			<div class="bar-left">
286      			<?php tpl_pageinfo()?>
287      		</div>
288     				<div class="bar-right">
289      				<?php tpl_button('edit')?>
290      	  			<?php tpl_button('history')?>
291      	  			<?php tpl_button('revert')?>
292      	  			<?php tpl_button('media')?>
293      	  		</div>
294     			</div>
295     		</div>
296		</div>
297
298		<?php } ?>
299
300
301		<?php /* -------------- no sidebar --------------- */ ?>
302		<?php } elseif(tpl_getConf('sidebar') == 'none') { ?>
303		<div class="full_page">
304			<div class="page">
305				<div class="page_title">
306					<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?>
307				</div>
308				<div class="page_content">
309					<?php /* wikipage start */?>
310					<div class="toc_none_sidebar">
311						<?php tpl_toc()?>
312					</div>
313	    			<?php tpl_content(false)?>
314	   			<?php /* wikipage stop */?>
315	   			<div class="clearer"></div>
316	    		</div>
317	  		</div>
318
319  			<!-- Pageinfo.  -->
320  			<div class="bar_bottom" id="bar__bottom">
321  				<div class="bar_bottom_content">
322      			<div class="bar-left">
323      			<?php tpl_pageinfo()?>
324      		</div>
325     				<div class="bar-right">
326      				<?php tpl_button('edit')?>
327      	  			<?php tpl_button('history')?>
328      	  			<?php tpl_button('revert')?>
329      	  			<?php tpl_button('media')?>
330      	  		</div>
331     			</div>
332     		</div>
333		</div>
334
335		<?php }} ?>
336
337   	<div class="clearer"></div>
338
339 	</div>
340
341
342	<div class="clearer"></div>
343
344   <div class="footer">
345		<?php /* old includehook */ @include(dirname(__FILE__).'/footer.html')?>
346		<?php tpl_license(false);?>
347		<!-- <div class="license"> Your own License (remove the html comment and "tpl_license(false)")</div> -->
348		<?php //Note: you are NOT allowed to remove the following notice. Please respect this! ?>
349		<a href="http://www.rocking-minds.org/blog/2011-08-27/dokuwiki_template_scanlines">Scanlines</a> on <a href="http://www.dokuwiki.org">DW</a> under the hood
350	</div>
351
352   <?php tpl_top_link()?>
353
354</div>
355<div class="no">
356    <?php
357    //provide DokuWiki housekeeping, required in all templates
358    tpl_indexerWebBug();
359    //include web analytics software
360    if (file_exists(DOKU_TPLINC."/user/tracker.php")){
361        include DOKU_TPLINC."/user/tracker.php";
362    }
363    ?>
364</div>
365</body>
366</html>
367