mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Added warning for confused theme.php layouts.
This commit is contained in:
parent
238756446c
commit
11bed6b002
@ -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.
|
||||
{
|
||||
|
@ -75,6 +75,7 @@ define("MENLAN_57", "Drag-and-Drop Menus");
|
||||
define("MENLAN_58", "The Menu-Manager allows you to place and arrange your menus within your theme template. Hover over the sub-areas to modify existing menu items.");
|
||||
|
||||
define("MENLAN_59", "Area [x]");
|
||||
define("MENLAN_60", "This theme is using deprecated elements. All [x]HEADER and [x]FOOTER variables should be removed from theme.php.");
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user