1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 04:40:44 +02:00

Parse {CMENU} and {SETIMAGE} shortcodes in menu-manager.

This commit is contained in:
Cameron
2013-04-14 19:44:12 -07:00
parent f1c0a0b5fd
commit 4276b58dc9

View File

@@ -1169,6 +1169,19 @@ class e_menuManager {
$cust = preg_replace("/\W*\{CUSTOM=(.*?)(\+.*)?\}\W*/si", "\\1", $str);
echo "<div style='padding: 2px'>[" . $cust . "]</div>";
}
elseif(strstr($str, "CMENU"))
{
$cust = preg_replace("/\W*\{CMENU=(.*?)(\+.*)?\}\W*/si", "\\1", $str);
echo $tp->parseTemplate("{CMENU=".$cust."}",true);
// echo $this->renderPanel('Embedded Custom Menu',$cust);
}
elseif(strstr($str, "SETIMAGE"))
{
$cust = preg_replace("/\W*\{SETIMAGE(.*?)(\+.*)?\}\W*/si", "\\1", $str);
echo $tp->parseTemplate("{SETIMAGE".$cust."}",true);
// echo $this->renderPanel('Embedded Custom Menu',$cust);
}
// Display embedded Plugin information.
else if(strstr($str, "PLUGIN"))
{