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

Menu Manager work

This commit is contained in:
Cameron 2016-04-16 08:16:42 -07:00
parent 9bd9bc29ad
commit 9f3bcbfca6
2 changed files with 10 additions and 9 deletions

View File

@ -425,7 +425,7 @@ TEMPL;
",'jquery');
e107::js('url',"http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js");
e107::js('footer',"http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js");
e107::js('url', "http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/jquery-ui.css");
e107::js('footer-inline','
@ -477,14 +477,14 @@ TEMPL;
});*/
// http://jsfiddle.net/DT764/2/
/*
$(".draggable", window.top.document).draggable({
// connectToSortable: ".sortable",
helper: "clone",
// appendTo: $(this), // ".sortable", // "#area-1", //FIXME Needs to be a specific area.
// revert: "invalid",
containment: "parent",
containment: "document",
// delay: 0,
// revertDuration: 100,
cursor: "move",
@ -497,7 +497,7 @@ TEMPL;
alert(what);
}
});*/
});
// $( "ul, li", window.top.document ).disableSelection();

View File

@ -1325,7 +1325,6 @@ class e_menuManager {
// }
if(strstr($str, "SETSTYLE"))
{
$tmp = explode("=", $str);
$style = preg_replace("/\{SETSTYLE=(.*?)\}/si", "\\1", $str);
$this->style = $style;
@ -1346,7 +1345,9 @@ class e_menuManager {
// }
elseif(strstr($str, "NAVIGATION"))
{
echo "<span class='label label-info'>Navigation Area</span>";
$cust = preg_replace("/\W*\{NAVIGATION(.*?)(\+.*)?\}\W*/si", "\\1", $str);
$tp->parseTemplate("{NAVIGATION".$cust."}",true);
// echo "<span class='label label-info'>Navigation Area</span>";
}
elseif(strstr($str, "ALERT"))
{
@ -1374,11 +1375,11 @@ class e_menuManager {
echo $tp->parseTemplate("{SETIMAGE".$cust."}",true);
// echo $this->renderPanel('Embedded Custom Menu',$cust);
}
elseif(strstr($str, "{WMESSAGE"))
/*elseif(strstr($str, "{WMESSAGE"))
{
echo "<div class=text style='padding: 30px; text-align: center'>[Welcome Message Area]</div>";
// echo $this->renderPanel('Embedded Custom Menu',$cust);
}
}*/
elseif(strstr($str, "{FEATUREBOX"))
{
echo "<div class=text style='padding: 80px; text-align: center'>[Featurebox Area]</div>";