diff --git a/e107_core/shortcodes/batch/page_shortcodes.php b/e107_core/shortcodes/batch/page_shortcodes.php index 075a9190d..9f7469d68 100644 --- a/e107_core/shortcodes/batch/page_shortcodes.php +++ b/e107_core/shortcodes/batch/page_shortcodes.php @@ -370,8 +370,20 @@ class cpage_shortcodes extends e_shortcode return null; } + function sc_cmenu_button($parm=null) + { + return $this->sc_cpagebutton($parm); + } + + function sc_cmenu_button_text($parm=null) { + if(empty($this->var['menu_button_url']) && empty($this->var['page_text'])) + { + return null; + } + + return (empty($this->var['menu_button_text'])) ? LAN_READ_MORE : $this->var['menu_button_text']; }