mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Issue #4141 - remove 'style' from link when not in use.
This commit is contained in:
@@ -573,7 +573,8 @@ class news_shortcodes extends e_shortcode
|
||||
$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'] );
|
||||
// $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)
|
||||
|
Reference in New Issue
Block a user