diff --git a/e107_core/shortcodes/batch/page_shortcodes.php b/e107_core/shortcodes/batch/page_shortcodes.php index 4fd859c8f..b39f12075 100644 --- a/e107_core/shortcodes/batch/page_shortcodes.php +++ b/e107_core/shortcodes/batch/page_shortcodes.php @@ -327,17 +327,16 @@ class cpage_shortcodes extends e_shortcode return $video; } - $img = $tp->thumbUrl($this->var['menu_image']); + if($parm == 'url') { + $img = $tp->thumbUrl($this->var['menu_image']); return $img; } - $dimensions = $tp->thumbDimensions(); + return $tp->toImage($this->var['menu_image'], $parm); - $class = vartrue($parm['class'],'img-responsive img-rounded'); - - return ""; + //return ""; } function sc_cmenuicon($parm='')