1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 02:57:15 +02:00

Fixes #3932 Added support for dynamic header/footer templates controlled by theme_shortcodes class.

This commit is contained in:
Cameron
2019-08-22 14:28:59 -07:00
parent 68e4fd7d03
commit 1d45f1e4c4
5 changed files with 25 additions and 4 deletions

View File

@@ -72,6 +72,8 @@ if (varset($e107_popup) != 1)
$psc = array(
'</body>' => '',
'{THEME}' => THEME_ABS,
'{---HEADER---}' => $tp->parseTemplate('{HEADER}',true),
'{---FOOTER---}' => $tp->parseTemplate('{FOOTER}',true)
);
parseheader($FOOTER, $psc);

View File

@@ -804,6 +804,8 @@ if ($e107_popup != 1) {
'{BODY_ONLOAD}' => $body_onload,
'{LAYOUT_ID}' => 'layout-'.e107::getForm()->name2id(THEME_LAYOUT),
'{---MODAL---}' => $LAYOUT['_modal_'],
'{---HEADER---}' => $tp->parseTemplate('{HEADER}',true),
'{---FOOTER---}' => $tp->parseTemplate('{FOOTER}',true),
);
parseheader($HEADER, $psc);