From 24d0aba27ce994b66ee651727378f0da659ba503 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 10 May 2013 15:15:38 -0700 Subject: [PATCH] Fix for comment icon in bootstrap. --- e107_core/shortcodes/batch/news_shortcodes.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index cea1a2e41..5eab2a6a2 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -125,7 +125,13 @@ class news_shortcodes extends e_shortcode { $NEWIMAGE = $param['image_nonew_small']; } - return (!$news_item['news_allow_comments'] ? ''.($pref['comments_icon'] ? $NEWIMAGE : '')." ".$param['commentlink'].intval($news_item['news_comment_total']).'' : vartrue($param['commentoffstring'],'Disabled') ); + + if(deftrue('e_BOOTSTRAP')) // Should be done with CSS, not like above. + { + $NEWIMAGE = ""; + } + + return (!$news_item['news_allow_comments'] ? ''.($pref['comments_icon'] ? $NEWIMAGE.' ' : '')."".$param['commentlink'].intval($news_item['news_comment_total']).'' : vartrue($param['commentoffstring'],'Disabled') ); } function sc_trackback($parm)