Hello Everybody !
I want to have a custom header and a custom footer. I've read the FAQ (of course
) but have still a problem :
I've modified the "theme.php" file :
function pageheader($section, $meta = '')
{
global $CONFIG, $THEME_DIR;
global $template_header, $lang_charset, $lang_text_dir;
if(empty($custom_header)){
include('header.php');
$custom_header = ob_get_contents();
ob_clean();
}
if(empty($custom_footer)){
include('footer.htm');
$custom_footer = ob_get_contents();
ob_clean();
}
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
user_save_profile();
$template_vars = array(
'{LANG_DIR}' => $lang_text_dir,
'{MAIN_MENU}' => theme_main_menu(),
'{ADMIN_MENU}' => theme_admin_mode_menu(),
'{CUSTOM_HEADER}' => $custom_header,
'{CUSTOM_FOOTER}' => $custom_footer
);
echo template_eval($template_header, $template_vars);
}
And my "template.html" file :
{CUSTOM_HEADER}
<link rel="stylesheet" href="themes/odileetmatthieu/style.css" />
<script type="text/javascript" src="scripts.js"></script>
<table width="100%" height="100%" border="0" cellpadding="2" cellspacing="2" bgcolor="#E3BE0A">
<tr>
<td align="center" valign="top">
{MAIN_MENU}
{ADMIN_MENU}
{GALLERY}
</td>
</tr>
</table>
{CUSTOM_FOOTER}
The problem is that my {CUSTOM_FOOTER} isn't interpreted (i see nothing under the gallery !?)
But if i change my "template.html" like this...
{CUSTOM_HEADER}
{CUSTOM_FOOTER}
<link rel="stylesheet" href="themes/odileetmatthieu/style.css" />
<script type="text/javascript" src="scripts.js"></script>
<table width="100%" height="100%" border="0" cellpadding="2" cellspacing="2" bgcolor="#E3BE0A">
<tr>
<td align="center" valign="top">
{MAIN_MENU}
{ADMIN_MENU}
{GALLERY}
</td>
</tr>
</table>
I see my header. It seems that everything under {GALLERY} is ignored ??
Can u help me please.
Thanks.