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

Fixes #326, #331 and corrects markup issues with pull-request #390.

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:
Cameron
2013-06-19 22:50:51 -07:00
parent 29f74508c2
commit 2d21d0e7d2
7 changed files with 56 additions and 17 deletions

View File

@@ -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
{