mirror of
https://github.com/e107inc/e107.git
synced 2025-08-23 06:33:22 +02:00
Added {THEME} shortcode (path) to core shortcodes.
This commit is contained in:
6
e107_core/shortcodes/single/theme.php
Normal file
6
e107_core/shortcodes/single/theme.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
function theme_shortcode($parm = null)
|
||||
{
|
||||
return THEME_ABS;
|
||||
}
|
@@ -76,7 +76,7 @@ if (varset($e107_popup) != 1)
|
||||
|
||||
$psc = array(
|
||||
'</body>' => '',
|
||||
'{THEME}' => THEME_ABS,
|
||||
// '{THEME}' => THEME_ABS, // moved to e107_core/shortcodes/single/
|
||||
'{---MODAL---}' => $LAYOUT['_modal_'],
|
||||
'{---HEADER---}' => $tp->parseTemplate('{HEADER}',true),
|
||||
'{---FOOTER---}' => $tp->parseTemplate('{FOOTER}',true)
|
||||
|
@@ -789,7 +789,7 @@ e107::getDebug()->logTime('Render Layout');
|
||||
|
||||
$psc = array(
|
||||
'magicSC'=>array(
|
||||
'{THEME}' => THEME_ABS,
|
||||
// '{THEME}' => THEME_ABS, // moved to e107_core/shortcodes/single/
|
||||
'{BODY_ONLOAD}' => $body_onload,
|
||||
'{LAYOUT_ID}' => 'layout-'.e107::getForm()->name2id(THEME_LAYOUT),
|
||||
'THEME_LAYOUT' => THEME_LAYOUT, // BC Fall-back: Catch and replace the missing constant- ony works with PHP < 8
|
||||
|
Reference in New Issue
Block a user