1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Added warning for confused theme.php layouts.

This commit is contained in:
Cameron 2017-02-04 14:06:41 -08:00
parent 238756446c
commit 11bed6b002
2 changed files with 10 additions and 0 deletions

View File

@ -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.
{

View File

@ -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.");