mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 07:36:32 +02:00
Avoid checking _header_ and _footer_ layouts for divider shortcode. ie. {---}
This commit is contained in:
@@ -580,9 +580,21 @@ echo "</head>\n";
|
|||||||
{
|
{
|
||||||
foreach($LAYOUT as $key=>$template)
|
foreach($LAYOUT as $key=>$template)
|
||||||
{
|
{
|
||||||
list($hd,$ft) = explode("{---}",$template);
|
if($key == '_header_' || $key == '_footer_')
|
||||||
$HEADER[$key] = isset($LAYOUT['_header_']) ? $LAYOUT['_header_'] . $hd : $hd;
|
{
|
||||||
$FOOTER[$key] = isset($LAYOUT['_footer_']) ? $ft . $LAYOUT['_footer_'] : $ft ;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(strpos($template,'{---}') !==false)
|
||||||
|
{
|
||||||
|
list($hd,$ft) = explode("{---}",$template);
|
||||||
|
$HEADER[$key] = isset($LAYOUT['_header_']) ? $LAYOUT['_header_'] . $hd : $hd;
|
||||||
|
$FOOTER[$key] = isset($LAYOUT['_footer_']) ? $ft . $LAYOUT['_footer_'] : $ft ;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
e107::getMessage()->addDebug('Missing "{---}" in $LAYOUT["'.$key.'"] ');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
unset($hd,$ft);
|
unset($hd,$ft);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user