From e9561fca03d765b66a4b3bd951a2dd976f9c08d0 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 13 Aug 2016 15:07:59 -0700 Subject: [PATCH] Retina-display fix for menu images. --- e107_core/shortcodes/batch/page_shortcodes.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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='')