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

Meta admin page now uses Admin-ui. Additional custom tag areas added.

This commit is contained in:
Cameron
2021-01-26 11:55:10 -08:00
parent 9403901077
commit 46cb21b025
8 changed files with 257 additions and 123 deletions

View File

@@ -462,12 +462,17 @@ function render_meta($type)
if($type == "tag")
{
return str_replace("&lt;", "<", $tp -> toHTML($pref['meta_tag'][e_LANGUAGE], FALSE, "nobreak, no_hook, no_make_clickable"))."\n";
$ret = "\n<!-- Start custom head tag -->\n";
$ret .= varset($pref['meta_tag'][e_LANGUAGE])."\n";
// $ret .= str_replace("&lt;", "<", $pref['meta_tag'][e_LANGUAGE]."\n";
$ret .= "<!-- End custom head tag -->\n\n";
}
else
{
return '<meta name="'.$type.'" content="'.$pref['meta_'.$type][e_LANGUAGE].'" />'."\n";
$ret = '<meta name="'.$type.'" content="'.$pref['meta_'.$type][e_LANGUAGE].'" />'."\n";
}
return $ret;
}
// legay meta-tag checks.
@@ -649,6 +654,10 @@ elseif(!defined('BODYTAG')) // @deprecated.
$body_onload .= " id='layout-".e107::getForm()->name2id(THEME_LAYOUT)."' ";
echo "<body".$body_onload.">\n";
if(isset($pref['meta_bodystart'][e_LANGUAGE]))
{
echo $pref['meta_bodystart'][e_LANGUAGE]."\n";
}
}
else
{
@@ -664,6 +673,10 @@ else
echo BODYTAG."\n";
}
if(isset($pref['meta_bodystart'][e_LANGUAGE]))
{
echo $pref['meta_bodystart'][e_LANGUAGE]."\n";
}
}
// Bootstrap Modal Window
@@ -743,14 +756,17 @@ e107::getDebug()->logTime('Render Layout');
$psc = array(
'{THEME}' => THEME_ABS,
'{BODY_ONLOAD}' => $body_onload,
'{LAYOUT_ID}' => 'layout-'.e107::getForm()->name2id(THEME_LAYOUT),
'{---MODAL---}' => (isset($LAYOUT['_modal_']) ? $LAYOUT['_modal_'] : '') ,
'{---HEADER---}' => e107::getParser()->parseTemplate('{HEADER}',true),
'{---FOOTER---}' => e107::getParser()->parseTemplate('{FOOTER}',true),
);
'magicSC'=>array(
'{THEME}' => THEME_ABS,
'{BODY_ONLOAD}' => $body_onload,
'{LAYOUT_ID}' => 'layout-'.e107::getForm()->name2id(THEME_LAYOUT),
'{---MODAL---}' => (isset($LAYOUT['_modal_']) ? $LAYOUT['_modal_'] : '') ,
'{---HEADER---}' => e107::getParser()->parseTemplate('{HEADER}',true),
'{---FOOTER---}' => e107::getParser()->parseTemplate('{FOOTER}',true),
),
'bodyStart' => varset($pref['meta_bodystart'][e_LANGUAGE])
);
e107::renderLayout($HEADER, $psc);
// echo $HEADER;