<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2008 Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.
  
  ********************************************
  Coppermine version: 1.4.17
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.4.x/themes/rainy_day/theme.php $
  $Revision: 4311 $
  $Author: gaugau $
  $Date: 2008-03-02 09:51:36 +0100 (So, 02 Mrz 2008) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has had all redundant CORE items removed                           //
// ------------------------------------------------------------------------- //

define('THEME_HAS_RATING_GRAPHICS', 1);
define('THEME_IS_XHTML10_TRANSITIONAL',1);

// HTML template for sys_menu
$template_sys_menu = <<<EOT
  <div class="topmenu">
          <table border="0" cellpadding="0" cellspacing="0">
                  <tr>
  {BUTTONS}
                  </tr>
          </table>
  </div>
EOT;

// HTML template for template sys_menu buttons
$template_sys_menu_button = <<<EOT
<!-- BEGIN {BLOCK_ID} -->
  <td><img src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
  <td><img src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" alt="" /></td>
  <td style="background-image:url(themes/rainy_day/images/button1_r1_c2.gif)">
          <a href="{HREF_TGT}" title="{HREF_TITLE}">{HREF_LNK}</a>
  </td>
  <td><img src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" alt="" /></td>
<!-- END {BLOCK_ID} -->
EOT;
function pageheader($section, $meta = '')
{
	global $CONFIG, $THEME_DIR;
	global $template_header, $lang_charset, $lang_text_dir;
	
	$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);
	
	// Intégration du slider dans le theme. On définit une variable $bandeau qui contiendra le code final du slider
	$bandeau=cpg_get_custom_include("slider.php");
	
	$charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];
	
	header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
		header("Content-Type: text/html; charset=$charset");
	user_save_profile();
	
	$template_vars = array('{LANG_DIR}' => $lang_text_dir,
		'{TITLE}' => $CONFIG['gallery_name'] . ' - ' . strip_tags(bb_decode($section)),
		'{CHARSET}' => $charset,
		'{META}' => $meta,
		'{GAL_NAME}' => $CONFIG['gallery_name'],
		// Ajout du bandeau
		'{BANDEAU}' => $bandeau,
		'{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
		'{SYS_MENU}' => theme_main_menu('sys_menu'),
		'{SUB_MENU}' => theme_main_menu('sub_menu'),
		'{ADMIN_MENU}' => theme_admin_mode_menu(),
		'{CUSTOM_HEADER}' => $custom_header,
		);
	
	echo template_eval($template_header, $template_vars);
}
?>
