1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Give each theme layout a unique CSS id.

This commit is contained in:
Cameron
2016-06-03 19:40:17 -07:00
parent 6ef0868077
commit 50fff3e777
2 changed files with 13 additions and 1 deletions

View File

@@ -576,6 +576,14 @@ class page_admin_ui extends e_admin_ui
$this->fieldpref = array("page_id","menu_name", "menu_title", 'menu_image', 'menu_template', 'menu_icon', 'page_chapter', 'menu_class');
if(e_DEBUG)
{
$this->fields['menu_name']['inline'] = true;
}
### Parse aliases again or all filters shall fail due to the menu hack!
$this->_alias_parsed = false;
$this->parseAliases();

View File

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