mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 17:44:37 +02:00
Meta admin page now uses Admin-ui. Additional custom tag areas added.
This commit is contained in:
@@ -82,7 +82,7 @@ if (varset($e107_popup) != 1)
|
||||
'{---FOOTER---}' => $tp->parseTemplate('{FOOTER}',true)
|
||||
);
|
||||
|
||||
e107::renderLayout($FOOTER, $psc);
|
||||
e107::renderLayout($FOOTER, array('magicSC'=>$psc));
|
||||
}
|
||||
|
||||
$eTimingStop = microtime();
|
||||
@@ -407,6 +407,14 @@ $show = deftrue('e_POWEREDBY_DISABLE') ? "none" : "block"; // Let search engines
|
||||
//XXX Must not contain IDs or Classes
|
||||
// echo "<div style='text-align:center; display:".$show."; position: absolute; width:99%; height:20px; margin-top:-30px; z-index:30000; opacity:1.0; color: silver'>Proudly powered by <a style='color:silver' href='http://e107.org/' title='e107 Content Management System'>e107</a></div>";
|
||||
unset($show);
|
||||
|
||||
if(isset($pref['meta_bodyend'][e_LANGUAGE]))
|
||||
{
|
||||
echo "\n<!-- Start custom body-end tag -->\n";
|
||||
echo $pref['meta_bodyend'][e_LANGUAGE]."\n";
|
||||
echo "<!-- End custom body-end tag -->\n\n";
|
||||
}
|
||||
|
||||
echo "\n</body>\n</html>";
|
||||
|
||||
//hook into the end of page (usefull for example for capturing output buffering)
|
||||
|
@@ -462,12 +462,17 @@ function render_meta($type)
|
||||
|
||||
if($type == "tag")
|
||||
{
|
||||
return str_replace("<", "<", $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("<", "<", $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;
|
||||
|
Reference in New Issue
Block a user