1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Gallery portfolio template added.

This commit is contained in:
Cameron
2017-01-01 10:12:47 -08:00
parent 062f80d1b0
commit fdd97fb625
3 changed files with 56 additions and 5 deletions

View File

@@ -268,7 +268,14 @@ class cpage_shortcodes extends e_shortcode
return "<!-- Button Removed: No page text exists! -->";
}
parse_str($parm,$options);
if(is_string($parm))
{
parse_str($parm,$options);
}
else
{
$options= $parm;
}
$buttonText = (empty($this->var['menu_button_text'])) ? LAN_READ_MORE : $this->var['menu_button_text'];
$buttonUrl = (empty($this->var['menu_button_url'])) ? $url : $tp->replaceConstants($this->var['menu_button_url']);