[Xfce4-commits] <wiki:master> Add thunar and goodies templates for farm.

Nick Schermer noreply at xfce.org
Fri Feb 11 21:16:01 CET 2011


Updating branch refs/heads/master
         to 50f0e5bb66cf2e89989ae1f107677e4b98b27ba9 (commit)
       from 973d642e6dbc27d92b46b90b6a1285d6284f7103 (commit)

commit 50f0e5bb66cf2e89989ae1f107677e4b98b27ba9
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Feb 11 21:13:17 2011 +0100

    Add thunar and goodies templates for farm.

 lib/tpl/goodies/detail.php                       |   70 +++++
 lib/tpl/goodies/favicon.ico                      |  Bin 0 -> 645 bytes
 lib/tpl/goodies/images/button-dw.png             |  Bin 0 -> 425 bytes
 lib/tpl/goodies/images/button-raw.png            |  Bin 0 -> 192 bytes
 lib/tpl/goodies/images/button-rss.png            |  Bin 0 -> 191 bytes
 lib/tpl/goodies/images/code.png                  |  Bin 0 -> 35241 bytes
 lib/tpl/goodies/images/codeactionscript.png      |  Bin 0 -> 4529 bytes
 lib/tpl/goodies/images/codebash.png              |  Bin 0 -> 3182 bytes
 lib/tpl/goodies/images/codecss.png               |  Bin 0 -> 2630 bytes
 lib/tpl/goodies/images/codehtml.png              |  Bin 0 -> 3013 bytes
 lib/tpl/goodies/images/codejavascript.png        |  Bin 0 -> 4244 bytes
 lib/tpl/goodies/images/codephp.png               |  Bin 0 -> 2742 bytes
 lib/tpl/goodies/images/codephp4.png              |  Bin 0 -> 2969 bytes
 lib/tpl/goodies/images/codephp5.png              |  Bin 0 -> 3061 bytes
 lib/tpl/goodies/images/codewiki.png              |  Bin 0 -> 3037 bytes
 lib/tpl/goodies/images/content.gif               |  Bin 0 -> 543 bytes
 lib/tpl/goodies/images/content.xcf               |  Bin 0 -> 3073 bytes
 lib/tpl/goodies/images/contentbody.gif           |  Bin 0 -> 170 bytes
 lib/tpl/goodies/images/contentbody.xcf           |  Bin 0 -> 3073 bytes
 lib/tpl/goodies/images/contentbottom.gif         |  Bin 0 -> 2773 bytes
 lib/tpl/goodies/images/contentbottom.xcf         |  Bin 0 -> 8369 bytes
 lib/tpl/goodies/images/contentbottom_prepend.gif |  Bin 0 -> 1122 bytes
 lib/tpl/goodies/images/contentbottom_prepend.xcf |  Bin 0 -> 4132 bytes
 lib/tpl/goodies/images/contenttop.gif            |  Bin 0 -> 2717 bytes
 lib/tpl/goodies/images/contenttop.xcf            |  Bin 0 -> 9652 bytes
 lib/tpl/goodies/images/contenttop_prepend.gif    |  Bin 0 -> 1047 bytes
 lib/tpl/goodies/images/contenttop_prepend.xcf    |  Bin 0 -> 8326 bytes
 lib/tpl/goodies/images/file.gif                  |  Bin 0 -> 135 bytes
 lib/tpl/goodies/images/folder.gif                |  Bin 0 -> 294 bytes
 lib/tpl/goodies/images/folder_open.gif           |  Bin 0 -> 186 bytes
 lib/tpl/goodies/images/h1.gif                    |  Bin 0 -> 2609 bytes
 lib/tpl/goodies/images/h2.gif                    |  Bin 0 -> 1149 bytes
 lib/tpl/goodies/images/h3.gif                    |  Bin 0 -> 1214 bytes
 lib/tpl/goodies/images/h4.gif                    |  Bin 0 -> 1288 bytes
 lib/tpl/goodies/images/h5.gif                    |  Bin 0 -> 1165 bytes
 lib/tpl/goodies/images/headerappend.gif          |  Bin 0 -> 1426 bytes
 lib/tpl/goodies/images/headerappend.png          |  Bin 0 -> 1708 bytes
 lib/tpl/goodies/images/headerappend.xcf          |  Bin 0 -> 11635 bytes
 lib/tpl/goodies/images/headerprepend.gif         |  Bin 0 -> 374 bytes
 lib/tpl/goodies/images/headerprepend.png         |  Bin 0 -> 789 bytes
 lib/tpl/goodies/images/headerprepend.xcf         |  Bin 0 -> 7445 bytes
 lib/tpl/goodies/images/interwiki.png             |  Bin 0 -> 516 bytes
 lib/tpl/goodies/images/level_h2.gif              |  Bin 0 -> 544 bytes
 lib/tpl/goodies/images/link_error.gif            |  Bin 0 -> 95 bytes
 lib/tpl/{xfce => goodies}/images/link_icon.gif   |  Bin 942 -> 942 bytes
 lib/tpl/goodies/images/logo.jpg                  |  Bin 0 -> 34133 bytes
 lib/tpl/goodies/images/logo.xcf                  |  Bin 0 -> 28211 bytes
 lib/tpl/goodies/images/panel.png                 |  Bin 0 -> 2543 bytes
 lib/tpl/goodies/images/panel.xcf                 |  Bin 0 -> 38619 bytes
 lib/tpl/goodies/images/search_icon.gif           |  Bin 0 -> 341 bytes
 lib/tpl/goodies/lang/en/lang.php                 |    8 +
 lib/tpl/goodies/lang/fr/lang.php                 |    8 +
 lib/tpl/goodies/layout.css                       |  257 ++++++++++++++++++
 lib/tpl/goodies/main.php                         |   92 +++++++
 lib/tpl/goodies/media.php                        |   27 ++
 lib/tpl/goodies/mediaedit.php                    |   88 +++++++
 lib/tpl/goodies/mediaref.php                     |   50 ++++
 lib/tpl/goodies/print.css                        |    3 +
 lib/tpl/goodies/sidebar.php                      |  144 ++++++++++
 lib/tpl/goodies/style.css                        |  304 ++++++++++++++++++++++
 lib/tpl/goodies/style.ini                        |    7 +
 lib/tpl/thunar/design.css                        |  207 +++++++++++++++
 lib/tpl/{xfce => thunar}/detail.php              |   72 +++---
 lib/tpl/thunar/explorer.php                      |  127 +++++++++
 lib/tpl/thunar/images/button-dw.png              |  Bin 0 -> 425 bytes
 lib/tpl/thunar/images/button-raw.png             |  Bin 0 -> 192 bytes
 lib/tpl/thunar/images/button-rss.png             |  Bin 0 -> 191 bytes
 lib/tpl/thunar/images/button-thunar.png          |  Bin 0 -> 845 bytes
 lib/tpl/thunar/images/code.png                   |  Bin 0 -> 35241 bytes
 lib/tpl/thunar/images/codeactionscript.png       |  Bin 0 -> 4529 bytes
 lib/tpl/thunar/images/codebash.png               |  Bin 0 -> 3182 bytes
 lib/tpl/thunar/images/codecss.png                |  Bin 0 -> 2630 bytes
 lib/tpl/thunar/images/codehtml.png               |  Bin 0 -> 3013 bytes
 lib/tpl/thunar/images/codejavascript.png         |  Bin 0 -> 4244 bytes
 lib/tpl/thunar/images/codephp.png                |  Bin 0 -> 2742 bytes
 lib/tpl/thunar/images/codephp4.png               |  Bin 0 -> 2969 bytes
 lib/tpl/thunar/images/codephp5.png               |  Bin 0 -> 3061 bytes
 lib/tpl/thunar/images/codewiki.png               |  Bin 0 -> 3037 bytes
 lib/tpl/thunar/images/contentappend1.gif         |  Bin 0 -> 782 bytes
 lib/tpl/thunar/images/contentappend2.gif         |  Bin 0 -> 178 bytes
 lib/tpl/thunar/images/contentbody1.gif           |  Bin 0 -> 336 bytes
 lib/tpl/thunar/images/contentbody2.gif           |  Bin 0 -> 110 bytes
 lib/tpl/thunar/images/contentprepend.gif         |  Bin 0 -> 239 bytes
 lib/tpl/thunar/images/file.gif                   |  Bin 0 -> 135 bytes
 lib/tpl/thunar/images/folder.gif                 |  Bin 0 -> 294 bytes
 lib/tpl/thunar/images/folder_open.gif            |  Bin 0 -> 186 bytes
 lib/tpl/thunar/images/h1.gif                     |  Bin 0 -> 2609 bytes
 lib/tpl/thunar/images/h2.gif                     |  Bin 0 -> 1149 bytes
 lib/tpl/thunar/images/h3.gif                     |  Bin 0 -> 1293 bytes
 lib/tpl/thunar/images/h4.gif                     |  Bin 0 -> 1288 bytes
 lib/tpl/thunar/images/h5.gif                     |  Bin 0 -> 1245 bytes
 lib/tpl/thunar/images/headerappend.gif           |  Bin 0 -> 1227 bytes
 lib/tpl/thunar/images/headerprepend.gif          |  Bin 0 -> 339 bytes
 lib/tpl/thunar/images/interwiki.png              |  Bin 0 -> 516 bytes
 lib/tpl/thunar/images/level_h2.gif               |  Bin 0 -> 544 bytes
 lib/tpl/thunar/images/link_error.gif             |  Bin 0 -> 95 bytes
 lib/tpl/{xfce => thunar}/images/link_icon.gif    |  Bin 942 -> 942 bytes
 lib/tpl/thunar/images/logo.jpg                   |  Bin 0 -> 17547 bytes
 lib/tpl/thunar/images/logo.xcf                   |  Bin 0 -> 29360 bytes
 lib/tpl/thunar/images/menuprepend1.gif           |  Bin 0 -> 1142 bytes
 lib/tpl/thunar/images/menuprepend2.gif           |  Bin 0 -> 359 bytes
 lib/tpl/thunar/images/search_icon.gif            |  Bin 0 -> 341 bytes
 lib/tpl/thunar/lang/en/lang.php                  |    8 +
 lib/tpl/thunar/lang/fr/lang.php                  |    8 +
 lib/tpl/thunar/layout.css                        |  244 +++++++++++++++++
 lib/tpl/thunar/main.php                          |   92 +++++++
 lib/tpl/thunar/media.php                         |   64 +++++
 lib/tpl/thunar/mediaedit.php                     |   87 ++++++
 lib/tpl/thunar/mediaref.php                      |   26 ++
 lib/tpl/thunar/plugins.css                       |   10 +
 lib/tpl/{xfce => thunar}/print.css               |  118 ++++-----
 lib/tpl/thunar/rtl.css                           |  111 ++++++++
 lib/tpl/thunar/toc.php                           |   18 ++
 113 files changed, 2142 insertions(+), 108 deletions(-)

diff --git a/lib/tpl/goodies/detail.php b/lib/tpl/goodies/detail.php
new file mode 100644
index 0000000..12747e1
--- /dev/null
+++ b/lib/tpl/goodies/detail.php
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']; ?>" lang="<?php echo $conf['lang']; ?>">
+	<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+		<meta http-equiv="Content-Style-Type" content="text/css" />
+		<title>
+			<?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
+			[<?php echo hsc($conf['title'])?>]
+		</title>
+		<?php tpl_metaheaders(); ?>
+		<link rel="shortcut icon" href="<?php echo DOKU_TPL?>favicon.ico" />
+	</head>
+	<body id="detail">
+<!-- =============================== CONTENT =============================== -->
+		<div id="content">
+			<div id="contenttop">
+				<div class="prepend"></div>
+			</div>
+			<div id="contentbody">
+				<?php html_msgarea(); ?>
+				<?php if($ERROR){ print $ERROR; }else{ ?>
+				<h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
+				<div class="img_big">
+					<?php tpl_img(900,700) ?>
+				</div>
+				<div class="img_detail">
+					<p class="img_caption">
+						<?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption',
+                                               'EXIF.UserComment',
+                                               'EXIF.TIFFImageDescription',
+                                               'EXIF.TIFFUserComment')))); ?>
+					</p>
+					<p>← <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
+					<dl class="img_tags">
+						<?php
+							$t = tpl_img_getTag('Date.EarliestTime');
+							if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.date($conf['dformat'],$t).'</dd>';
+
+							$t = tpl_img_getTag('File.Name');
+							if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
+
+							$t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
+							if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
+
+							$t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
+							if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
+
+							$t = tpl_img_getTag('File.Format');
+							if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
+
+							$t = tpl_img_getTag('File.NiceSize');
+							if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
+
+							$t = tpl_img_getTag('Simple.Camera');
+							if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
+
+							$t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category'));
+							if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
+						?>
+					</dl>
+				</div>
+				<?php } ?>
+			</div>
+			<div id="contentbottom">
+				<div class="prepend"></div>
+			</div>
+		</div>
+	</body>
+</html>
+
diff --git a/lib/tpl/goodies/favicon.ico b/lib/tpl/goodies/favicon.ico
new file mode 100644
index 0000000..18c0f0c
Binary files /dev/null and b/lib/tpl/goodies/favicon.ico differ
diff --git a/lib/tpl/goodies/images/button-dw.png b/lib/tpl/goodies/images/button-dw.png
new file mode 100644
index 0000000..7d4c109
Binary files /dev/null and b/lib/tpl/goodies/images/button-dw.png differ
diff --git a/lib/tpl/goodies/images/button-raw.png b/lib/tpl/goodies/images/button-raw.png
new file mode 100644
index 0000000..30b7799
Binary files /dev/null and b/lib/tpl/goodies/images/button-raw.png differ
diff --git a/lib/tpl/goodies/images/button-rss.png b/lib/tpl/goodies/images/button-rss.png
new file mode 100644
index 0000000..f243804
Binary files /dev/null and b/lib/tpl/goodies/images/button-rss.png differ
diff --git a/lib/tpl/goodies/images/code.png b/lib/tpl/goodies/images/code.png
new file mode 100644
index 0000000..8c9aa5e
Binary files /dev/null and b/lib/tpl/goodies/images/code.png differ
diff --git a/lib/tpl/goodies/images/codeactionscript.png b/lib/tpl/goodies/images/codeactionscript.png
new file mode 100644
index 0000000..2257bb1
Binary files /dev/null and b/lib/tpl/goodies/images/codeactionscript.png differ
diff --git a/lib/tpl/goodies/images/codebash.png b/lib/tpl/goodies/images/codebash.png
new file mode 100644
index 0000000..6985c76
Binary files /dev/null and b/lib/tpl/goodies/images/codebash.png differ
diff --git a/lib/tpl/goodies/images/codecss.png b/lib/tpl/goodies/images/codecss.png
new file mode 100644
index 0000000..c0a68f5
Binary files /dev/null and b/lib/tpl/goodies/images/codecss.png differ
diff --git a/lib/tpl/goodies/images/codehtml.png b/lib/tpl/goodies/images/codehtml.png
new file mode 100644
index 0000000..141d189
Binary files /dev/null and b/lib/tpl/goodies/images/codehtml.png differ
diff --git a/lib/tpl/goodies/images/codejavascript.png b/lib/tpl/goodies/images/codejavascript.png
new file mode 100644
index 0000000..3bef098
Binary files /dev/null and b/lib/tpl/goodies/images/codejavascript.png differ
diff --git a/lib/tpl/goodies/images/codephp.png b/lib/tpl/goodies/images/codephp.png
new file mode 100644
index 0000000..6de9e80
Binary files /dev/null and b/lib/tpl/goodies/images/codephp.png differ
diff --git a/lib/tpl/goodies/images/codephp4.png b/lib/tpl/goodies/images/codephp4.png
new file mode 100644
index 0000000..40e8b05
Binary files /dev/null and b/lib/tpl/goodies/images/codephp4.png differ
diff --git a/lib/tpl/goodies/images/codephp5.png b/lib/tpl/goodies/images/codephp5.png
new file mode 100644
index 0000000..59c2a8e
Binary files /dev/null and b/lib/tpl/goodies/images/codephp5.png differ
diff --git a/lib/tpl/goodies/images/codewiki.png b/lib/tpl/goodies/images/codewiki.png
new file mode 100644
index 0000000..b086208
Binary files /dev/null and b/lib/tpl/goodies/images/codewiki.png differ
diff --git a/lib/tpl/goodies/images/content.gif b/lib/tpl/goodies/images/content.gif
new file mode 100644
index 0000000..fdc3e3c
Binary files /dev/null and b/lib/tpl/goodies/images/content.gif differ
diff --git a/lib/tpl/goodies/images/content.xcf b/lib/tpl/goodies/images/content.xcf
new file mode 100644
index 0000000..461a54e
Binary files /dev/null and b/lib/tpl/goodies/images/content.xcf differ
diff --git a/lib/tpl/goodies/images/contentbody.gif b/lib/tpl/goodies/images/contentbody.gif
new file mode 100644
index 0000000..a233898
Binary files /dev/null and b/lib/tpl/goodies/images/contentbody.gif differ
diff --git a/lib/tpl/goodies/images/contentbody.xcf b/lib/tpl/goodies/images/contentbody.xcf
new file mode 100644
index 0000000..c3e1adf
Binary files /dev/null and b/lib/tpl/goodies/images/contentbody.xcf differ
diff --git a/lib/tpl/goodies/images/contentbottom.gif b/lib/tpl/goodies/images/contentbottom.gif
new file mode 100644
index 0000000..d50c449
Binary files /dev/null and b/lib/tpl/goodies/images/contentbottom.gif differ
diff --git a/lib/tpl/goodies/images/contentbottom.xcf b/lib/tpl/goodies/images/contentbottom.xcf
new file mode 100644
index 0000000..fb723e3
Binary files /dev/null and b/lib/tpl/goodies/images/contentbottom.xcf differ
diff --git a/lib/tpl/goodies/images/contentbottom_prepend.gif b/lib/tpl/goodies/images/contentbottom_prepend.gif
new file mode 100644
index 0000000..7bd3e58
Binary files /dev/null and b/lib/tpl/goodies/images/contentbottom_prepend.gif differ
diff --git a/lib/tpl/goodies/images/contentbottom_prepend.xcf b/lib/tpl/goodies/images/contentbottom_prepend.xcf
new file mode 100644
index 0000000..f507f81
Binary files /dev/null and b/lib/tpl/goodies/images/contentbottom_prepend.xcf differ
diff --git a/lib/tpl/goodies/images/contenttop.gif b/lib/tpl/goodies/images/contenttop.gif
new file mode 100644
index 0000000..44ee9d8
Binary files /dev/null and b/lib/tpl/goodies/images/contenttop.gif differ
diff --git a/lib/tpl/goodies/images/contenttop.xcf b/lib/tpl/goodies/images/contenttop.xcf
new file mode 100644
index 0000000..5f82de7
Binary files /dev/null and b/lib/tpl/goodies/images/contenttop.xcf differ
diff --git a/lib/tpl/goodies/images/contenttop_prepend.gif b/lib/tpl/goodies/images/contenttop_prepend.gif
new file mode 100644
index 0000000..f6bbb2d
Binary files /dev/null and b/lib/tpl/goodies/images/contenttop_prepend.gif differ
diff --git a/lib/tpl/goodies/images/contenttop_prepend.xcf b/lib/tpl/goodies/images/contenttop_prepend.xcf
new file mode 100644
index 0000000..1da8665
Binary files /dev/null and b/lib/tpl/goodies/images/contenttop_prepend.xcf differ
diff --git a/lib/tpl/goodies/images/file.gif b/lib/tpl/goodies/images/file.gif
new file mode 100644
index 0000000..778dbdf
Binary files /dev/null and b/lib/tpl/goodies/images/file.gif differ
diff --git a/lib/tpl/goodies/images/folder.gif b/lib/tpl/goodies/images/folder.gif
new file mode 100644
index 0000000..ae87487
Binary files /dev/null and b/lib/tpl/goodies/images/folder.gif differ
diff --git a/lib/tpl/goodies/images/folder_open.gif b/lib/tpl/goodies/images/folder_open.gif
new file mode 100644
index 0000000..36e6de8
Binary files /dev/null and b/lib/tpl/goodies/images/folder_open.gif differ
diff --git a/lib/tpl/goodies/images/h1.gif b/lib/tpl/goodies/images/h1.gif
new file mode 100644
index 0000000..65bce09
Binary files /dev/null and b/lib/tpl/goodies/images/h1.gif differ
diff --git a/lib/tpl/goodies/images/h2.gif b/lib/tpl/goodies/images/h2.gif
new file mode 100644
index 0000000..f3baa67
Binary files /dev/null and b/lib/tpl/goodies/images/h2.gif differ
diff --git a/lib/tpl/goodies/images/h3.gif b/lib/tpl/goodies/images/h3.gif
new file mode 100644
index 0000000..51eadb3
Binary files /dev/null and b/lib/tpl/goodies/images/h3.gif differ
diff --git a/lib/tpl/goodies/images/h4.gif b/lib/tpl/goodies/images/h4.gif
new file mode 100644
index 0000000..eccaaaa
Binary files /dev/null and b/lib/tpl/goodies/images/h4.gif differ
diff --git a/lib/tpl/goodies/images/h5.gif b/lib/tpl/goodies/images/h5.gif
new file mode 100644
index 0000000..f0f9fe7
Binary files /dev/null and b/lib/tpl/goodies/images/h5.gif differ
diff --git a/lib/tpl/goodies/images/headerappend.gif b/lib/tpl/goodies/images/headerappend.gif
new file mode 100644
index 0000000..20024a4
Binary files /dev/null and b/lib/tpl/goodies/images/headerappend.gif differ
diff --git a/lib/tpl/goodies/images/headerappend.png b/lib/tpl/goodies/images/headerappend.png
new file mode 100644
index 0000000..8e3e7b5
Binary files /dev/null and b/lib/tpl/goodies/images/headerappend.png differ
diff --git a/lib/tpl/goodies/images/headerappend.xcf b/lib/tpl/goodies/images/headerappend.xcf
new file mode 100644
index 0000000..9638067
Binary files /dev/null and b/lib/tpl/goodies/images/headerappend.xcf differ
diff --git a/lib/tpl/goodies/images/headerprepend.gif b/lib/tpl/goodies/images/headerprepend.gif
new file mode 100644
index 0000000..81f83fc
Binary files /dev/null and b/lib/tpl/goodies/images/headerprepend.gif differ
diff --git a/lib/tpl/goodies/images/headerprepend.png b/lib/tpl/goodies/images/headerprepend.png
new file mode 100644
index 0000000..0d9e8e0
Binary files /dev/null and b/lib/tpl/goodies/images/headerprepend.png differ
diff --git a/lib/tpl/goodies/images/headerprepend.xcf b/lib/tpl/goodies/images/headerprepend.xcf
new file mode 100644
index 0000000..e80a8db
Binary files /dev/null and b/lib/tpl/goodies/images/headerprepend.xcf differ
diff --git a/lib/tpl/goodies/images/interwiki.png b/lib/tpl/goodies/images/interwiki.png
new file mode 100644
index 0000000..a845cd5
Binary files /dev/null and b/lib/tpl/goodies/images/interwiki.png differ
diff --git a/lib/tpl/goodies/images/level_h2.gif b/lib/tpl/goodies/images/level_h2.gif
new file mode 100644
index 0000000..b43d308
Binary files /dev/null and b/lib/tpl/goodies/images/level_h2.gif differ
diff --git a/lib/tpl/goodies/images/link_error.gif b/lib/tpl/goodies/images/link_error.gif
new file mode 100644
index 0000000..be192d6
Binary files /dev/null and b/lib/tpl/goodies/images/link_error.gif differ
diff --git a/lib/tpl/xfce/images/link_icon.gif b/lib/tpl/goodies/images/link_icon.gif
similarity index 100%
copy from lib/tpl/xfce/images/link_icon.gif
copy to lib/tpl/goodies/images/link_icon.gif
diff --git a/lib/tpl/goodies/images/logo.jpg b/lib/tpl/goodies/images/logo.jpg
new file mode 100644
index 0000000..21f2616
Binary files /dev/null and b/lib/tpl/goodies/images/logo.jpg differ
diff --git a/lib/tpl/goodies/images/logo.xcf b/lib/tpl/goodies/images/logo.xcf
new file mode 100644
index 0000000..2df4d22
Binary files /dev/null and b/lib/tpl/goodies/images/logo.xcf differ
diff --git a/lib/tpl/goodies/images/panel.png b/lib/tpl/goodies/images/panel.png
new file mode 100644
index 0000000..b677b5a
Binary files /dev/null and b/lib/tpl/goodies/images/panel.png differ
diff --git a/lib/tpl/goodies/images/panel.xcf b/lib/tpl/goodies/images/panel.xcf
new file mode 100644
index 0000000..3c3f4f9
Binary files /dev/null and b/lib/tpl/goodies/images/panel.xcf differ
diff --git a/lib/tpl/goodies/images/search_icon.gif b/lib/tpl/goodies/images/search_icon.gif
new file mode 100644
index 0000000..786d8ce
Binary files /dev/null and b/lib/tpl/goodies/images/search_icon.gif differ
diff --git a/lib/tpl/goodies/lang/en/lang.php b/lib/tpl/goodies/lang/en/lang.php
new file mode 100644
index 0000000..02074f4
--- /dev/null
+++ b/lib/tpl/goodies/lang/en/lang.php
@@ -0,0 +1,8 @@
+<?php
+/*
+ * english version
+ */
+$lang["pagemap"] = "Page map";
+$lang["sitemap"] = "Site map";
+
+?>
diff --git a/lib/tpl/goodies/lang/fr/lang.php b/lib/tpl/goodies/lang/fr/lang.php
new file mode 100644
index 0000000..2853c24
--- /dev/null
+++ b/lib/tpl/goodies/lang/fr/lang.php
@@ -0,0 +1,8 @@
+<?php
+/*
+ * french version
+ */
+$lang["pagemap"] = "Plan de la page";
+$lang["sitemap"] = "Plan du site";
+
+?>
diff --git a/lib/tpl/goodies/layout.css b/lib/tpl/goodies/layout.css
new file mode 100644
index 0000000..bfa51d8
--- /dev/null
+++ b/lib/tpl/goodies/layout.css
@@ -0,0 +1,257 @@
+/* ================================== BODY ================================== */
+html, body {
+	margin: 0;
+	padding: 0;
+}
+body { padding: 0 0.2em 0 0.2em; }
+body#media, body#mediaedit { padding:0; }
+
+.clearer {
+	clear: both;
+	padding-bottom: 20px;
+}
+/* ================================= HEADER ================================= */
+#header {
+	min-width: 540px;
+	height: 80px;
+}
+#headerprepend {
+	height: 80px;
+	width: 40px;
+	position: absolute;
+	top: 0;
+	left: 0.2em;
+}
+#headerappend {
+	height: 80px;
+	margin: 0 0 0 40px;
+}
+#userinfo {
+	position: absolute;
+	top: 32px;
+	right: 1.9em;
+}
+#logo {
+	position: absolute;
+	top: 5px;
+	left: 1.2em;
+	height: 60px;
+	width: 440px;
+}
+#logo img{
+	border: none;
+}
+#searchform {
+	position: absolute;
+	top: 5px;
+	right: 4em;
+}
+#searchform input {
+	padding: 1px 1px 1px 20px;
+	width: 10em;
+}
+#searchform .button {
+	padding: 0 3px 0 3px;
+	width: auto;
+	margin: 0 0 0 3px;
+}
+#qsearch__out {
+	display: none;
+	padding: 5px;
+	position: absolute;
+	right: 19em;
+	top: 0px;
+	width: 400px;
+	z-index: 500;
+}
+#qsearch__out ul{
+	display: block;
+	margin: 0;
+	padding-left: 1em;
+}
+#qsearch__out li {
+}
+/* =============================== NAVIGATION =============================== */
+#navigation {
+	position: absolute;
+	top: 50px;
+	right: 1.0em;
+}
+#navigation ul {
+	margin: 0;
+	padding: 0;
+}
+#navigation li {
+	display: inline;
+	margin: 0 1em 0 0;
+	padding: 0;
+}
+/* ================================= SIDEBAR ================================ */
+#sidebar {
+	width: __sidebar_width__;
+	position: absolute;
+	left: 0.2em;
+}
+/* ================================== MENU ================================== */
+.menu {
+	margin: 0;
+}
+.menutop, .menubottom {
+	height: 2em;
+}
+.menutop .prepend, .menubottom .prepend {
+	height: 2em;
+	width: 30px;
+	float: left;
+}
+.menutop .title {
+	margin: 0;
+	padding: .5em 0 0 0;
+}
+.menubody {
+	padding: .5em 15px .5em 2em;
+}
+.menu ul {
+	margin: 0 10px 0 10px;
+	padding: 0;
+}
+.menu li {
+	margin: 0;
+	padding: 0;
+}
+
+/* ================================ PAGEMAP ================================= */
+.pagemap .menubody { padding: .5em 15px .5em 1em; }
+.pagemap .toc { margin: 0; }
+.pagemap .level1 { margin: 0; }
+.pagemap .level2 { margin: 0 0 0 1.5em; }
+.pagemap .level3 { margin: 0 0 0 1.2em; }
+.pagemap .level4 { margin: 0 0 0 1.2em; }
+.pagemap .level5 { margin: 0 0 0 1.2em; }
+
+/* ================================= LINKS ================================== */
+#links { width: 17em; }
+#links ul { list-style: none; padding: 0; margin: 0 0 0 20px; }
+#links li { display: inline; }
+#links img { border: none; }
+
+/* ================================ CONTENT ================================= */
+#content{
+	margin: 0 0 0 __sidebar_width__;
+	width: auto;
+}
+#detail #content, #mediaref #content, #media #content, #mediaedit #content  { margin: 0; }
+#contenttop, #contentbottom {
+	height: 2em;
+}
+#contenttop .prepend, #contentbottom .prepend {
+	height: 2em;
+	width: 30px;
+	float: left;
+}
+#contenttop .commands {
+	margin: 0;
+	padding: .5em 0 0 0;
+}
+#contenttop .commands li {
+	display: inline;
+}
+
+#contentbody {
+	padding: .5em 15px .5em 15px;
+}
+#contentbody * {
+	zoom: 1; /* for IE */
+}
+
+
+/* ============================= CONTENT WIKI =============================== */
+/* ********* TOC ********* */
+#contentbody .toc{
+	display: none;
+}
+
+/* ********* EDIT ********* */
+#contentbody .secedit{
+	text-align: right;
+	padding: 0 5px 5px 5px;
+}
+#contentbody .secedit form{
+	margin: 0;
+}
+
+/* ********* HEADERS ********* */
+#contentbody h1 { 
+	margin: 1em 0 0 0;
+	padding: 1px 0 10px 15px;
+}
+#contentbody h2 { 
+	margin: 1em 1px 1px 2em;
+	padding: 1px 1px 5px 20px;
+}
+#contentbody h3 { 
+	margin: 1em 1px 0px 4em;
+	padding: 1px 1px 5px 20px;
+}
+#contentbody h4 { 
+	margin: 1em 1px 0px 6em;
+	padding: 1px 1px 5px 20px;
+}
+#contentbody h5 { 
+	margin: 1em 1px 0px 8em;
+	padding: 1px 1px 5px 20px;
+}
+
+/* ********* LEVELS ********* */
+#contentbody div.level1 { margin: 0 0 0 1em; }
+#contentbody div.level2 { 
+	margin: 1px 1px 0px 2em; 
+	padding: 1px 1px 1px 20px; 
+}
+#contentbody div.level3 { 
+	margin: 1px 1px 0px 4em; 
+	padding: 1px 1px 1px 20px; 
+}
+#contentbody div.level4 { 
+	margin: 1px 1px 0px 6em; 
+	padding: 1px 1px 1px 20px; 
+}
+#contentbody div.level5 { 
+	margin: 1px 1px 0px 8em; 
+	padding: 1px 1px 1px 20px; 
+}
+
+/* ********* LISTS ********* */
+#contentbody ul { margin:0 0 0 2em; padding: 0; }
+#contentbody li.level1, #contentbody li.level2, #contentbody li.level3, #contentbody li.level4, #contentbody li.level5 { margin: 0; padding: 0; }
+
+/* ********* IMAGES ********* */
+#contentbody img { border: none; }
+#contentbody img.media { margin: 3px; }
+#contentbody img.medialeft { float: left;  margin: 0 3px 0 0; }
+#contentbody img.mediaright { float: right; margin: 0 0 0 3px; }
+#contentbody img.mediacenter { display: block;  margin-left: auto;  margin-right: auto; }
+
+/* ********* TABLES ********* */
+#contentbody table {
+	margin: 5px 0 5px 0;
+	border-collapse: collapse;
+}
+#contentbody table th { padding: 2px 5px 2px 5px; }
+#contentbody table td { padding: 2px 5px 2px 5px; }
+#contentbody table td.rightalign { text-align: right; }
+#contentbody table td.centeralign { text-align: center; }
+#contentbody table td.leftalign { text-align: left; }
+
+/* ********* MEDIA ********* */
+#media { margin: 1em; }
+#media a img { border: none; }
+#media .mediaselect .mediaselect-left { float: left; width: 15em; }
+#media .mediaselect .mediaselect-left ul { margin: 0 0 0 10px; padding: 0; }
+#media .mediaselect .mediaselect-right { margin-left: 15em; padding: 5px; }
+#media .mediaselect .mediaselect-right ul { list-style: none; margin: 0; padding: 0; }
+#media .mediaselect .mediaselect-right ul li { padding: 5px; margin-bottom: 5px; }
+#media .mediaselect .mediaselect-right ul li .imagemeta { padding: 5px 0 0 0; margin: 5px 0 0 0; }
+#media label { display: block; }
+#mediaedit label { float: left; width: 8em; text-align: right; padding: 2px 5px 0 0; }
+#mediaedit .footer { margin-top: 1em; padding-top: 5px; }
diff --git a/lib/tpl/goodies/main.php b/lib/tpl/goodies/main.php
new file mode 100644
index 0000000..325d77d
--- /dev/null
+++ b/lib/tpl/goodies/main.php
@@ -0,0 +1,92 @@
+<?php
+	include_once(dirname(__FILE__).'/lang/en/lang.php');
+	@include_once(dirname(__FILE__).'/lang/'.$conf['lang'].'/lang.php');
+	
+	include(dirname(__FILE__).'/sidebar.php');
+	$toc = getToc();
+
+?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']; ?>" lang="<?php echo $conf['lang']; ?>">
+	<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+		<meta http-equiv="Content-Style-Type" content="text/css" />
+		<title><?php tpl_pagetitle()?> [<?php echo hsc($conf['title'])?>]</title>
+		<?php tpl_metaheaders(); ?>
+		<link rel="shortcut icon" href="<?php echo DOKU_TPL?>favicon.ico" />
+
+	</head>
+	<body>
+<!-- =============================== HEADER =============================== -->
+		<div id="header">
+			<div id="headerprepend"></div>
+			<div id="logo"><a href="<?php echo wl($conf["start"]); ?>"><img src="<?php echo DOKU_TPL; ?>images/logo.jpg"/></a></div>
+			<div id="userinfo"><?php tpl_userinfo(); ?></div>
+			<div id="searchform">
+				<?php tpl_searchform(); ?>
+			</div>
+			<div id="navigation">
+				<ul>
+					<li><?php tpl_actionlink("login"); ?> </li>
+					<li><?php tpl_actionlink("recent"); ?> </li>
+					<li><?php tpl_actionlink("admin"); ?> </li>
+				</ul>
+			</div>
+			<div id="headerappend"></div>
+		</div>
+		<div id="sidebar">
+<!-- ================================= TOC ================================= -->
+			<?php if($toc){ ?>
+			<div class="menu pagemap">
+				<div class="menutop">
+					<div class="prepend"></div>
+					<div class="title"><?php echo $lang["pagemap"]; ?></div>
+				</div>
+				<div class="menubody">
+					<?php echo $toc; ?>
+				</div>
+				<div class="menubottom"><div class="prepend"></div></div>
+			</div>
+			<?php } ?>
+<!-- ============================== EXPLORER =============================== -->
+			<div class="menu">
+				<div class="menutop">
+					<div class="prepend"></div>
+					<div class="title"><?php echo $lang["sitemap"]; ?></div>
+				</div>
+				<div class="menubody">
+					<?php tpl_sitemap(); ?>
+				</div>
+				<div class="menubottom"><div class="prepend"></div></div>
+			</div>
+<!-- ================================ LINKS ================================ -->
+			<div id="links">
+				<ul>
+					<li><a href="<?php echo DOKU_BASE; ?>feed.php" title="<?php echo $lang['btn_recent']; ?>"><img src="<?php echo DOKU_TPL; ?>images/button-rss.png" alt="<?php echo $lang['btn_recent']; ?>" /></a></li>
+					<li><a href="http://thunar.xfce.org" title="Source"><img src="http://thunar.xfce.org/pwiki/lib/tpl/thunar/images/button-thunar.png" alt="Thunar" /></a></li>
+					<li><a href="http://wiki.splitbrain.org/wiki:dokuwiki" title="Propulsé par DokuWiki"><img src="<?php echo DOKU_TPL; ?>images/button-dw.png" alt="Propulsé par DokuWiki" /></a></li>
+				</ul>
+			</div>
+		</div>
+<!-- =============================== CONTENT =============================== -->
+		<div id="content">
+			<div id="contenttop">
+				<div class="prepend"></div>
+				<ul class="commands">
+					<li>[<?php tpl_actionlink("edit"); ?>]</li>
+					<li>[<?php tpl_actionlink("history"); ?>]</li>
+				</ul>
+			</div>
+			<div id="contentbody">
+				<?php html_msgarea(); ?>
+				<?php flush(); ?>
+				<?php tpl_content(); ?>
+				<div class="clearer"> </div>
+				<?php flush(); ?>
+			</div>
+			<div id="contentbottom">
+				<div class="prepend"></div>
+				<?php tpl_pageinfo(); ?>
+			</div>
+		</div>
+	</body>
+</html>
diff --git a/lib/tpl/goodies/media.php b/lib/tpl/goodies/media.php
new file mode 100644
index 0000000..36ce849
--- /dev/null
+++ b/lib/tpl/goodies/media.php
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']; ?>" lang="<?php echo $conf['lang']; ?>">
+	<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+		<meta http-equiv="Content-Style-Type" content="text/css" />
+		<title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title>
+		<?php tpl_metaheaders(); ?>
+		<link rel="shortcut icon" href="<?php echo DOKU_TPL?>favicon.ico" />
+	</head>
+<body id="media">
+	<?php html_msgarea()?>
+	<h1><?php echo hsc($lang['mediaselect'])?> <code><?php echo hsc($NS)?></code></h1>
+	<div class="mediaselect">
+		<div class="mediaselect-left">
+			<strong><a href="<?php echo DOKU_BASE?>lib/exe/media.php?ns="><?php echo hsc($lang['namespaces'])?></a></strong>
+			<?php tpl_medianamespaces()?>
+		</div>
+		<div class="mediaselect-right">
+			<?php tpl_mediafilelist()?>
+			<div class="uploadform">
+				<?php tpl_mediauploadform()?>
+			</div>
+		</div>
+	</div>
+</body>
+</html>
+
diff --git a/lib/tpl/goodies/mediaedit.php b/lib/tpl/goodies/mediaedit.php
new file mode 100644
index 0000000..7f6b09b
--- /dev/null
+++ b/lib/tpl/goodies/mediaedit.php
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']; ?>" lang="<?php echo $conf['lang']; ?>">
+	<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+		<meta http-equiv="Content-Style-Type" content="text/css" />
+		<title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title>
+		<?php tpl_metaheaders(); ?>
+		<link rel="shortcut icon" href="<?php echo DOKU_TPL?>favicon.ico" />
+	</head>
+	<body id="mediaedit">
+<!-- =============================== CONTENT =============================== -->
+		<div id="content">
+			<div id="contenttop">
+				<div class="prepend"></div>
+			</div>
+			<div id="contentbody">
+			
+			
+			
+			
+  <?php html_msgarea()?>
+
+  <h1><?php echo hsc($lang['metaedit'])?></h1>
+  <h2><code><?php echo hsc(noNS($IMG))?></code></h2>
+
+  <div class="mediaedit">
+    <?php/* everything in meta array is tried to save and read */?>
+
+    <div class="data">
+      <form action="<?php echo DOKU_BASE?>lib/exe/media.php" accept-charset="utf-8" method="post">
+        <input type="hidden" name="edit" value="<?php echo hsc($IMG)?>" />
+        <input type="hidden" name="save" value="1" />
+
+        <label class="block" for="img__title"><?php echo $lang['img_title']?></label>
+        <input type="text" name="meta[Iptc.Headline]" id="img__title" class="edit"
+         value="<?php echo hsc(tpl_img_getTag('IPTC.Headline'))?>" /><br />
+
+        <label class="block" for="img__caption"><?php echo $lang['img_caption']?></label>
+        <textarea name="meta[Iptc.Caption]" id="img__caption" class="edit" rows="5"><?php
+          echo hsc(tpl_img_getTag(array('IPTC.Caption',
+                                        'EXIF.UserComment',
+                                        'EXIF.TIFFImageDescription',
+                                        'EXIF.TIFFUserComment')));
+        ?></textarea><br />
+
+        <label class="block" for="img__artist"><?php echo $lang['img_artist']?></label>
+        <input type="text" name="meta[Iptc.Byline]" id="img__artist" class="edit"
+         value="<?php echo hsc(tpl_img_getTag(array('Iptc.Byline',
+                                                    'Exif.TIFFArtist',
+                                                    'Exif.Artist',
+                                                    'Iptc.Credit')))?>" /><br />
+
+        <label class="block" for="img__copy"><?php echo $lang['img_copyr']?></label>
+        <input type="text" name="meta[Iptc.CopyrightNotice]" id="img__copy" class="edit"
+         value="<?php echo hsc(tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')))?>" /><br />
+
+
+        <label class="block" for="img__keywords"><?php echo $lang['img_keywords']?></label>
+        <textarea name="meta[Iptc.Keywords]" id="img__keywords" class="edit"><?php
+          echo hsc(tpl_img_getTag(array('IPTC.Keywords',
+                                        'EXIF.Category')));
+        ?></textarea><br />
+
+
+        <input type="submit" value="<?php echo $lang['btn_save']?>" title="ALT+S"
+         accesskey="s" class="button" />
+
+      </form>
+    </div>
+
+
+    <div class="footer">
+      <hr />
+        <?php tpl_button('backtomedia')?>
+    </div>
+  </div>
+  
+  
+  
+  
+			</div>
+			<div id="contentbottom">
+				<div class="prepend"></div>
+			</div>
+		</div>
+
+	</body>
+</html>
diff --git a/lib/tpl/goodies/mediaref.php b/lib/tpl/goodies/mediaref.php
new file mode 100644
index 0000000..06af576
--- /dev/null
+++ b/lib/tpl/goodies/mediaref.php
@@ -0,0 +1,50 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<?php
+/**
+ * DokuWiki Default Template
+ *
+ * This is the template for displaying references to a media file.
+ * It is displayed in the media popup.
+ *
+ * You should leave the doctype at the very top - It should
+ * always be the very first line of a document.
+ *
+ * @link   http://wiki.splitbrain.org/wiki:tpl:templates
+ * @author Andreas Gohr <andi at splitbrain.org>
+ */
+?>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title>
+
+  <?php tpl_metaheaders()?>
+
+  <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
+
+</head>
+
+<body>
+<div class="dokuwiki">
+  <?php html_msgarea()?>
+
+  <h1><?php echo hsc($lang['reference'])?> <code><?php echo hsc(noNS($DEL))?></code></h1>
+
+  <div class="mediaref">
+    <div class="mediaref_head">
+      <p><?php echo hsc($lang['ref_inuse'])?></p>
+    </div>
+
+    <?php tpl_showreferences($mediareferences)?>
+
+  <div class="mediaref_footer">
+    <hr />
+      <?php tpl_button('backtomedia')?>
+    </div>
+  </div>
+
+</div>
+</body>
+</html>
+
diff --git a/lib/tpl/goodies/print.css b/lib/tpl/goodies/print.css
new file mode 100644
index 0000000..4e5df13
--- /dev/null
+++ b/lib/tpl/goodies/print.css
@@ -0,0 +1,3 @@
+#header, #sidebar, .toc, #contenttop, #contentbottom, .secedit {
+	display: none;
+}
\ No newline at end of file
diff --git a/lib/tpl/goodies/sidebar.php b/lib/tpl/goodies/sidebar.php
new file mode 100644
index 0000000..5994370
--- /dev/null
+++ b/lib/tpl/goodies/sidebar.php
@@ -0,0 +1,144 @@
+<?php
+
+
+/**
+ * Afficher un dossier
+ * @param $dataList Le contenu du dossier en array
+ */
+function tpl_list_folder($dataList){
+	global $conf;
+	global $ID;
+	global $INFO;
+	
+	require_once(DOKU_INC.'inc/auth.php');
+	
+	$currentLevel = 1;
+	
+	$pathinfo = pathinfo($_SERVER['REQUEST_URI']);
+	$url = $pathinfo['dirname'];
+	
+	echo "<ul class=\"explorer\">\n";
+	for($i=0; $i<count($dataList); $i++){		
+		
+		// Permission
+		if($dataList[$i]["type"] == "d"){
+			$perm = auth_quickaclcheck($dataList[$i]["id"].":*");
+		}else{
+			$perm = auth_quickaclcheck($dataList[$i]["id"]);
+		}
+		
+		if($perm > 0){
+		
+			// Nom du lien
+			$firstHeading = p_get_first_heading($dataList[$i]["id"]);
+			if($conf['useheading'] && $dataList[$i]["type"] == "f" && !empty($firstHeading)){
+				$linkName = $firstHeading;
+			}else{
+				$linkName = split(":", $dataList[$i]["id"]);
+				$linkName = $linkName[count($linkName) - 1];
+				$linkName = str_replace("_", " ", $linkName);
+			}
+			
+			// On vérifie qu'on est dans le bon level
+			if($currentLevel > $dataList[$i]["level"]){
+				echo str_repeat("</ul></li>\n", $currentLevel - $dataList[$i]["level"]);
+				$currentLevel = $dataList[$i]["level"];
+			}
+			
+			// Affichage
+			if($dataList[$i]["type"] == "d"){
+				// dossier
+				if($dataList[$i]["open"]){
+					echo "<li class=\"folderopen\">";
+				}else{
+					echo "<li class=\"folder\">";
+				}
+				
+				if($_REQUEST["do"] == "admin" && $_REQUEST["page"] == "acl"){
+					$path = wl($dataList[$i]["id"].":".$conf['start'], "do=admin&page=acl");
+				}else{
+					$path = wl($dataList[$i]["id"].":".$conf['start']);
+				}
+				tpl_link($path,$linkName);
+			}else{
+				// fichier
+				echo "<li class=\"file\">";
+				if($dataList[$i]["id"] == $ID){
+					// Page affichée
+					echo "<strong>";
+				}
+				if($_REQUEST["do"] == "admin" && $_REQUEST["page"] == "acl"){
+					$path = wl($dataList[$i]["id"], "do=admin&page=acl");
+				}else{
+					$path = wl($dataList[$i]["id"]);
+				}
+				tpl_link($path,$linkName);
+				
+				if($dataList[$i]["id"] == $ID){
+					// Page affichée
+					echo "</strong>";
+				}
+			}
+			
+			if($dataList[$i+1]["level"] == $currentLevel){
+				// dossier courant
+				echo "</li>\n";
+			}else if($dataList[$i+1]["level"] > $currentLevel){
+				// Nouveau sous dossier
+				echo "<ul>\n";
+			}else if($dataList[$i+1]["level"] < $currentLevel){
+				// Fin du dossier
+				if(!empty($dataList[$i+1]["level"])){
+					echo str_repeat("</ul></li>\n", $currentLevel - $dataList[$i+1]["level"]);
+				}
+			}
+			$currentLevel = $dataList[$i+1]["level"];
+		}
+	}
+	echo "</ul>\n";
+}
+
+/**
+ * Afficher le plan du site
+ */
+function tpl_sitemap() {
+	global $ID;
+	global $ACT;
+	global $conf;
+	
+	
+	$folder = getNS($ID);
+	
+	require_once(DOKU_INC.'inc/search.php');
+	require_once(DOKU_INC.'inc/html.php');
+	
+	$ns  = cleanID($ID);	
+	if(empty($ns)){
+		$ns = dirname(str_replace(':','/',$ID));
+		if($ns == '.') $ns ='';
+	}
+	$ns  = utf8_encodeFN(str_replace(':','/',$ns));
+	
+	$list = array();
+	search($list,$conf['datadir'],'search_index',array('ns' => $ns));
+	
+	tpl_list_folder($list);
+}
+
+/**
+ * Afficher le plan de la page
+ */
+function getToc(){
+	global $ID;
+	$except = array('admin', 'revisions', 'diff');
+	if(in_array($_REQUEST["do"], $except) || auth_quickaclcheck($ID) < 1) return false;
+	
+	require_once(DOKU_INC.'inc/parserutils.php');
+	
+	$content = p_wiki_xhtml($ID);
+	$pattern = '@<div id="toc__inside">.*?</div>\n</div>@s';
+	
+	preg_match($pattern, $content, $matches);
+	return substr($matches[0], 22, -14);
+} 
+?>
diff --git a/lib/tpl/goodies/style.css b/lib/tpl/goodies/style.css
new file mode 100644
index 0000000..6469839
--- /dev/null
+++ b/lib/tpl/goodies/style.css
@@ -0,0 +1,304 @@
+/* ================================ GENERAL ================================= */
+* { 
+	font-family: Verdana, Helvetica, Arial, sans-serif; 
+	font-size: small; 
+}
+body {
+	background: #a9a8b8;
+	color: #000000;
+}
+/* ================================= HEADER ================================= */
+#headerprepend {
+	background-image: url(images/headerprepend.png);
+	background-position: bottom;
+}
+#headerappend {
+	background-image: url(images/headerappend.png);
+	background-position: bottom right;
+}
+#searchform input { color:#000; border: solid 1px #5d579d; background: #fff url(images/search_icon.gif) no-repeat; }
+#searchform .button { background: #eee; }
+#searchform .button:hover {	background: #ddd; }
+#qsearch__out { background: #fff; border: solid 1px #5d579d; }
+#qsearch__out a { color: #5d579d; text-decoration: none; }
+
+#logo {
+	font-size: 2em;
+	font-weight: bold;
+}
+#logo a {
+	font-size: 1em;
+	text-decoration: none;
+}
+
+/* =============================== NAVIGATION =============================== */
+#navigation li a {
+	text-decoration: none;
+	color: #5d579d;
+	background-color: #fff;
+	font-weight: bold;
+	font-size: 1em;
+	font-variant: small-caps;
+}
+#navigation li a:hover {
+	color: #d8ba62;
+	background-color: #fff;
+}
+
+/* ================================== MENU ================================== */
+.menu {
+	background-image: url(images/content.gif);
+	background-position: right;
+	background-repeat: repeat-y;
+}
+.menubody{
+	background-image: url(images/contentbody.gif);
+	background-repeat: repeat-y;
+}
+.menutop .prepend {
+	background-image: url(images/contenttop_prepend.gif);
+	background-repeat: no-repeat;
+}
+.menutop {
+	background-image: url(images/contenttop.gif);
+	background-position: top right;
+	background-repeat: no-repeat;
+}
+.menutop .title {
+	color: #fff;
+	font-weight: bold;
+	font-variant: small-caps;
+}
+.menubottom .prepend {
+	background-image: url(images/contentbottom_prepend.gif);
+	background-position: bottom left;
+	background-repeat: no-repeat;
+}
+.menubottom {
+	background-image: url(images/contentbottom.gif);
+	background-position: bottom right;
+	background-repeat: no-repeat;
+}
+.menu a { color: #5d579d; text-decoration: none; }
+.menu a:hover { color: #ffb733; }
+
+/* ================================ PAGEMAP ================================= */
+.pagemap .menubody .toc .level1 { list-style: none; }
+.pagemap .menubody .toc .level1 a { color: #f4a600; font-weight: bold; }
+.pagemap .menubody .toc .level1 a:hover { color: #ffb733; }
+.pagemap .menubody .toc .level2 { color: #f4a600; list-style: disc; }
+.pagemap .menubody .toc .level2 a { color: #f4a600; font-weight: normal; }
+.pagemap .menubody .toc .level3 { color: #817cb6; list-style: disc; }
+.pagemap .menubody .toc .level3 a { color: #817cb6; font-weight: normal; }
+
+/* =============================== EXPLORER ================================= */
+.menu .explorer .folder { list-style-image: url(images/folder.gif); }
+.menu .explorer .folderopen { list-style-image: url(images/folder_open.gif); }
+.menu .explorer .file { list-style-image: url(images/file.gif); }
+
+/* ================================ CONTENT ================================= */
+/* top */
+#contenttop .prepend {
+	background-image: url(images/contenttop_prepend.gif);
+	background-repeat: no-repeat;
+}
+#contenttop {
+	background-image: url(images/contenttop.gif);
+	background-position: top right;
+	background-repeat: no-repeat;
+}
+#contenttop .commands { color: #fff; font-weight: bold; font-variant: small-caps; }
+#contenttop .commands a { color: #fff; font-weight: bold; font-variant: small-caps; text-decoration: none; }
+#contenttop .commands a:hover { color: #f8da82; }
+
+/* bottom */
+#contentbottom .prepend {
+	background-image: url(images/contentbottom_prepend.gif);
+	background-position: bottom left;
+	background-repeat: no-repeat;
+}
+#contentbottom {
+	background-image: url(images/contentbottom.gif);
+	background-position: bottom right;
+	background-repeat: no-repeat;
+	color: #999;
+	background-color: #fff;
+}
+
+/* body */
+#content{
+	background-image: url(images/content.gif);
+	background-position: right;
+	background-repeat: repeat-y;
+}
+#contentbody{
+	background-image: url(images/contentbody.gif);
+	background-repeat: repeat-y;
+}
+
+/* ============================= CONTENT WIKI =============================== */
+/* ********* GENERAL ********* */
+#contentbody a { text-decoration: none; color: #5d579d; }
+#contentbody a:hover { color: #827db7; }
+/* Lien interne qui existe */
+#contentbody .wikilink1 { }
+/* Lien interne qui n'existe pas */
+#contentbody .wikilink2 { color: #f00; background: url(images/link_error.gif) 0px 1px no-repeat; padding-left: 15px;}
+#contentbody .wikilink2:hover { color: #ff5d5d; }
+#contentbody .urlextern { background: no-repeat url(images/link_icon.gif); padding-left: 20px; }
+#contentbody .interwiki { background: no-repeat url(images/interwiki.png); padding-left: 20px; }
+
+/* ********* EDIT ********* */
+#contentbody .secedit {
+/*	border: solid 1px #827db7;
+	border-top: solid 1px #fff;
*/
+}
+#contentbody .secedit input{
+	border: solid 1px #827db7;
+	background: #eee;
+	color: #5d579d;
+	font-weight: bold;
+	font-size: xx-small;
+}
+
+/* ********* HEADERS ********* */
+#contentbody h1 { 
+	color: #f4a600; 
+	background: url(images/h1.gif) no-repeat bottom left;
+	font-size: 1.5em; 
+}
+#contentbody h1 a { 
+	color: #f4a600;
+	font-size: 1em; 
+}
+#contentbody h2 { 
+	color: #f4a600;
+	font-size: 1.2em;
+	background: url(images/h2.gif) no-repeat bottom left;
+}
+#contentbody h2 a { 
+	color: #f4a600;
+	font-size: 1em; 
+}
+#contentbody h3 { 
+	color: #817cb6; 
+	font-size: 1em;
+	background: url(images/h3.gif) no-repeat bottom left;
+}
+#contentbody h3 a { 
+	color: #817cb6;
+	font-size: 1em; 
+}
+#contentbody h3.legend { 
+	background-image: none;
+}
+#contentbody h4 { 
+	color: #817cb6; 
+	font-size: 1em;
+	background: url(images/h4.gif) no-repeat bottom left;
+}
+#contentbody h4 a { 
+	color: #817cb6;
+	font-size: 1em; 
+}
+#contentbody h5 { 
+	color: #817cb6; 
+	font-size: 1em;
+	background: url(images/h5.gif) no-repeat bottom left;
+}
+#contentbody h5 a { 
+	color: #817cb6;
+	font-size: 1em; 
+}
+
+/* ********* LEVELS ********* */
+div.level1 { }
+div.level2 { }
+div.level3 { }
+div.level4 { }
+div.level5 { }
+
+/* ********* TABLES ********* */
+#contentbody table { border: solid 1px #999; }
+#contentbody table th { border: solid 1px #999; background-color: #eee; }
+#contentbody table td { border: solid 1px #ccc; background-color: #fff; }
+#contentbody table tr:hover { background-color: #ffffe5; }
+
+/* ********* FOOTNOTE ********* */
+.fn { border-top: dashed 1px #999; background-color: #ffe; margin-top: 20px; }
+.fn+.fn { border-top: none; margin-top: 0; }
+.fn_top { font-size: .7em; vertical-align: super; }
+.fn_bot { font-size: .7em; vertical-align: super; }
+
+/* ********* PREVIEW ********* */
+#contentbody .preview { border: dotted 1px #999; margin: 1em; padding: 1em; }
+
+/* ********* BLOCKQUOTE ********* */
+#contentbody blockquote { border-left: solid 2px #a58fbb; margin: 0; padding: 0 0 0 .5em; }
+
+/* ********* PARAGRAPH ********* */
+#contentbody p { margin: .5em 0 0 0; text-align: justify; }
+
+/* ********* PRE ********* */
+#contentbody pre {
+	padding: 2px;
+	border: 1px dotted #8cacbb;
+	color: #000;
+	overflow: auto;
+}
+
+/* ********* CODE ********* */
+#contentbody .code { 
+	background: #fffff5 url(images/code.png) no-repeat;
+	padding: 21px 2px 2px 4px; 
+	font-family: "Courier New",Courier,monospace;
+	white-space: pre;
+	border-left: solid 2px #a5a3af;
+}
+#contentbody pre.php { background-image: url(images/codephp.png); }
+#contentbody pre.actionscript { background-image: url(images/codeactionscript.png); }
+#contentbody pre.css { background-image: url(images/codecss.png); }
+#contentbody pre.html4strict { background-image: url(images/codehtml.png); }
+#contentbody pre.javascript { background-image: url(images/codejavascript.png); }
+#contentbody pre.bash { background-image: url(images/codebash.png); }
+
+#contentbody pre * { background-color: #fffff5; font-size: 1em; font-family: "Courier New",Courier,monospace; }
+#contentbody pre.code .br0	{ color: #66cc66; }
+#contentbody pre.code .co1	{ color: #808080; font-style: normal; background-color: #f0f0f0; }
+#contentbody pre.code .co2	{ color: #808080; font-style: normal; background-color: #f0f0f0; }
+#contentbody pre.code .coMULTI	{ color: #808080; font-style: normal; background-color: #f0f0f0; }
+#contentbody pre.code .es0	{ color: #000099; font-weight: normal; }
+#contentbody pre.code .kw1	{ color: #b1b100; }
+#contentbody pre.code .kw2	{ color: #000000; font-weight: normal; }
+#contentbody pre.code .kw3	{ color: #000066; }
+#contentbody pre.code .kw4	{ color: #993333; }
+#contentbody pre.code .kw5	{ color: #7777ff; }
+#contentbody pre.code .me0	{ color: #006600; }
+#contentbody pre.code .nu0	{ color: #cc66cc; }
+#contentbody pre.code .re0	{ color: #7777ff; }
+#contentbody pre.code .re1	{ color: #7777ff; }
+#contentbody pre.code .re2	{ color: #7777ff; }
+#contentbody pre.code .re4	{ color: #009999; }
+#contentbody pre.code .sc0	{ color: #00bbdd; }
+#contentbody pre.code .sc1	{ color: #ddbb00; }
+#contentbody pre.code .sc2	{ color: #009900; }
+#contentbody pre.code .st0	{ color: #0000ff; }
+#contentbody code { background-color: #fffff5; border: 1px dotted #8cacbb; font-size: 1em; font-family: "Courier New",Courier,monospace; }
+
+/* ********* DIFF ********* */
+#contentbody .diff-deletedline { background-color: #f99; }
+#contentbody .diff-addedline { background-color: #99f; }
+#contentbody .diffchange { background-color: #ff6;}
+
+/* ********* MEDIA ********* */
+#media { background-color: #fff; }
+#media .mediaselect .mediaselect-left li { margin-left: 15px; list-style-image: url(images/folder.gif); }
+#media .mediaselect .mediaselect-right { border-left: solid 1px #000; }
+#media .mediaselect .mediaselect-right ul li { border: solid 1px #999; }
+#media .mediaselect .mediaselect-right ul li .imagemeta { border-top: solid 1px #ccc; }
+#media .uploadform { margin-top: 20px; }
+#mediaedit .footer { border-top: solid 1px #999; }
+
+/* ********* PAGEINFO ********* */
+#contentbody .pageinfo { border-top: solid 1px #ccc; color: #999; }
+
diff --git a/lib/tpl/goodies/style.ini b/lib/tpl/goodies/style.ini
new file mode 100644
index 0000000..e0720aa
--- /dev/null
+++ b/lib/tpl/goodies/style.ini
@@ -0,0 +1,7 @@
+[stylesheets]
+layout.css     = screen
+style.css      = screen
+print.css      = print
+
+[replacements]
+__sidebar_width__      = "22em"
diff --git a/lib/tpl/thunar/design.css b/lib/tpl/thunar/design.css
new file mode 100644
index 0000000..556989a
--- /dev/null
+++ b/lib/tpl/thunar/design.css
@@ -0,0 +1,207 @@
+/* ================================ GENERAL ================================= */
+* { 
+	font-family: Verdana, Helvetica, Arial, sans-serif; 
+	font-size: small; 
+}
+body {
+	background: #846a46;
+}
+/* ================================= HEADER ================================= */
+#headerprepend { background: url(images/headerprepend.gif); }
+#headerappend {	background: url(images/headerappend.gif) bottom right; }
+#searchform input { border: solid 1px #846a46; background: #fff url(images/search_icon.gif) no-repeat; }
+#searchform .button { background: #eee; }
+#searchform .button:hover {	background: #ddd; }
+#qsearch_out { background: #fff; border: solid 1px #846a46; }
+#qsearch_out a { color: #846a46; text-decoration: none; }
+
+/* =============================== NAVIGATION =============================== */
+#navigation li a { text-decoration: none; color: #594633; font-weight: bold; font-size: 1em; font-variant: small-caps; }
+
+/* ================================== MENU ================================== */
+.menu {	background: url(images/contentbody1.gif) repeat-y; }
+.menutitle { color: #fff; font-weight: bold; font-variant: small-caps; }
+.menuprepend { background: url(images/menuprepend1.gif) no-repeat; }
+.menuprepend .free1 { background: url(images/menuprepend2.gif) no-repeat top right; }
+.menuappend { background: url(images/contentappend1.gif) no-repeat; }
+.menuappend .free1 { background: url(images/contentappend2.gif) no-repeat bottom right; }
+.menu .menubody { background: url(images/contentbody2.gif) repeat-y right; }
+.menu a { color: #594633; text-decoration: none; }
+.menu a:hover { color: #997957; }
+
+/* ================================ PAGEMAP ================================= */
+.pagemap .menubody .toc .level1 { list-style: none; }
+.pagemap .menubody .toc .level1 a { color: #d86332; font-weight: bold; }
+.pagemap .menubody .toc .level1 a:hover { color: #e0815a; }
+.pagemap .menubody .toc .level2 { color: #d86332; list-style: disc; }
+.pagemap .menubody .toc .level2 a { color: #d86332; font-weight: normal; }
+.pagemap .menubody .toc .level3 { color: #d86332; list-style: disc; }
+.pagemap .menubody .toc .level3 a { color: #d86332; font-weight: normal; }
+
+/* =============================== EXPLORER ================================= */
+.menu .explorer .folder { list-style-image: url(images/folder.gif); }
+.menu .explorer .folderopen { list-style-image: url(images/folder_open.gif); }
+.menu .explorer .file { list-style-image: url(images/file.gif); }
+
+/* ================================ CONTENT ================================= */
+#content { background: url(images/contentbody1.gif) repeat-y; }
+#contentprepend { background: url(images/menuprepend1.gif) no-repeat; }
+#contentprepend .free1 { background: url(images/menuprepend2.gif) no-repeat top right; }
+#contentappend { background: url(images/contentappend1.gif) no-repeat; }
+#contentappend .free1 { background: url(images/contentappend2.gif) no-repeat bottom right; }
+#contentbody { background: url(images/contentbody2.gif) repeat-y right; }
+#contentprepend .commands { color: #fff; font-weight: bold; font-variant: small-caps; }
+#contentprepend .commands a { color: #fff; font-weight: bold; font-variant: small-caps; text-decoration: none; }
+#contentprepend .commands a:hover { color: #f8da82; }
+
+/* ============================= CONTENT WIKI =============================== */
+/* ********* GENERAL ********* */
+#contentbody a { text-decoration: none; color: #d86332; }
+#contentbody a:hover { color: #997957; }
+/* Lien interne qui existe */
+#contentbody .wikilink1 { }
+/* Lien interne qui n'existe pas */
+#contentbody .wikilink2 { color: #f00; background: url(images/link_error.gif) 0px 1px no-repeat; padding-left: 15px;}
+#contentbody .wikilink2:hover { color: #ff5d5d; }
+#contentbody .urlextern { background: no-repeat url(images/link_icon.gif); padding-left: 15px; }
+#contentbody .interwiki { background: no-repeat url(images/interwiki.png); padding-left: 15px; }
+
+/* ********* EDIT ********* */
+#contentbody .secedit {
+	/*border: solid 1px #93b59d;
+	border-top: solid 1px #fff;*/
+}
+#contentbody .secedit input{
+	border: solid 1px #93b59d;
+	background: #eee;
+	color: #76a083;
+	font-weight: bold;
+	font-size: xx-small;
+}
+
+/* ********* HEADERS ********* */
+#contentbody h1 { 
+	background: url(images/h1.gif) no-repeat bottom left;
+}
+#contentbody h1 a {
+	font-size: 1.5em;
+	color: #d86332; 
+}
+#contentbody h2 { 
+	background: url(images/h2.gif) no-repeat bottom left;
+}
+#contentbody h2 a {
+	font-size: 1.2em;
+	color: #d86332;
+}
+#contentbody h3 { 
+	background: url(images/h3.gif) no-repeat bottom left;
+}
+#contentbody h3 a {
+	color: #d86332; 
+	font-size: 1em;
+}
+#contentbody h4 { 
+	background: url(images/h4.gif) no-repeat bottom left;
+}
+#contentbody h4 a {
+	color: #d86332; 
+	font-size: 1em;
+}
+#contentbody h5 { 
+	background: url(images/h5.gif) no-repeat bottom left;
+}
+#contentbody h5 a {
+	color: #d86332; 
+	font-size: 1em;
+}
+
+/* ********* LEVELS ********* */
+div.level1 { }
+div.level2 { }
+div.level3 { }
+div.level4 { }
+div.level5 { }
+
+/* ********* TABLES ********* */
+#contentbody table { border: solid 1px #999; }
+#contentbody table th { border: solid 1px #999; background-color: #eee; }
+#contentbody table td { border: solid 1px #ccc; background-color: #fff; }
+#contentbody table tr:hover { background-color: #ffffe5; }
+
+/* ********* FOOTNOTE ********* */
+.fn { border-top: dashed 1px #999; background-color: #ffe; margin-top: 20px; }
+.fn+.fn { border-top: none; margin-top: 0; }
+.fn_top { font-size: .7em; vertical-align: super; }
+.fn_bot { font-size: .7em; vertical-align: super; }
+
+/* ********* PREVIEW ********* */
+#contentbody .preview { border: dotted 1px #999; margin: 1em; padding: 1em; }
+
+/* ********* BLOCKQUOTE ********* */
+#contentbody blockquote { border-left: solid 2px #a58fbb; margin: 0; padding: 0 0 0 .5em; }
+
+/* ********* PARAGRAPH ********* */
+#contentbody p { margin: .5em 0 0 0; text-align: justify; }
+
+/* ********* PRE ********* */
+#contentbody pre {
+	padding: 2px;
+	border: 1px dotted #8cacbb;
+	color: #000;
+	overflow: auto;
+}
+
+/* ********* CODE ********* */
+#contentbody .code { 
+	background: #fffff5 url(images/code.png) no-repeat;
+	padding: 21px 2px 2px 4px; 
+	font-family: "Courier New",Courier,monospace;
+	white-space: pre;
+	border-left: solid 2px #a5a3af;
+}
+#contentbody pre.php { background-image: url(images/codephp.png); }
+#contentbody pre.actionscript { background-image: url(images/codeactionscript.png); }
+#contentbody pre.css { background-image: url(images/codecss.png); }
+#contentbody pre.html4strict { background-image: url(images/codehtml.png); }
+#contentbody pre.javascript { background-image: url(images/codejavascript.png); }
+#contentbody pre.bash { background-image: url(images/codebash.png); }
+
+#contentbody pre * { background-color: #fffff5; font-size: 1em; font-family: "Courier New",Courier,monospace; }
+#contentbody pre.code .br0	{ color: #66cc66; }
+#contentbody pre.code .co1	{ color: #808080; font-style: normal; background-color: #f0f0f0; }
+#contentbody pre.code .co2	{ color: #808080; font-style: normal; background-color: #f0f0f0; }
+#contentbody pre.code .coMULTI	{ color: #808080; font-style: normal; background-color: #f0f0f0; }
+#contentbody pre.code .es0	{ color: #000099; font-weight: normal; }
+#contentbody pre.code .kw1	{ color: #b1b100; }
+#contentbody pre.code .kw2	{ color: #000000; font-weight: normal; }
+#contentbody pre.code .kw3	{ color: #000066; }
+#contentbody pre.code .kw4	{ color: #993333; }
+#contentbody pre.code .kw5	{ color: #7777ff; }
+#contentbody pre.code .me0	{ color: #006600; }
+#contentbody pre.code .nu0	{ color: #cc66cc; }
+#contentbody pre.code .re0	{ color: #7777ff; }
+#contentbody pre.code .re1	{ color: #7777ff; }
+#contentbody pre.code .re2	{ color: #7777ff; }
+#contentbody pre.code .re4	{ color: #009999; }
+#contentbody pre.code .sc0	{ color: #00bbdd; }
+#contentbody pre.code .sc1	{ color: #ddbb00; }
+#contentbody pre.code .sc2	{ color: #009900; }
+#contentbody pre.code .st0	{ color: #0000ff; }
+#contentbody code { background-color: #fffff5; border: 1px dotted #8cacbb; font-size: 1em; font-family: "Courier New",Courier,monospace; }
+
+/* ********* DIFF ********* */
+#contentbody .diff-deletedline { background-color: #f99; }
+#contentbody .diff-addedline { background-color: #99f; }
+#contentbody .diffchange { background-color: #ff6;}
+
+/* ********* MEDIA ********* */
+#media .mediaselect .mediaselect-left li { margin-left: 15px; list-style-image: url(images/folder.gif); }
+#media .mediaselect .mediaselect-right { border-left: solid 1px #000; }
+#media .mediaselect .mediaselect-right ul li { border: solid 1px #999; }
+#media .mediaselect .mediaselect-right ul li .imagemeta { border-top: solid 1px #ccc; }
+#media .uploadform { margin-top: 20px; }
+#mediaedit .footer { border-top: solid 1px #999; }
+
+/* ********* PAGEINFO ********* */
+#contentbody .pageinfo { border-top: solid 1px #ccc; color: #999; }
diff --git a/lib/tpl/xfce/detail.php b/lib/tpl/thunar/detail.php
similarity index 51%
copy from lib/tpl/xfce/detail.php
copy to lib/tpl/thunar/detail.php
index 18f83b4..475cf07 100644
--- a/lib/tpl/xfce/detail.php
+++ b/lib/tpl/thunar/detail.php
@@ -1,54 +1,47 @@
-<?php
-/**
- * Xfce Wiki Template
- *
- * This template is based on top of the default DokuWiki template.
- *
- * @author Mike Massonnet <andi at splitbrain.org>
- */
-
-// must be run from within DokuWiki
-if (!defined('DOKU_INC')) die();
-
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
 <head>
+  <title>
+     <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
+    [<?php echo hsc($conf['title'])?>]
+  </title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-  <title><?php echo strip_tags($conf['title'])?> - <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></title>
 
   <?php tpl_metaheaders()?>
 
-  <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.png" />
-</head>
-
-<body>
+  <link rel="shortcut icon" href="<?php echo DOKU_BASE?>lib/images/favicon.ico" />
+  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>layout.css" />
+  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>design.css" />
 
-<div class="msgarea"><?php html_msgarea()?></div>
-
-<div class="dokuwiki">
+</head>
 
-  <div class="page">
-    <?php if($ERROR){ print $ERROR; }else{ ?>
+<body id="detail">
+	<div id="content">
+		<div id="contentprepend"><div class="free1"></div></div>
+		<div id="contentbody">
+			<?php html_msgarea()?>
+			<?php if($ERROR){ print $ERROR; }else{ ?>
 
-    <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
+			<h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
 
-    <div class="img_big">
-      <?php tpl_img(900,700) ?>
-    </div>
+			<div class="img_big">
+				<?php tpl_img(900,700) ?>
+			</div>
 
-    <div class="img_detail">
-      <p class="img_caption">
-        <?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?>
-      </p>
+		<div class="img_detail">
+		  <p class="img_caption">
+			  <?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption',
+                                               'EXIF.UserComment',
+                                               'EXIF.TIFFImageDescription',
+                                               'EXIF.TIFFUserComment')))); ?>
+	  	</p>
 
       <p>← <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
 
       <dl class="img_tags">
         <?php
-          $t = tpl_img_getTag('Date.EarliestTime');
-          if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.dformat($t).'</dd>';
+					$t = tpl_img_getTag('Date.EarliestTime');
+          if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.date($conf['dformat'],$t).'</dd>';
 
           $t = tpl_img_getTag('File.Name');
           if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
@@ -68,17 +61,18 @@ if (!defined('DOKU_INC')) die();
           $t = tpl_img_getTag('Simple.Camera');
           if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
 
-          $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category','xmp.dc:subject'));
+          $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category'));
           if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
 
         ?>
       </dl>
       <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
-    </div>
+		</div>
 
   <?php } ?>
-  </div>
-</div>
+		</div>
+		<div id="contentappend"><div class="free1"></div></div>
+	</div>
 </body>
 </html>
 
diff --git a/lib/tpl/thunar/explorer.php b/lib/tpl/thunar/explorer.php
new file mode 100644
index 0000000..b191f9b
--- /dev/null
+++ b/lib/tpl/thunar/explorer.php
@@ -0,0 +1,127 @@
+<?php
+
+
+/**
+ * Afficher un dossier
+ * @param $dataList Le contenu du dossier en array
+ */
+function tpl_list_folder($dataList){
+	global $conf;
+	global $ID;
+	global $INFO;
+	
+	require_once(DOKU_INC.'inc/auth.php');
+	
+	$currentLevel = 1;
+	
+	$pathinfo = pathinfo($_SERVER['REQUEST_URI']);
+	$url = $pathinfo['dirname'];
+	
+	echo "<ul class=\"explorer\">\n";
+	for($i=0; $i<count($dataList); $i++){		
+		
+		// Permission
+		if($dataList[$i]["type"] == "d"){
+			$perm = auth_quickaclcheck($dataList[$i]["id"].":*");
+		}else{
+			$perm = auth_quickaclcheck($dataList[$i]["id"]);
+		}
+		
+		if($perm > 0){
+		
+			// Nom du lien
+			$firstHeading = p_get_first_heading($dataList[$i]["id"]);
+			if($conf['useheading'] && $dataList[$i]["type"] == "f" && !empty($firstHeading)){
+				$linkName = $firstHeading;
+			}else{
+				$linkName = split(":", $dataList[$i]["id"]);
+				$linkName = $linkName[count($linkName) - 1];
+				$linkName = str_replace("_", " ", $linkName);
+			}
+			
+			// On vérifie qu'on est dans le bon level
+			if($currentLevel > $dataList[$i]["level"]){
+				echo str_repeat("</ul></li>\n", $currentLevel - $dataList[$i]["level"]);
+				$currentLevel = $dataList[$i]["level"];
+			}
+			
+			// Affichage
+			if($dataList[$i]["type"] == "d"){
+				// dossier
+				if($dataList[$i]["open"]){
+					echo "<li class=\"folderopen\">";
+				}else{
+					echo "<li class=\"folder\">";
+				}
+				
+				if($_REQUEST["do"] == "admin" && $_REQUEST["page"] == "acl"){
+					$path = wl($dataList[$i]["id"].":".$conf['start'], "do=admin&page=acl");
+				}else{
+					$path = wl($dataList[$i]["id"].":".$conf['start']);
+				}
+				tpl_link($path,$linkName);
+			}else{
+				// fichier
+				echo "<li class=\"file\">";
+				if($dataList[$i]["id"] == $ID){
+					// Page affichée
+					echo "<strong>";
+				}
+				if($_REQUEST["do"] == "admin" && $_REQUEST["page"] == "acl"){
+					$path = wl($dataList[$i]["id"], "do=admin&page=acl");
+				}else{
+					$path = wl($dataList[$i]["id"]);
+				}
+				tpl_link($path,$linkName);
+				
+				if($dataList[$i]["id"] == $ID){
+					// Page affichée
+					echo "</strong>";
+				}
+			}
+			
+			if($dataList[$i+1]["level"] == $currentLevel){
+				// dossier courant
+				echo "</li>\n";
+			}else if($dataList[$i+1]["level"] > $currentLevel){
+				// Nouveau sous dossier
+				echo "<ul>\n";
+			}else if($dataList[$i+1]["level"] < $currentLevel){
+				// Fin du dossier
+				if(!empty($dataList[$i+1]["level"])){
+					echo str_repeat("</ul></li>\n", $currentLevel - $dataList[$i+1]["level"]);
+				}
+			}
+			$currentLevel = $dataList[$i+1]["level"];
+		}
+	}
+	echo "</ul>\n";
+}
+
+/**
+ * Afficher l'explorateur
+ */
+function tpl_explorer() {
+	global $ID;
+	global $ACT;
+	global $conf;
+	
+	
+	$folder = getNS($ID);
+	
+	require_once(DOKU_INC.'inc/search.php');
+	require_once(DOKU_INC.'inc/html.php');
+	
+	$ns  = cleanID($ID);	
+	if(empty($ns)){
+		$ns = dirname(str_replace(':','/',$ID));
+		if($ns == '.') $ns ='';
+	}
+	$ns  = utf8_encodeFN(str_replace(':','/',$ns));
+	
+	$list = array();
+	search($list,$conf['datadir'],'search_index',array('ns' => $ns));
+	
+	tpl_list_folder($list);
+}
+?>
diff --git a/lib/tpl/thunar/images/button-dw.png b/lib/tpl/thunar/images/button-dw.png
new file mode 100644
index 0000000..7d4c109
Binary files /dev/null and b/lib/tpl/thunar/images/button-dw.png differ
diff --git a/lib/tpl/thunar/images/button-raw.png b/lib/tpl/thunar/images/button-raw.png
new file mode 100644
index 0000000..30b7799
Binary files /dev/null and b/lib/tpl/thunar/images/button-raw.png differ
diff --git a/lib/tpl/thunar/images/button-rss.png b/lib/tpl/thunar/images/button-rss.png
new file mode 100644
index 0000000..f243804
Binary files /dev/null and b/lib/tpl/thunar/images/button-rss.png differ
diff --git a/lib/tpl/thunar/images/button-thunar.png b/lib/tpl/thunar/images/button-thunar.png
new file mode 100644
index 0000000..5952c04
Binary files /dev/null and b/lib/tpl/thunar/images/button-thunar.png differ
diff --git a/lib/tpl/thunar/images/code.png b/lib/tpl/thunar/images/code.png
new file mode 100644
index 0000000..8c9aa5e
Binary files /dev/null and b/lib/tpl/thunar/images/code.png differ
diff --git a/lib/tpl/thunar/images/codeactionscript.png b/lib/tpl/thunar/images/codeactionscript.png
new file mode 100644
index 0000000..2257bb1
Binary files /dev/null and b/lib/tpl/thunar/images/codeactionscript.png differ
diff --git a/lib/tpl/thunar/images/codebash.png b/lib/tpl/thunar/images/codebash.png
new file mode 100644
index 0000000..6985c76
Binary files /dev/null and b/lib/tpl/thunar/images/codebash.png differ
diff --git a/lib/tpl/thunar/images/codecss.png b/lib/tpl/thunar/images/codecss.png
new file mode 100644
index 0000000..c0a68f5
Binary files /dev/null and b/lib/tpl/thunar/images/codecss.png differ
diff --git a/lib/tpl/thunar/images/codehtml.png b/lib/tpl/thunar/images/codehtml.png
new file mode 100644
index 0000000..141d189
Binary files /dev/null and b/lib/tpl/thunar/images/codehtml.png differ
diff --git a/lib/tpl/thunar/images/codejavascript.png b/lib/tpl/thunar/images/codejavascript.png
new file mode 100644
index 0000000..3bef098
Binary files /dev/null and b/lib/tpl/thunar/images/codejavascript.png differ
diff --git a/lib/tpl/thunar/images/codephp.png b/lib/tpl/thunar/images/codephp.png
new file mode 100644
index 0000000..6de9e80
Binary files /dev/null and b/lib/tpl/thunar/images/codephp.png differ
diff --git a/lib/tpl/thunar/images/codephp4.png b/lib/tpl/thunar/images/codephp4.png
new file mode 100644
index 0000000..40e8b05
Binary files /dev/null and b/lib/tpl/thunar/images/codephp4.png differ
diff --git a/lib/tpl/thunar/images/codephp5.png b/lib/tpl/thunar/images/codephp5.png
new file mode 100644
index 0000000..59c2a8e
Binary files /dev/null and b/lib/tpl/thunar/images/codephp5.png differ
diff --git a/lib/tpl/thunar/images/codewiki.png b/lib/tpl/thunar/images/codewiki.png
new file mode 100644
index 0000000..b086208
Binary files /dev/null and b/lib/tpl/thunar/images/codewiki.png differ
diff --git a/lib/tpl/thunar/images/contentappend1.gif b/lib/tpl/thunar/images/contentappend1.gif
new file mode 100644
index 0000000..87136a4
Binary files /dev/null and b/lib/tpl/thunar/images/contentappend1.gif differ
diff --git a/lib/tpl/thunar/images/contentappend2.gif b/lib/tpl/thunar/images/contentappend2.gif
new file mode 100644
index 0000000..242b9a7
Binary files /dev/null and b/lib/tpl/thunar/images/contentappend2.gif differ
diff --git a/lib/tpl/thunar/images/contentbody1.gif b/lib/tpl/thunar/images/contentbody1.gif
new file mode 100644
index 0000000..3ef461f
Binary files /dev/null and b/lib/tpl/thunar/images/contentbody1.gif differ
diff --git a/lib/tpl/thunar/images/contentbody2.gif b/lib/tpl/thunar/images/contentbody2.gif
new file mode 100644
index 0000000..8454751
Binary files /dev/null and b/lib/tpl/thunar/images/contentbody2.gif differ
diff --git a/lib/tpl/thunar/images/contentprepend.gif b/lib/tpl/thunar/images/contentprepend.gif
new file mode 100644
index 0000000..0db1c0f
Binary files /dev/null and b/lib/tpl/thunar/images/contentprepend.gif differ
diff --git a/lib/tpl/thunar/images/file.gif b/lib/tpl/thunar/images/file.gif
new file mode 100644
index 0000000..778dbdf
Binary files /dev/null and b/lib/tpl/thunar/images/file.gif differ
diff --git a/lib/tpl/thunar/images/folder.gif b/lib/tpl/thunar/images/folder.gif
new file mode 100644
index 0000000..ae87487
Binary files /dev/null and b/lib/tpl/thunar/images/folder.gif differ
diff --git a/lib/tpl/thunar/images/folder_open.gif b/lib/tpl/thunar/images/folder_open.gif
new file mode 100644
index 0000000..36e6de8
Binary files /dev/null and b/lib/tpl/thunar/images/folder_open.gif differ
diff --git a/lib/tpl/thunar/images/h1.gif b/lib/tpl/thunar/images/h1.gif
new file mode 100644
index 0000000..65bce09
Binary files /dev/null and b/lib/tpl/thunar/images/h1.gif differ
diff --git a/lib/tpl/thunar/images/h2.gif b/lib/tpl/thunar/images/h2.gif
new file mode 100644
index 0000000..bb1acf1
Binary files /dev/null and b/lib/tpl/thunar/images/h2.gif differ
diff --git a/lib/tpl/thunar/images/h3.gif b/lib/tpl/thunar/images/h3.gif
new file mode 100644
index 0000000..82b8eb6
Binary files /dev/null and b/lib/tpl/thunar/images/h3.gif differ
diff --git a/lib/tpl/thunar/images/h4.gif b/lib/tpl/thunar/images/h4.gif
new file mode 100644
index 0000000..e2e08b8
Binary files /dev/null and b/lib/tpl/thunar/images/h4.gif differ
diff --git a/lib/tpl/thunar/images/h5.gif b/lib/tpl/thunar/images/h5.gif
new file mode 100644
index 0000000..383c01e
Binary files /dev/null and b/lib/tpl/thunar/images/h5.gif differ
diff --git a/lib/tpl/thunar/images/headerappend.gif b/lib/tpl/thunar/images/headerappend.gif
new file mode 100644
index 0000000..fe40245
Binary files /dev/null and b/lib/tpl/thunar/images/headerappend.gif differ
diff --git a/lib/tpl/thunar/images/headerprepend.gif b/lib/tpl/thunar/images/headerprepend.gif
new file mode 100644
index 0000000..be9e69a
Binary files /dev/null and b/lib/tpl/thunar/images/headerprepend.gif differ
diff --git a/lib/tpl/thunar/images/interwiki.png b/lib/tpl/thunar/images/interwiki.png
new file mode 100644
index 0000000..a845cd5
Binary files /dev/null and b/lib/tpl/thunar/images/interwiki.png differ
diff --git a/lib/tpl/thunar/images/level_h2.gif b/lib/tpl/thunar/images/level_h2.gif
new file mode 100644
index 0000000..b43d308
Binary files /dev/null and b/lib/tpl/thunar/images/level_h2.gif differ
diff --git a/lib/tpl/thunar/images/link_error.gif b/lib/tpl/thunar/images/link_error.gif
new file mode 100644
index 0000000..be192d6
Binary files /dev/null and b/lib/tpl/thunar/images/link_error.gif differ
diff --git a/lib/tpl/xfce/images/link_icon.gif b/lib/tpl/thunar/images/link_icon.gif
similarity index 100%
copy from lib/tpl/xfce/images/link_icon.gif
copy to lib/tpl/thunar/images/link_icon.gif
diff --git a/lib/tpl/thunar/images/logo.jpg b/lib/tpl/thunar/images/logo.jpg
new file mode 100644
index 0000000..8f16545
Binary files /dev/null and b/lib/tpl/thunar/images/logo.jpg differ
diff --git a/lib/tpl/thunar/images/logo.xcf b/lib/tpl/thunar/images/logo.xcf
new file mode 100644
index 0000000..3ba1610
Binary files /dev/null and b/lib/tpl/thunar/images/logo.xcf differ
diff --git a/lib/tpl/thunar/images/menuprepend1.gif b/lib/tpl/thunar/images/menuprepend1.gif
new file mode 100644
index 0000000..af00380
Binary files /dev/null and b/lib/tpl/thunar/images/menuprepend1.gif differ
diff --git a/lib/tpl/thunar/images/menuprepend2.gif b/lib/tpl/thunar/images/menuprepend2.gif
new file mode 100644
index 0000000..3595ef3
Binary files /dev/null and b/lib/tpl/thunar/images/menuprepend2.gif differ
diff --git a/lib/tpl/thunar/images/search_icon.gif b/lib/tpl/thunar/images/search_icon.gif
new file mode 100644
index 0000000..786d8ce
Binary files /dev/null and b/lib/tpl/thunar/images/search_icon.gif differ
diff --git a/lib/tpl/thunar/lang/en/lang.php b/lib/tpl/thunar/lang/en/lang.php
new file mode 100644
index 0000000..02074f4
--- /dev/null
+++ b/lib/tpl/thunar/lang/en/lang.php
@@ -0,0 +1,8 @@
+<?php
+/*
+ * english version
+ */
+$lang["pagemap"] = "Page map";
+$lang["sitemap"] = "Site map";
+
+?>
diff --git a/lib/tpl/thunar/lang/fr/lang.php b/lib/tpl/thunar/lang/fr/lang.php
new file mode 100644
index 0000000..2853c24
--- /dev/null
+++ b/lib/tpl/thunar/lang/fr/lang.php
@@ -0,0 +1,8 @@
+<?php
+/*
+ * french version
+ */
+$lang["pagemap"] = "Plan de la page";
+$lang["sitemap"] = "Plan du site";
+
+?>
diff --git a/lib/tpl/thunar/layout.css b/lib/tpl/thunar/layout.css
new file mode 100644
index 0000000..5307976
--- /dev/null
+++ b/lib/tpl/thunar/layout.css
@@ -0,0 +1,244 @@
+/* ================================== BODY ================================== */
+html, body {
+	margin: 0;
+	padding: 0;
+}
+body { padding: 0 0.2em 0 0.2em; }
+body#media, body#mediaedit { padding:0; }
+
+.clearer {
+	clear: both;
+	padding-bottom: 20px;
+}
+/* ================================= HEADER ================================= */
+#header {
+	height: 80px;
+	min-width: 500px;
+}
+#headerprepend {
+	height: 80px;
+	width: 20px;
+	position: absolute;
+	top: 0;
+	left: 0.2em;
+}
+#headerappend {
+	height: 80px;
+	margin: 0 0 0 20px;
+	
+}
+#userinfo { 
+	position: absolute;
+	top: 32px;
+	right: 1.9em;
+}
+#logo {
+	position: absolute;
+	height: 60px;
+	width: 400px;
+	top: 5px;
+	left: 1.2em;
+}
+#logo img{
+	border: none;
+}
+#searchform {
+	position: absolute;
+	top: 5px;
+	right: 4em;
+}
+#searchform input {
+	padding: 1px 1px 1px 20px;
+	width: 10em;
+}
+#searchform .button {
+	padding: 0 3px 0 3px;
+	width: auto;
+	margin: 0 0 0 3px;
+}
+#qsearch_out { 
+	display: none; 
+	padding: 5px; 
+	position: absolute; 
+	right: 19em; 
+	top: 0px;
+	width: 400px;
+	z-index: 500;
+}
+#qsearch_out ul{ 
+	display: block;
+	margin: 0;
+	padding-left: 1em;
+}
+#qsearch_out li { 
+}
+/* =============================== NAVIGATION =============================== */
+#navigation {
+	position: absolute;
+	top: 50px;
+	right: 1.0em;
+}
+#navigation ul {
+	margin: 0;
+	padding: 0;
+}
+#navigation li {
+	display: inline;
+	margin: 0 1em 0 0;
+	padding: 0;
+}
+/* ================================== MENU ================================== */
+.menu {
+	margin: 0 0 10px 0;
+	clear: left;
+	float: left;
+	width: 17em;
+}
+.menutitle {
+	float: left;
+	margin: 9px 0 0 20px;
+}
+.menuprepend, .menuprepend .free1 {
+	height: 2em;
+}
+.menuappend, .menuappend .free1 {
+	height: 20px;
+}
+.menubody {
+	padding: 5px 0 0 20px;
+}
+.menu ul {
+	margin: 0 10px 0 10px;
+	padding: 0;
+}
+.menu li {
+	margin: 0;
+	padding: 0;
+}
+
+/* ================================ PAGEMAP ================================= */
+.pagemap .toc { margin: 0; }
+.pagemap .level1 { margin: 0; }
+.pagemap .level2 { margin: 0 0 0 1.5em; }
+.pagemap .level3 { margin: 0 0 0 1.5em; }
+
+/* ================================= LINKS ================================== */
+#links { clear: left; float: left; width: 17em; }
+#links ul { list-style: none; padding: 0; margin: 0 0 0 20px; }
+#links li { display: inline; }
+#links img { border: none; }
+
+/* ================================ CONTENT ================================= */
+#content{
+	margin: 0 0 0 17em;
+	width: auto;
+}
+#detail #content, #mediaref #content, #media #content, #mediaedit #content  { margin: 0; }
+#contentprepend, #contentprepend .free1 {
+	height: 2em;
+}
+#contentappend, #contentappend .free1 {
+	height: 20px;
+}
+#contentbody {
+	padding: 1px 15px;
+	position: relative;
+}
+#contentprepend .commands{
+	position: absolute;
+	margin: 9px 0 0 20px;
+	padding: 0;
+}
+#contentprepend .commands li{
+	margin: 0 1em 0 0;
+	padding: 0;
+	display: inline;
+}
+/* ============================= CONTENT WIKI =============================== */
+/* ********* TOC ********* */
+#contentbody .toc{
+	display: none;
+}
+
+/* ********* EDIT ********* */
+#contentbody .secedit{
+	text-align: right;
+	padding: 0 5px 5px 5px;
+}
+#contentbody .secedit form{
+	margin: 0;
+}
+
+/* ********* HEADERS ********* */
+#contentbody h1 { 
+	margin: 1em 0 0 0;
+	padding: 1px 0 10px 15px;
+}
+#contentbody h2 { 
+	margin: 1em 1px 1px 2em;
+	padding: 1px 1px 5px 20px;
+}
+#contentbody h3 { 
+	margin: 1em 1px 0px 4em;
+	padding: 1px 1px 5px 20px;
+}
+#contentbody h4 { 
+	margin: 1em 1px 0px 6em;
+	padding: 1px 1px 5px 20px;
+}
+#contentbody h5 { 
+	margin: 1em 1px 0px 8em;
+	padding: 1px 1px 5px 20px;
+}
+
+/* ********* LEVELS ********* */
+#contentbody div.level1 {
+	margin: 0 0 0 1em;
+}
+#contentbody div.level2 { 
+	margin: 1px 1px 0px 2em; 
+	padding: 1px 1px 1px 10px; 
+}
+#contentbody div.level3 { 
+	margin: 1px 1px 0px 4em; 
+	padding: 1px 1px 1px 10px; 
+}
+#contentbody div.level4 { 
+	margin: 1px 1px 0px 6em; 
+	padding: 1px 1px 1px 10px; 
+}
+#contentbody div.level5 { 
+	margin: 1px 1px 0px 8em; 
+	padding: 1px 1px 1px 20px; 
+}
+
+/* ********* LISTS ********* */
+#contentbody ul { margin:1em 0 0 2em; padding: 0; }
+#contentbody li.level1, #contentbody li.level2, #contentbody li.level3, #contentbody li.level4, #contentbody li.level5 { margin: 0; padding: 0; }
+
+/* ********* IMAGES ********* */
+#contentbody img { border: none; }
+#contentbody img.media { margin: 3px; }
+#contentbody img.medialeft { float: left;  margin: 1.5em 1.5em 1.5em 0; }
+#contentbody img.mediaright { float: right; margin: 1.5em 0 1.5em 1.5em; }
+#contentbody img.mediacenter { display: block;  margin-left: auto;  margin-right: auto; margin-top: 1.5em; margin-bottom: 1.5em; }
+
+/* ********* TABLES ********* */
+#contentbody table { margin: 5px 0 5px 0; border-collapse: collapse; }
+#contentbody table th { padding: 2px 5px 2px 5px; }
+#contentbody table td { padding: 2px 5px 2px 5px; }
+#contentbody table td.rightalign { text-align: right; }
+#contentbody table td.centeralign { text-align: center; }
+#contentbody table td.leftalign { text-align: left; }
+
+/* ********* MEDIA ********* */
+#media .mediaselect .mediaselect-left { float: left; }
+#media .mediaselect .mediaselect-left ul { margin: 0 0 0 10px; padding: 0; }
+#media .mediaselect .mediaselect-right { margin-left: 200px; padding-left: 5px; }
+#media .mediaselect .mediaselect-right ul { list-style: none; margin: 0;}
+#media .mediaselect .mediaselect-right ul li { padding: 5px; margin-bottom: 5px; }
+#media .mediaselect .mediaselect-right ul li .imagemeta { padding: 5px 0 0 0; margin: 5px 0 0 0; }
+#media .mediaselect .mediaselect-right ul li .imagemeta a { display: block; }
+#media label { display: block; }
+#mediaedit label { float: left; width: 8em; text-align: right; padding: 2px 5px 0 0; }
+#mediaedit .footer { margin-top: 1em; padding-top: 5px; }
diff --git a/lib/tpl/thunar/main.php b/lib/tpl/thunar/main.php
new file mode 100644
index 0000000..37a12d3
--- /dev/null
+++ b/lib/tpl/thunar/main.php
@@ -0,0 +1,92 @@
+<?php
+	
+	include_once(dirname(__FILE__).'/lang/en/lang.php');
+	@include_once(dirname(__FILE__).'/lang/'.$conf['lang'].'/lang.php');
+	
+	include(dirname(__FILE__).'/explorer.php');
+	include(dirname(__FILE__).'/toc.php');
+	$toc = getToc();
+	
+?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
+<head>
+	<title><?php tpl_pagetitle()?></title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<?php tpl_metaheaders(); ?>
+	<link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL; ?>layout.css" />
+	<link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL; ?>design.css" />
+	<link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL; ?>plugins.css" />
+	<?php if($lang['direction'] == 'rtl') { ?>
+	<link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL; ?>rtl.css" />
+	<?php } ?>
+	<link rel="stylesheet" media="print" type="text/css" href="<?php echo DOKU_TPL; ?>print.css" />
+</head>
+<body>
+	<!-- ========================== HEADER ========================== -->
+	<div id="header">
+		<div id="headerprepend"></div>
+		<div id="logo"><a href="<?php echo wl($conf["start"]); ?>"><img src="<?php echo DOKU_TPL; ?>images/logo.jpg"/></a></div>
+		<div id="userinfo"><?php tpl_userinfo(); ?></div>
+		<div id="searchform">
+			<?php tpl_searchform(); ?>
+		</div>
+		<div id="navigation">
+			<ul>
+				<li><?php tpl_actionlink("login"); ?></li>
+				<li><?php tpl_actionlink("recent"); ?></li>
+				<li><?php tpl_actionlink("admin"); ?></li>
+			</ul>
+		</div>
+		<div id="headerappend"></div>
+	</div>
+	<!-- ========================== TOC ========================== -->
+	<?php if($toc){ ?>
+	<div class="menu pagemap">
+		<div class="menuprepend"><strong class="menutitle"><?php echo $lang["pagemap"]; ?></strong><div class="free1"></div></div>
+		<div class="menubody">
+			<?php echo $toc; ?>
+		</div>
+		<div class="menuappend"><div class="free1"></div></div>
+	</div>
+	<?php } ?>
+	<!-- ========================== EXPLORER ========================== -->
+	<div class="menu explorer">
+		<div class="menuprepend"><strong class="menutitle"><?php echo $lang["sitemap"]; ?></strong><div class="free1"></div></div>
+		<div class="menubody">
+			<?php tpl_explorer()?>
+		</div>
+		<div class="menuappend"><div class="free1"></div></div>
+	</div>
+	<!-- ========================== LINKS ========================== -->
+	<div id="links">
+		<ul>
+			<li><a href="<?php echo DOKU_BASE; ?>feed.php" title="<?php echo $lang['btn_recent']; ?>"><img src="<?php echo DOKU_TPL; ?>images/button-rss.png" alt="<?php echo $lang['btn_recent']; ?>" /></a></li>
+			<li><a href="http://thunar.xfce.org/" title="Thunar"><img src="<?php echo DOKU_TPL; ?>images/button-thunar.png" alt="Thunar" /></a></li>
+			<li><a href="http://wiki.splitbrain.org/wiki:dokuwiki" title="DokuWiki"><img src="<?php echo DOKU_TPL; ?>images/button-dw.png" alt="DokuWiki" /></a></li>
+		</ul>
+	</div>
+	<!-- ========================== CONTENT ========================== -->
+	<div id="content">
+		<div id="contentprepend">
+			<ul class="commands">
+				<li>[<?php tpl_actionlink("edit"); ?>]</li>
+				<li>[<?php tpl_actionlink("history"); ?>]</li>
+			</ul>
+			<div class="free1"></div>
+		</div>
+		<div id="contentbody">
+			<?php html_msgarea(); ?>
+			<?php flush(); ?>
+			<?php tpl_content(); ?>
+			<div class="clearer"> </div>
+			<?php flush(); ?>
+			<div class="pageinfo">
+				<?php tpl_pageinfo(); ?>
+			</div>
+		</div>
+		<div id="contentappend"><div class="free1"></div></div>
+	</div>
+	<!-- ============================== FOOTER ============================= -->
+	<?php tpl_indexerWebBug(); ?>
+</body>
+</html>
diff --git a/lib/tpl/thunar/media.php b/lib/tpl/thunar/media.php
new file mode 100644
index 0000000..7dbd042
--- /dev/null
+++ b/lib/tpl/thunar/media.php
@@ -0,0 +1,64 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<?php
+/**
+ * DokuWiki Default Template
+ *
+ * This is the template for the media selection popup.
+ *
+ * You should leave the doctype at the very top - It should
+ * always be the very first line of a document.
+ *
+ * @link   http://wiki.splitbrain.org/wiki:tpl:templates
+ * @author Andreas Gohr <andi at splitbrain.org>
+ */
+?>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
+<head>
+  <title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
+  <?php tpl_metaheaders()?>
+
+  <link rel="shortcut icon" href="<?php echo DOKU_BASE?>lib/images/favicon.ico" />
+  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>layout.css" />
+  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>design.css" />
+
+  <!--[if gte IE 5]>
+  <style type="text/css">
+    /* that IE 5+ conditional comment makes this only visible in IE 5+ */
+    /* IE bugfix for transparent PNGs */
+    //DISABLED img { behavior: url("<?php echo DOKU_BASE?>lib/scripts/pngbehavior.htc"); }
+  </style>
+  <![endif]-->
+</head>
+
+<body id="media">
+	<div id="content">
+		<div id="contentprepend"><ul class="commands"><li><?php echo hsc($lang['mediaselect'])?></li></ul><div class="free1"></div></div>
+		<div id="contentbody">
+			<?php html_msgarea()?>
+			<?php 
+				$title = hsc($NS);
+				if(!empty($title)){
+					echo "<h1>".$title."</h1>";
+				}
+			?>
+			<div class="mediaselect">
+				<div class="mediaselect-left">
+					<strong><a href="<?php echo DOKU_BASE?>lib/exe/media.php?ns="><?php echo hsc($lang['namespaces'])?></a></strong>
+					<?php tpl_medianamespaces()?>
+				</div>
+				<div class="mediaselect-right">
+					<?php tpl_mediafilelist()?>
+					<div class="uploadform">
+						<?php tpl_mediauploadform()?>
+					</div>
+				</div>
+			</div>
+		</div>
+		<div id="contentappend"><div class="free1"></div></div>
+	</div>
+</body>
+</html>
+
diff --git a/lib/tpl/thunar/mediaedit.php b/lib/tpl/thunar/mediaedit.php
new file mode 100644
index 0000000..229e03a
--- /dev/null
+++ b/lib/tpl/thunar/mediaedit.php
@@ -0,0 +1,87 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<?php
+/**
+ * DokuWiki Default Template
+ *
+ * This is the template for editing image meta data.
+ * It is displayed in the media popup.
+ *
+ * You should leave the doctype at the very top - It should
+ * always be the very first line of a document.
+ *
+ * @link   http://wiki.splitbrain.org/wiki:tpl:templates
+ * @author Andreas Gohr <andi at splitbrain.org>
+ */
+?>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
+<head>
+  <title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
+  <?php tpl_metaheaders()?>
+
+  <link rel="shortcut icon" href="<?php echo DOKU_BASE?>images/favicon.ico" />
+  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>layout.css" />
+  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>design.css" />
+</head>
+
+<body id="mediaedit">
+	<div id="content">
+		<div id="contentprepend"><ul class="commands"><li><?php echo hsc($lang['metaedit']); ?></li></ul><div class="free1"></div></div>
+		<div id="contentbody">
+			<?php html_msgarea()?>
+			<h1><?php echo hsc(noNS($IMG))?></h1>
+			<div class="mediaedit">
+				<div class="data">
+					<form action="<?php echo DOKU_BASE?>lib/exe/media.php" accept-charset="utf-8" method="post">
+						<input type="hidden" name="edit" value="<?php echo hsc($IMG)?>" />
+						<input type="hidden" name="save" value="1" />
+		
+						<label for="title"><?php echo $lang['img_title']?></label>
+						<input type="text" name="meta[Iptc.Headline]" id="title" class="edit"
+		         value="<?php echo hsc(tpl_img_getTag('IPTC.Headline'))?>" /><br />
+		
+						<label for="caption"><?php echo $lang['img_caption']?></label>
+						<textarea name="meta[Iptc.Caption]" id="caption" class="edit" rows="5"><?php
+		          echo hsc(tpl_img_getTag(array('IPTC.Caption',
+		                                        'EXIF.UserComment',
+		                                        'EXIF.TIFFImageDescription',
+		                                        'EXIF.TIFFUserComment')));
+		        ?></textarea><br />
+		
+						<label for="artist"><?php echo $lang['img_artist']?></label>
+						<input type="text" name="meta[Iptc.Byline]" id="artist" class="edit"
+		         value="<?php echo hsc(tpl_img_getTag(array('Iptc.Byline',
+		                                                    'Exif.TIFFArtist',
+		                                                    'Exif.Artist',
+		                                                    'Iptc.Credit')))?>" /><br />
+		
+						<label for="copy"><?php echo $lang['img_copyr']?></label>
+						<input type="text" name="meta[Iptc.CopyrightNotice]" id="copy" class="edit"
+		         value="<?php echo hsc(tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')))?>" /><br />
+		
+		
+						<label for="keywords"><?php echo $lang['img_keywords']?></label>
+		        <textarea name="meta[Iptc.Keywords]" id="keywords" class="edit"><?php
+		          echo hsc(tpl_img_getTag(array('IPTC.Keywords',
+		                                        'EXIF.Category')));
+		        ?></textarea><br />
+		
+		
+						<input type="submit" value="<?php echo $lang['btn_save']?>" title="ALT+S"
+		         accesskey="s" class="button" />
+		
+					</form>
+				</div>
+				<div class="footer">
+					<?php tpl_button('backtomedia'); ?>
+				</div>
+			</div>
+
+		</div>
+		<div id="contentappend"><div class="free1"></div></div>
+	</div>
+</body>
+</html>
+
diff --git a/lib/tpl/thunar/mediaref.php b/lib/tpl/thunar/mediaref.php
new file mode 100644
index 0000000..858d174
--- /dev/null
+++ b/lib/tpl/thunar/mediaref.php
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
+<head>
+  <title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
+  <?php tpl_metaheaders()?>
+  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>layout.css" />
+  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>design.css" />
+
+</head>
+
+<body id="mediaref">
+	<div id="content">
+		<div id="contentprepend"><div class="free1"></div></div>
+		<div id="contentbody">
+			<?php html_msgarea()?>
+			<h1><?php echo hsc($lang['reference'])?> <code><?php echo hsc(noNS($DEL))?></code></h1>
+			<p><?php echo hsc($lang['ref_inuse'])?></p>
+			<?php tpl_showreferences($mediareferences)?>
+		</div>
+		<div id="contentappend"><div class="free1"></div></div>
+	</div>
+</body>
+</html>
+
diff --git a/lib/tpl/thunar/plugins.css b/lib/tpl/thunar/plugins.css
new file mode 100644
index 0000000..eabcda2
--- /dev/null
+++ b/lib/tpl/thunar/plugins.css
@@ -0,0 +1,10 @@
+/* ============================ PLUGINS MANAGER ============================= */
+#plugin_manager h3 {
+	background: none;
+}
+#plugin_manager .plugins, #plugin_manager .pm_info {
+	float: none;
+}
+#plugin_manager .plugins {
+	margin-bottom: 1em;
+}
diff --git a/lib/tpl/xfce/print.css b/lib/tpl/thunar/print.css
similarity index 65%
copy from lib/tpl/xfce/print.css
copy to lib/tpl/thunar/print.css
index 60c1725..5d15a22 100644
--- a/lib/tpl/xfce/print.css
+++ b/lib/tpl/thunar/print.css
@@ -7,42 +7,36 @@ body {
 
 table {
   font-size: 100%;
-  padding: 0;
-  margin: 0;
+  padding:0;
+  margin:0;
 }
 
-tr,td,th { padding: 0; margin: 0; }
+tr,td,th {padding:0; margin:0;}
 
-img { border: 0; }
+img {border:0}
 
 a {
-  color: #000000;
-  text-decoration: none;
-  background: none !important;
-}
-
-a.interwiki {
-  padding-left: 0px !important;
+  color:#000000;
+  text-decoration:none;
 }
 
 
 div.meta {
-  clear: both;
+  clear:both;
   margin-top: 1em;
-  font-size: 70%;
-  text-align: right;
+  font-size:70%;
+  text-align:right;
 }
 
-
-div.notify,
-div.info,
-div.success,
-div.error,
-div.breadcrumbs,
-div.secedit {
-  display: none;
+div.breadcrumbs{
+  display:none;
 }
 
+div.secedit{
+  display:none;
+}
+
+.menu, #links, #header, .commands, .pageinfo { display: none; }
 /* --------------------- Text formating -------------------------------- */
 
 /* external link */
@@ -58,13 +52,13 @@ a.interwiki:after {
 }
 
 /* email link */
-a.mail:after {
+/*a.mail:after {
    content: " [" attr(href) "]";
    font-size: 90%;
-}
+}*/
 
 /* existing wikilink */
-a.wikilink1    { text-decoration: underline; }
+a.wikilink1    {text-decoration:underline }
 
 /* the document */
 div.page {
@@ -87,15 +81,15 @@ h1, h2, h3, h4, h5 {
     padding-top:    0.5em;
     padding-bottom: 0;
     border-bottom: 1px solid #000000;
-    clear: left;
+    clear:left;
 }
 
 /* special headlines */
-h1 { font-size: 160%; font-weight: bold; }
-h2 { font-size: 150%; }
-h3 { font-size: 140%; border-bottom: none; }
-h4 { font-size: 120%; border-bottom: none; }
-h5 { font-size: 100%; border-bottom: none; }
+h1 {font-size: 160%; font-weight: bold;}
+h2 {font-size: 150%; }
+h3 {font-size: 140%; border-bottom: none; }
+h4 {font-size: 120%; border-bottom: none; }
+h5 {font-size: 100%; border-bottom: none; }
 
 /* embedded images */
 img.media {
@@ -106,8 +100,8 @@ img.medialeft {
   border: 0;
   float: left;
   margin: 0 1.5em 0 0;
-}
-
+} 
+  
 img.mediaright {
   border: 0;
   float: right;
@@ -115,42 +109,27 @@ img.mediaright {
 }
 
 /* unordered lists */
-ul {
+ul { 
     line-height: 1.5em;
     list-style-type: square;
-    margin: 0 0 1em 3.5em;
+    margin: 0 0 1.0em 1.5em;
     padding: 0;
+
 }
 
 /* ordered lists */
 ol {
-    line-height: 1.5em;
-    margin: 0 0 1em 3.5em;
+    line-height: 1.0em;
+    margin: 0 0 1.0em 1.0em;
     padding: 0;
     font-weight: normal;
 }
 
-div.dokuwiki li ul {
-  margin-bottom: 0;
-}
-div.dokuwiki li ol {
-  margin-bottom: 0;
-}
-
-div.dokuwiki ol { list-style-type: decimal; }
-div.dokuwiki ol ol { list-style-type: upper-roman; }
-div.dokuwiki ol ol ol { list-style-type: lower-alpha; }
-div.dokuwiki ol ol ol ol { list-style-type: lower-greek; }
-
 /* the list items overriding the ol definition */
 span.li {
     font-weight: normal;
 }
 
-pre {
-  font-family: monospace;
-}
-
 /* code blocks by indention */
 pre.pre {
   font-size: 8pt;
@@ -184,29 +163,29 @@ pre.file {
 }
 
 /* footnotes */
-div.footnotes {
-  clear: both;
+div.footnotes{
+  clear:both;
   border-top: 1px solid #000000;
   padding-left: 1em;
   margin-top: 1em;
 }
 
-div.fn {
-  font-size: 90%;
+div.fn{
+  font-size:90%;
 }
 
-a.fn_top {
-  vertical-align: super;
-  font-size: 80%;
+a.fn_top{
+  vertical-align:super;
+  font-size:80%;
 }
 
-a.fn_bot {
-  vertical-align: super;
-  font-size: 80%;
-  font-weight: bold;
+a.fn_bot{
+  vertical-align:super;
+  font-size:80%;
+  font-weight:bold;
 }
 
-acronym {
+acronym{
   border: 0;
 }
 
@@ -230,17 +209,18 @@ table.inline td {
   border: 1px solid #000000;
 }
 
-.leftalign {
+.leftalign{
   text-align: left;
 }
 
-.centeralign {
+.centeralign{
   text-align: center;
 }
 
-.rightalign {
+.rightalign{
   text-align: right;
 }
 
-.toc, .footerinc, .header, .bar, .user { display: none; }
+.toc, .footerinc, .header, .bar, .user {display:none}
 
+#sidebar {display:none}
diff --git a/lib/tpl/thunar/rtl.css b/lib/tpl/thunar/rtl.css
new file mode 100644
index 0000000..9a82947
--- /dev/null
+++ b/lib/tpl/thunar/rtl.css
@@ -0,0 +1,111 @@
+/**
+ * Layout and dedsign corrections for right-to-left languages
+ *
+ * @author Andreas Gohr <andi at splitbrain.org>
+ * @author Dotan Kamber <kamberd at yahoo.com>
+ */
+
+.bar-left {
+  float: right;
+  text-align: right;
+}
+
+.bar-right {
+  float: left;
+  text-align: left;
+}
+
+.pagename {
+  float: right;
+  text-align: right;
+}
+
+.logo {
+  float: left;
+  text-align: left;
+}
+
+label {
+  text-align: left;
+}
+
+label.simple {
+  text-align: right;
+}
+
+div.meta div.user {
+  float: right
+}
+
+div.meta div.doc{
+  text-align: left;
+}
+
+/* ------------------  Design corrections  --------------------------------- */
+
+ul,ol {
+  margin: 0.5em 1.5em 0.5em 0;
+}
+
+a.urlextern,a.interwiki,a.windows{
+  /* should work but dosn't - so we just disable icons here*/
+  /*
+  background-position: right 1px;
+  padding-right: 16px;
+  */
+  background-image: none !important;
+  padding: 0;
+}
+
+div.secedit input.button {
+  float: left;
+}
+
+/* headlines */
+h1, h2, h3, h4, h5 {
+  clear: right;
+}
+
+/* special headlines */
+h1 {margin-left: 0px; margin-right: 0px;}
+h2 {margin-left: 0px; margin-right: 20px;}
+h3 {margin-left: 0px; margin-right: 40px;}
+h4 {margin-left: 0px; margin-right: 60px;}
+h5 {margin-left: 0px; margin-right: 80px;}
+
+/* indent different sections */
+div.level1 {margin-left: 0px; margin-right: 3px;}
+div.level2 {margin-left: 0px; margin-right: 23px;}
+div.level3 {margin-left: 0px; margin-right: 43px;}
+div.level4 {margin-left: 0px; margin-right: 63px;}
+div.level5 {margin-left: 0px; margin-right: 83px;}
+
+/* TOC control */
+div.toc {
+  float: left;
+	margin-left: 0;
+	margin-right: 2em;
+}
+
+div.tocheader {
+  text-align: right;
+}
+
+#tocinside {
+  text-align: right;
+}
+
+ul.toc {
+  padding: 0;
+  padding-right: 1em;
+}
+
+ul.toc li {
+  background-position: right 0.6em;
+  padding-right:0.4em;
+}
+
+ul.toc li.clear {
+  padding-right:0.4em;
+}
+
diff --git a/lib/tpl/thunar/toc.php b/lib/tpl/thunar/toc.php
new file mode 100644
index 0000000..4e28a66
--- /dev/null
+++ b/lib/tpl/thunar/toc.php
@@ -0,0 +1,18 @@
+<?php
+function getToc(){
+	global $ID;
+	$except = array("admin", "revisions", "diff");
+	if(in_array($_REQUEST["do"], $except)) return false;
+	
+	require_once(DOKU_INC.'inc/parserutils.php');
+	
+	$content = p_wiki_xhtml($ID);
+	$start = "<div class=\"toc\">";
+	$end = "</div>\n\n";
+	
+	
+	$pattern = '@<div id="tocinside">.*?(</div>\n</div>)@s';
+	preg_match($pattern, $content, $matches);
+	return substr($matches[0], 20, -14);
+} 
+?>
\ No newline at end of file



More information about the Xfce4-commits mailing list