mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 04:12:00 +02:00
Also added check for theme_shortcodes.php for including batches of theme shortcodes. theme_config.php is now the correct file name for a theme config.
This commit is contained in:
@@ -81,12 +81,14 @@ if (!function_exists("parseheader"))
|
||||
{
|
||||
$tp = e107::getParser();
|
||||
$tmp = explode("\n", $LAYOUT);
|
||||
|
||||
$sc = e107::getScBatch('_theme_');
|
||||
|
||||
foreach ($tmp as $line)
|
||||
{
|
||||
if (preg_match("/{.+?}/", $line))
|
||||
{
|
||||
echo $tp->parseTemplate($line)."\n"; // retain line-breaks.
|
||||
echo $tp->parseTemplate($line, true, $sc)."\n"; // retain line-breaks.
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user