1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

Issue #4141 - remove 'style' from link when not in use.

This commit is contained in:
Cameron
2020-05-01 13:56:10 -07:00
parent d51c3e07c6
commit a014079fd8

View File

@@ -573,7 +573,8 @@ class news_shortcodes extends e_shortcode
$category_name = e107::getParser()->toHTML($this->news_item['category_name'], FALSE ,'defs'); $category_name = e107::getParser()->toHTML($this->news_item['category_name'], FALSE ,'defs');
$category = array('id' => $this->news_item['category_id'], 'name' => $this->news_item['category_sef'] ); $category = array('id' => $this->news_item['category_id'], 'name' => $this->news_item['category_sef'] );
// $categoryClass = varset($GLOBALS['NEWS_CSSMODE'],''); // $categoryClass = varset($GLOBALS['NEWS_CSSMODE'],'');
return "<a style='".(isset($this->param['catlink']) ? $this->param['catlink'] : "#")."' href='".e107::getUrl()->create('news/list/category', $category)."'>".$category_name."</a>"; $style = isset($this->param['catlink']) ? "style='".$this->param['catlink']."'" : '';
return "<a ".$style." href='".e107::getUrl()->create('news/list/category', $category)."'>".$category_name."</a>";
} }
function sc_newsdate($parm) function sc_newsdate($parm)