mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Give each theme layout a unique CSS id.
This commit is contained in:
@@ -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');
|
$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!
|
### Parse aliases again or all filters shall fail due to the menu hack!
|
||||||
$this->_alias_parsed = false;
|
$this->_alias_parsed = false;
|
||||||
$this->parseAliases();
|
$this->parseAliases();
|
||||||
|
@@ -93,6 +93,7 @@ if (!function_exists("parseheader"))
|
|||||||
{
|
{
|
||||||
if (preg_match("/{.+?}/", $line))
|
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.
|
echo $tp->parseTemplate($line, true, $sc)."\n"; // retain line-breaks.
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -662,6 +663,9 @@ echo "</head>\n";
|
|||||||
|
|
||||||
$HEADER = str_replace("{e_PAGETITLE}",deftrue('e_PAGETITLE',''),$HEADER);
|
$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?
|
if(!deftrue('BODYTAG')) //TODO Discuss a better way?
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user