mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Menu Manager work
This commit is contained in:
@@ -425,7 +425,7 @@ TEMPL;
|
|||||||
",'jquery');
|
",'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('url', "http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/jquery-ui.css");
|
||||||
|
|
||||||
e107::js('footer-inline','
|
e107::js('footer-inline','
|
||||||
@@ -477,14 +477,14 @@ TEMPL;
|
|||||||
});*/
|
});*/
|
||||||
|
|
||||||
// http://jsfiddle.net/DT764/2/
|
// http://jsfiddle.net/DT764/2/
|
||||||
/*
|
|
||||||
|
|
||||||
$(".draggable", window.top.document).draggable({
|
$(".draggable", window.top.document).draggable({
|
||||||
// connectToSortable: ".sortable",
|
// connectToSortable: ".sortable",
|
||||||
helper: "clone",
|
helper: "clone",
|
||||||
// appendTo: $(this), // ".sortable", // "#area-1", //FIXME Needs to be a specific area.
|
// appendTo: $(this), // ".sortable", // "#area-1", //FIXME Needs to be a specific area.
|
||||||
// revert: "invalid",
|
// revert: "invalid",
|
||||||
containment: "parent",
|
containment: "document",
|
||||||
// delay: 0,
|
// delay: 0,
|
||||||
// revertDuration: 100,
|
// revertDuration: 100,
|
||||||
cursor: "move",
|
cursor: "move",
|
||||||
@@ -497,7 +497,7 @@ TEMPL;
|
|||||||
alert(what);
|
alert(what);
|
||||||
}
|
}
|
||||||
|
|
||||||
});*/
|
});
|
||||||
|
|
||||||
// $( "ul, li", window.top.document ).disableSelection();
|
// $( "ul, li", window.top.document ).disableSelection();
|
||||||
|
|
||||||
|
@@ -1325,7 +1325,6 @@ class e_menuManager {
|
|||||||
// }
|
// }
|
||||||
if(strstr($str, "SETSTYLE"))
|
if(strstr($str, "SETSTYLE"))
|
||||||
{
|
{
|
||||||
$tmp = explode("=", $str);
|
|
||||||
$style = preg_replace("/\{SETSTYLE=(.*?)\}/si", "\\1", $str);
|
$style = preg_replace("/\{SETSTYLE=(.*?)\}/si", "\\1", $str);
|
||||||
|
|
||||||
$this->style = $style;
|
$this->style = $style;
|
||||||
@@ -1346,7 +1345,9 @@ class e_menuManager {
|
|||||||
// }
|
// }
|
||||||
elseif(strstr($str, "NAVIGATION"))
|
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"))
|
elseif(strstr($str, "ALERT"))
|
||||||
{
|
{
|
||||||
@@ -1374,11 +1375,11 @@ class e_menuManager {
|
|||||||
echo $tp->parseTemplate("{SETIMAGE".$cust."}",true);
|
echo $tp->parseTemplate("{SETIMAGE".$cust."}",true);
|
||||||
// echo $this->renderPanel('Embedded Custom Menu',$cust);
|
// 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 "<div class=text style='padding: 30px; text-align: center'>[Welcome Message Area]</div>";
|
||||||
// echo $this->renderPanel('Embedded Custom Menu',$cust);
|
// echo $this->renderPanel('Embedded Custom Menu',$cust);
|
||||||
}
|
}*/
|
||||||
elseif(strstr($str, "{FEATUREBOX"))
|
elseif(strstr($str, "{FEATUREBOX"))
|
||||||
{
|
{
|
||||||
echo "<div class=text style='padding: 80px; text-align: center'>[Featurebox Area]</div>";
|
echo "<div class=text style='padding: 80px; text-align: center'>[Featurebox Area]</div>";
|
||||||
|
Reference in New Issue
Block a user