shri
07-28-2010, 11:22 AM
I have this piece of code. The header works ok, the footer does not.
For some reason the $RightWidth variable does not seem to get set in the footer template.
if (stristr($_SERVER['REQUEST_URI'], 'calendar') === FALSE) {
$MainWidth = '73%';
$RightWidth = '23%';
} else {
$MainWidth = '100%';
$RightWidth = '0%';
}
vB_Template::preRegister('header',array('MainWidth ' => $MainWidth));
vB_Template::preRegister('footer',array('RightWidt h' => $RightWidth));
Any ideas?
For some reason the $RightWidth variable does not seem to get set in the footer template.
if (stristr($_SERVER['REQUEST_URI'], 'calendar') === FALSE) {
$MainWidth = '73%';
$RightWidth = '23%';
} else {
$MainWidth = '100%';
$RightWidth = '0%';
}
vB_Template::preRegister('header',array('MainWidth ' => $MainWidth));
vB_Template::preRegister('footer',array('RightWidt h' => $RightWidth));
Any ideas?