slitaz-forge view doc/lib/tpl/slitaz-orange/main.php @ rev 568

chub, doc, forum, floppies, mirror-info, pkgs, pro, tank: on demand qrcode script load
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 22 18:37:40 2014 +0200 (2014-06-22)
parents a0f508b59d34
children ba908ef4f9ff
line source
1 <?php
2 /**
3 * DokuWiki SliTaz Template - With code from the default theme by
4 * Andreas Gohr <andi@splitbrain.org>
5 *
6 */
8 // must be run from within DokuWiki
9 if (!defined('DOKU_INC')) die();
11 ?>
12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
13 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
14 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
15 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
16 <head>
17 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
18 <title>
19 <?php tpl_pagetitle()?>
20 [<?php echo strip_tags($conf['title'])?>]
21 </title>
22 <?php tpl_metaheaders()?>
23 <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
24 </head>
25 <body>
27 <div class="dokuwiki">
29 <!-- Header -->
30 <div id="header">
31 <div id="logo"></div>
32 <!-- SliTaz Network -->
33 <div id="network">
34 <a href="http://www.slitaz.org/">
35 <img src="<?php echo DOKU_TPL?>images/home.png" alt="[ Home ]" /></a>
36 <a href="http://scn.slitaz.org/">Community</a>
37 <a href="http://doc.slitaz.org/">Doc</a>
38 <a href="http://forum.slitaz.org/">Forum</a>
39 <a href="http://slitaz.pro/">Pro</a>
40 <a href="http://slitaz.spreadshirt.net/">Shop</a>
41 <a href="http://bugs.slitaz.org">Bugs</a>
42 <a href="http://hg.slitaz.org/?sort=lastchange">Hg</a>
43 </div>
44 <h1><a href="./">SliTaz Doc</a></h1>
45 <!-- <?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?> -->
46 </div>
48 <!-- SliTaz Block -->
49 <div id="block">
50 <?php html_msgarea()?>
51 <!-- Languages -->
52 <div id="lang">
53 <?php
54 $translation = &plugin_load('helper','translation');
55 echo $translation->showTranslations();
56 ?>
57 </div>
58 <div style="text-align: justify; width: 60%; padding: 0 10px 0 0;">
59 SliTaz GNU/Linux official and community documentation wiki.
60 </div>
61 <div class="tools">
62 <img src="<?php echo DOKU_TPL?>images/tools.png" alt=".png" />
64 <div style="float: right; text-align: right;">
65 <?php tpl_button('edit')?>
66 <?php tpl_searchform()?>
67 </div>
68 <?php tpl_button('recent')?>
69 <?php tpl_button('subscription')?>
70 <?php tpl_button('admin')?>
71 <?php tpl_button('profile')?>
72 <?php tpl_button('login')?>
73 </div>
74 </div>
76 <!-- Content -->
77 <div id="content">
79 <?php flush()?>
81 <!-- wikipage start -->
82 <?php tpl_content()?>
83 <!-- wikipage stop -->
85 <div class="clearer">&nbsp;</div>
86 <?php flush()?>
88 <div class="meta">
89 <div class="user">
90 <?php tpl_userinfo()?>
91 </div>
92 <div class="doc">
93 <?php tpl_pageinfo()?>
94 </div>
95 </div>
97 <div style="border-top: 1px solid #eaeaea;">
98 <div style="float: right; text-align: right;">
99 <?php tpl_button('edit')?>
100 <?php tpl_button('history')?>
101 </div>
102 <?php tpl_button('recent')?>
103 <?php tpl_button('index')?>
104 </div>
106 <!-- End of content -->
107 </div>
109 <!-- End of: class="dokuwiki" -->
110 </div>
112 <!-- Footer -->
114 <script type="text/javascript">
115 function QRCodePNG(str, obj) {
116 try {
117 return QRCode.generatePNG(str, {ecclevel: 'H'});
118 }
119 catch (any) {
120 var element = document.createElement("script");
121 element.src = "<?php echo DOKU_TPL?>qrcode.js";
122 element.type ="text/javascript";
123 element.onload = function() {
124 obj.src = QRCode.generatePNG(str, {ecclevel: 'H'});
125 };
126 document.body.appendChild(element);
127 }
128 }
129 </script>
131 <div id="footer">
132 Copyright &copy; <?php echo date('Y'); ?>
133 <a href="http://www.slitaz.org/">SliTaz</a> - Network:
134 <a href="http://scn.slitaz.org/">Community</a>
135 <a href="http://doc.slitaz.org/">Doc</a>
136 <a href="http://forum.slitaz.org/">Forum</a>
137 <a href="http://pkgs.slitaz.org/">Packages</a>
138 <a href="http://bugs.slitaz.org">Bugs</a>
139 <a href="http://hg.slitaz.org/">Hg</a>
140 <p>
141 <img src="#" alt="SliTaz @" onmouseover="this.title = location.href"
142 onclick="this.src = QRCodePNG(location.href, this)" />
143 <a href="http://twitter.com/slitaz">Twitter</a>
144 <a href="http://www.facebook.com/slitaz">Facebook</a>
145 <a href="http://distrowatch.com/slitaz">Distrowatch</a>
146 <a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a>
147 <a href="http://flattr.com/profile/slitaz">Flattr</a>
148 </p>
149 </div>
151 <div class="no">
152 <?php /* provide DokuWiki housekeeping, required in all templates */
153 tpl_indexerWebBug() ?>
154 </div>
156 </body>
157 </html>