Quote:
Originally Posted by pgowder
I'm trying to have a different header/footer for certain templates. Can this hack do this??
|
no.. but what you wanted can be achieved this way:
make a copy of these lines in global.php:
PHP Code:
eval('$header = "' . fetch_template('header') . '";');
eval('$footer = "' . fetch_template('footer') . '";');
Like
PHP Code:
eval('$header = "' . fetch_template('header') . '";');
eval('$footer = "' . fetch_template('footer') . '";');
eval('$header2 = "' . fetch_template('header2') . '";');
eval('$footer2 = "' . fetch_template('footer2') . '";');
find :
PHP Code:
// the really important ones
'header',
'footer',
and replace it as
PHP Code:
// the really important ones
'header',
'footer',
'header2',
'footer2',
Then user $header2 and $footer2 in anytemplate you like.