mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 08:34:09 +02:00
Give each theme layout a unique CSS id.
This commit is contained in:
@@ -93,6 +93,7 @@ if (!function_exists("parseheader"))
|
||||
{
|
||||
if (preg_match("/{.+?}/", $line))
|
||||
{
|
||||
$line = str_replace('{THEME}',THEME_ABS, $line); // Quick-fix allow for use of {THEME} shortcode.
|
||||
echo $tp->parseTemplate($line, true, $sc)."\n"; // retain line-breaks.
|
||||
}
|
||||
else
|
||||
@@ -661,7 +662,10 @@ echo "</head>\n";
|
||||
}
|
||||
|
||||
$HEADER = str_replace("{e_PAGETITLE}",deftrue('e_PAGETITLE',''),$HEADER);
|
||||
|
||||
|
||||
$body_onload .= " id='layout-".e107::getForm()->name2id(THEME_LAYOUT)."' ";
|
||||
|
||||
|
||||
|
||||
if(!deftrue('BODYTAG')) //TODO Discuss a better way?
|
||||
{
|
||||
|
Reference in New Issue
Block a user