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:
@@ -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"))
|
||||
{
|
||||
|
Reference in New Issue
Block a user