mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
Added warning for confused theme.php layouts.
This commit is contained in:
@@ -798,6 +798,15 @@ class e_menu_layout
|
||||
$head = array();
|
||||
$foot = array();
|
||||
|
||||
if(isset($LAYOUT) && (isset($HEADER) || isset($FOOTER)))
|
||||
{
|
||||
$fallbackLan = "This theme is using deprecated elements. All [x]HEADER and [x]FOOTER variables should be removed from theme.php."; // DO NOT TRANSLATE!
|
||||
$warningLan = $tp->lanVars(deftrue('MENLAN_60',$fallbackLan),'$');
|
||||
echo "<div class='alert alert-danger'>".$warningLan."</div>";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(isset($LAYOUT) && is_array($LAYOUT)) // $LAYOUT is a combined $HEADER,$FOOTER.
|
||||
{
|
||||
|
Reference in New Issue
Block a user