mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Added warning for confused theme.php layouts.
This commit is contained in:
@@ -798,6 +798,15 @@ class e_menu_layout
|
|||||||
$head = array();
|
$head = array();
|
||||||
$foot = 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.
|
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_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_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.");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user