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.
Code:
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('RightWidth' => $RightWidth));
Any ideas?