Index: /extensions/blancmontxl/admin/admin.inc.php
===================================================================
--- /extensions/blancmontxl/admin/admin.inc.php	(revision 6262)
+++ /extensions/blancmontxl/admin/admin.inc.php	(revision 6262)
@@ -0,0 +1,39 @@
+<?php
+
+load_language('theme.lang', PHPWG_THEMES_PATH.'blancmontxl/');
+
+$options = array(
+  'home',
+  'categories',
+  'picture',
+  'other',
+);
+
+if (isset($_POST['submit']))
+{
+  foreach ($options as $option)
+  {
+    $_POST['bmxl'][$option] = empty($_POST['bmxl'][$option]) ? false : true;
+  }
+
+  $query = '
+UPDATE '.CONFIG_TABLE.'
+SET value = "'.addslashes(serialize($_POST['bmxl'])).'"
+WHERE param = "BlancmontXL"
+;';
+  pwg_query($query);
+
+  array_push($page['infos'], l10n('Information data registered in database'));
+
+  load_conf_from_db();
+}
+
+$template->set_filenames(array(
+    'theme_admin_content' => dirname(__FILE__) . '/admin.tpl'));
+
+$template->assign('bmxl', unserialize($conf['BlancmontXL']));
+
+$template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');
+
+
+?>
Index: /extensions/blancmontxl/admin/admin.tpl
===================================================================
--- /extensions/blancmontxl/admin/admin.tpl	(revision 6262)
+++ /extensions/blancmontxl/admin/admin.tpl	(revision 6262)
@@ -0,0 +1,30 @@
+<div class="titrePage">
+  <h2>BlancmontXL</h2>
+</div>
+
+<form method="post" class="properties" action="" ENCTYPE="multipart/form-data" name="form" class="properties">
+<div id="configContent">
+  <fieldset id="mainConfCheck">
+    <legend></legend>
+      <ul>
+        <li>
+          <span class="property">{'Display page banner on home page'|@translate}</span>
+          <input type="checkbox" name="bmxl[home]" value="true" {if $bmxl.home}checked="checked"{/if}>
+        </li>
+        <li>
+          <span class="property">{'Display page banner on categories pages'|@translate}</span>
+          <input type="checkbox" name="bmxl[categories]" value="true" {if $bmxl.categories}checked="checked"{/if}>
+        </li>
+        <li>
+          <span class="property">{'Display page banner on picture page'|@translate}</span>
+          <input type="checkbox" name="bmxl[picture]" value="true" {if $bmxl.picture}checked="checked"{/if}>
+        </li>
+        <li>
+          <span class="property">{'Display page banner on other pages'|@translate}</span>
+          <input type="checkbox" name="bmxl[other]" value="true" {if $bmxl.other}checked="checked"{/if}>
+        </li>
+      </ul>
+  </fieldset>
+</div>
+<p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" /></p>
+</form>
Index: /extensions/blancmontxl/admin/index.php
===================================================================
--- /extensions/blancmontxl/admin/index.php	(revision 6262)
+++ /extensions/blancmontxl/admin/index.php	(revision 6262)
@@ -0,0 +1,30 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/blancmontxl/admin/maintain.inc.php
===================================================================
--- /extensions/blancmontxl/admin/maintain.inc.php	(revision 6262)
+++ /extensions/blancmontxl/admin/maintain.inc.php	(revision 6262)
@@ -0,0 +1,32 @@
+<?php
+
+function theme_activate($id, $version, &$errors)
+{
+  global $prefixeTable, $conf;
+
+  if (!isset($conf['BlancmontXL']))
+  {
+    $config = array(
+      'home'       => true,
+      'categories' => true,
+      'picture'    => false,
+      'other'      => true,
+      );
+      
+    $query = '
+INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
+VALUES ("BlancmontXL" , "'.addslashes(serialize($config)).'" , "BlancmontXL parameters");';
+
+    pwg_query($query);
+  }
+}
+
+function theme_deactivate()
+{
+  global $prefixeTable;
+
+  $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="BlancmontXL" LIMIT 1;';
+  pwg_query($query);
+}
+
+?>
Index: /extensions/blancmontxl/img/index.php
===================================================================
--- /extensions/blancmontxl/img/index.php	(revision 6261)
+++ /extensions/blancmontxl/img/index.php	(revision 6262)
@@ -3,5 +3,5 @@
 // | Piwigo - a PHP based picture gallery                                  |
 // +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
Index: /extensions/blancmontxl/index.php
===================================================================
--- /extensions/blancmontxl/index.php	(revision 6261)
+++ /extensions/blancmontxl/index.php	(revision 6262)
@@ -3,5 +3,5 @@
 // | Piwigo - a PHP based picture gallery                                  |
 // +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
Index: /extensions/blancmontxl/language/en_UK/about.html
===================================================================
--- /extensions/blancmontxl/language/en_UK/about.html	(revision 6262)
+++ /extensions/blancmontxl/language/en_UK/about.html	(revision 6262)
@@ -0,0 +1,1 @@
+<a href="http://piwigo.org/ext/extension_view.php?eid=232">Theme BlancMont XL</a> by repie38 (from boulde's and P@t's idea)
Index: /extensions/blancmontxl/language/en_UK/index.php
===================================================================
--- /extensions/blancmontxl/language/en_UK/index.php	(revision 6262)
+++ /extensions/blancmontxl/language/en_UK/index.php	(revision 6262)
@@ -0,0 +1,30 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/blancmontxl/language/en_UK/theme.lang.php
===================================================================
--- /extensions/blancmontxl/language/en_UK/theme.lang.php	(revision 6262)
+++ /extensions/blancmontxl/language/en_UK/theme.lang.php	(revision 6262)
@@ -0,0 +1,8 @@
+<?php
+
+$lang['Display page banner on home page'] = 'Display page banner on home page';
+$lang['Display page banner on categories pages'] = 'Display page banner on categories pages';
+$lang['Display page banner on picture page'] = 'Display page banner on picture page';
+$lang['Display page banner on other pages'] = 'Display page banner on other pages';
+
+?>
Index: /extensions/blancmontxl/language/es_ES/about.html
===================================================================
--- /extensions/blancmontxl/language/es_ES/about.html	(revision 6262)
+++ /extensions/blancmontxl/language/es_ES/about.html	(revision 6262)
@@ -0,0 +1,1 @@
+<a href="http://fr.piwigo.org/ext/extension_view.php?eid=232">Tema BlancMont XL</a> by repie38 (sobre una idea de boulde y P@t)
Index: /extensions/blancmontxl/language/es_ES/index.php
===================================================================
--- /extensions/blancmontxl/language/es_ES/index.php	(revision 6262)
+++ /extensions/blancmontxl/language/es_ES/index.php	(revision 6262)
@@ -0,0 +1,30 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/blancmontxl/language/es_ES/theme.lang.php
===================================================================
--- /extensions/blancmontxl/language/es_ES/theme.lang.php	(revision 6262)
+++ /extensions/blancmontxl/language/es_ES/theme.lang.php	(revision 6262)
@@ -0,0 +1,8 @@
+<?php
+
+$lang['Display page banner on home page'] = 'Fijar la bandera sobre la página inicial';
+$lang['Display page banner on categories pages'] = 'Fijar la bandera sobre la página de las categorías';
+$lang['Display page banner on picture page'] = 'Fijar la bandera sobre la página de las fotos';
+$lang['Display page banner on other pages'] = 'Fijar la bandera sobre otras páginas';
+
+?>
Index: /extensions/blancmontxl/language/fr_FR/about.html
===================================================================
--- /extensions/blancmontxl/language/fr_FR/about.html	(revision 6262)
+++ /extensions/blancmontxl/language/fr_FR/about.html	(revision 6262)
@@ -0,0 +1,1 @@
+<a href="http://fr.piwigo.org/ext/extension_view.php?eid=232">Thème BlancMont XL</a> par repie38 (sur une idée de boulde et P@t)
Index: /extensions/blancmontxl/language/fr_FR/index.php
===================================================================
--- /extensions/blancmontxl/language/fr_FR/index.php	(revision 6262)
+++ /extensions/blancmontxl/language/fr_FR/index.php	(revision 6262)
@@ -0,0 +1,30 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/blancmontxl/language/fr_FR/theme.lang.php
===================================================================
--- /extensions/blancmontxl/language/fr_FR/theme.lang.php	(revision 6262)
+++ /extensions/blancmontxl/language/fr_FR/theme.lang.php	(revision 6262)
@@ -0,0 +1,8 @@
+<?php
+
+$lang['Display page banner on home page'] = 'Afficher la bannière sur la page d\'accueil';
+$lang['Display page banner on categories pages'] = 'Afficher la bannière sur la page des catégories';
+$lang['Display page banner on picture page'] = 'Afficher la bannière sur la page des photos';
+$lang['Display page banner on other pages'] = 'Afficher la bannière sur les autres pages';
+
+?>
Index: /extensions/blancmontxl/language/index.php
===================================================================
--- /extensions/blancmontxl/language/index.php	(revision 6262)
+++ /extensions/blancmontxl/language/index.php	(revision 6262)
@@ -0,0 +1,30 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/blancmontxl/local_head.tpl
===================================================================
--- /extensions/blancmontxl/local_head.tpl	(revision 6262)
+++ /extensions/blancmontxl/local_head.tpl	(revision 6262)
@@ -0,0 +1,13 @@
+<!--[if lt IE 7]>
+  <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/blancmontxl/fix-ie5-ie6.css">
+<![endif]-->
+
+{if (!$display_bmxl_banner)}
+<style type="text/css">
+#{$BODY_ID} #theHeader {ldelim}
+	background: transparent url(themes/blancmontxl/img/headerpic.jpg) no-repeat center bottom;
+	height: 15px;
+}
+#{$BODY_ID} #theHeader h1 {ldelim} display: none; }
+</style>
+{/if}
Index: tensions/blancmontxl/mail-css.tpl
===================================================================
--- /extensions/blancmontxl/mail-css.tpl	(revision 6261)
+++ 	(revision )
@@ -1,28 +1,0 @@
-/* Theme mail css */
-/* for MontBlanc/MontBlancXL */
-
-{literal}
-* { margin: 0; padding: 0; border: 0; }
-body {
-  font-size:0.7em; font-family: Verdana,Arial,Helvetica,sans-serif; color: black;
-  background: white;
-}
-#the_page {
-  background: white
-  url({pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/img/background.jpg)
-  repeat-y left top;
-  position: absolute; left: 0px; top: 16px; width: 800px; }
-.content { background: transparent
-  url({pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/img/header.jpg)
-  no-repeat left top;
-  padding-top: 200px; width: 800px; }
-#copyright {
-  background: transparent
-  url({pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/img/footer.jpg)
-  no-repeat left bottom; width: 800px; }
-h2 {color:#06c;margin-top:1em;margin-left:-0.5em;}
-h2:before {content: "���";}
-img { margin:16px;padding:15px;border:1px solid #69c;background-color:#eef;-moz-border-radius:4px; border-radius:4px 4px; }
-img:hover {border: 1px solid #c60; -moz-border-radius:4px; border-radius:4px 4px; }
-a { color: #06c; background: transparent; }
-{/literal}
Index: /extensions/blancmontxl/template/index.php
===================================================================
--- /extensions/blancmontxl/template/index.php	(revision 6262)
+++ /extensions/blancmontxl/template/index.php	(revision 6262)
@@ -0,0 +1,30 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/blancmontxl/template/menubar.tpl
===================================================================
--- /extensions/blancmontxl/template/menubar.tpl	(revision 6262)
+++ /extensions/blancmontxl/template/menubar.tpl	(revision 6262)
@@ -0,0 +1,19 @@
+{if !empty($blocks) }
+<div id="menubar">
+  {if isset($U_START_FILTER)}
+  <a href="{$U_START_FILTER}" title="{'display only recently posted images'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="start filter"></a>
+  {/if}
+  {if isset($U_STOP_FILTER)}
+  <a href="{$U_STOP_FILTER}" title="{'return to the display of all images'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a>
+  {/if}
+	{foreach from=$blocks key=id item=block}
+	<dl id="{$id}">
+		{if not empty($block->template)}
+		{include file=$block->template|@get_extent:$id }
+		{else}
+		{$block->raw_content}
+		{/if}
+	</dl>
+	{/foreach}
+</div>
+{/if}
Index: /extensions/blancmontxl/template/menubar_categories.tpl
===================================================================
--- /extensions/blancmontxl/template/menubar_categories.tpl	(revision 6262)
+++ /extensions/blancmontxl/template/menubar_categories.tpl	(revision 6262)
@@ -0,0 +1,33 @@
+<dt>
+	<a href="{$block->data.U_CATEGORIES}">{'Categories'|@translate}</a>
+</dt>
+<dd>
+{assign var='ref_level' value=0}
+{foreach from=$block->data.MENU_CATEGORIES item=cat}
+  {if $cat.LEVEL > $ref_level}
+  <ul>
+  {else}
+    </li>
+    {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
+  {/if}
+    <li {if $cat.SELECTED}class="selected"{/if}>
+      <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}">{$cat.NAME}</a>
+      {if $cat.count_images > 0}
+      <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>
+      {/if}
+      {if !empty($cat.icon_ts)}
+      <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)">
+      {/if}
+  {assign var='ref_level' value=$cat.LEVEL}
+{/foreach}
+{'</li></ul>'|@str_repeat:$ref_level}
+
+	{if isset($block->data.U_UPLOAD)}
+	<ul>
+		<li>
+			<a href="{$block->data.U_UPLOAD}">{'Upload a picture'|@translate}</a>
+		</li>
+	</ul>
+	{/if}
+	<p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p>
+</dd>
Index: /extensions/blancmontxl/theme.css
===================================================================
--- /extensions/blancmontxl/theme.css	(revision 6261)
+++ /extensions/blancmontxl/theme.css	(revision 6262)
@@ -1,3 +1,3 @@
-@import url(menu.css);
+/* @import url(menu.css); */
 
 * { margin: 0; padding: 0; border: 0; }
@@ -18,7 +18,7 @@
 ul li { list-style: none; }
 
-a, a:link { color:#ff9933; text-decoration: none; border:0; }
+a, a:link, a:hover { color:#ff9933; text-decoration: none; border:0 !important; }
 a:hover { text-decoration: none; border-bottom:1px solid #ff9933;}
-/*a:visited { color:#cccccc;}*/
+/*a:visited { color:#333333;}*/
 
 pre { overflow: auto; width: 100%; height: auto; }
@@ -71,5 +71,5 @@
 	margin: 0;
 	/*	padding: 170px 34px 0 34px; */
-	color: #FFF; 
+	color: #fff; 
 	text-align: left; 
 	position: absolute;
@@ -84,12 +84,4 @@
 	margin: 0 auto !important;
 }
-
-/* Spécifique à la page des images */
-
-#thePicturePage #theHeader {
-	background: transparent url(img/headerpic.jpg) no-repeat center bottom;
-	height: 15px;
-}
-#thePicturePage #theHeader h1 { display: none; }
 
 /*=========================================================================================*/
@@ -210,5 +202,5 @@
 
 /* Filter button */
-#menubar .button { position: absolute; left:95% } 
+#menubar .button { position: absolute; left:95%;} 
 #menubar P, #menubar P.totalImages{ clear: both; margin: 0; text-align: center; padding: 0.2em }
 
@@ -298,5 +290,5 @@
 FORM#quickconnect LABEL INPUT { font-size: 1em; /*width: 15em;*/ }
 FORM#quickconnect P, FORM#quickconnect A { border: none; padding: 0; }
-FORM#quickconnect .button { position:relative; top: -20x; left: 50px}
+FORM#quickconnect .button { position:relative; top: -20px; left: 50px}
 
 /*	menuTagCloud
@@ -347,4 +339,6 @@
 .tagLevel1 { font-size:80%; }
 
+#theTagsPage fieldset.tagLetter { width:181px; }
+
 /* others */
 .pleaseNote {
@@ -403,2 +397,5 @@
 #copyright a:link, #copyright a:visited { text-decoration: underline; color: #fff; }
 #copyright a:hover { text-decoration: none; color: #fff; border: 0; }
+
+/* About page */
+#piwigoAbout UL { margin: 15px 0; }
Index: /extensions/blancmontxl/themeconf.inc.php
===================================================================
--- /extensions/blancmontxl/themeconf.inc.php	(revision 6261)
+++ /extensions/blancmontxl/themeconf.inc.php	(revision 6262)
@@ -1,14 +1,42 @@
 <?php
+/*
+Theme Name: BlancMont XL
+Version: 2.1.a
+Description: Night theme
+Theme URI: http://piwigo.org/ext/extension_view.php?eid=232
+Author: repie38
+Author URI: 
+*/
+
 $themeconf = array(
-  'template' => 'yoga',
-  'template_dir' => 'template/yoga',
-  'theme' => 'blancmontxl',
-  'icon_dir' => PHPWG_ROOT_PATH.'template/yoga/theme/blancmontxl/icon',
-   'mime_icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon/mimetypes/',
-  'local_head' => '<!--[if lt IE 7]>
-  <link rel="stylesheet" type="text/css" href="'.PHPWG_ROOT_PATH.'template/yoga/theme/blancmontxl/fix-ie5-ie6.css">
-<![endif]-->'
+  'parent'      => 'default',
+  'icon_dir'    => 'themes/blancmontxl/icon',
+  'local_head'  => 'local_head.tpl',
 );
-$lang['Theme: blancmontxl'] = 'Thème BlancMontXP By repié38.';
+
+
+add_event_handler('loc_begin_page_header', 'set_bmxl_header');
+
+function set_bmxl_header()
+{
+  global $page, $conf, $template;
+
+  $config = unserialize($conf['BlancmontXL']);
+
+  if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage')
+  {
+    $header = isset($page['category']) ? $config['categories'] : $config['home'];
+  }
+  elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage')
+  {
+    $header = $config['picture'];
+  }
+  else
+  {
+    $header = $config['other'];
+  }
+
+  $template->assign('display_bmxl_banner', $header);
+}
 
 ?>
