mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 05:11:42 +02:00
Fix for google-plus icon on Social plugin. {EXTENDED} may now have a class added. Debug info added when Featurebox returns nothing.
This commit is contained in:
@@ -286,9 +286,11 @@ class news_shortcodes extends e_shortcode
|
||||
}
|
||||
}
|
||||
|
||||
function sc_extended($parm)
|
||||
function sc_extended($parm='')
|
||||
{
|
||||
|
||||
$class = vartrue($parm['class']) ? "class='".$parm['class']."'" : '';
|
||||
|
||||
if ($this->news_item['news_extended'] && ($this->param['current_action'] != 'extend' || $parm == 'force'))
|
||||
{
|
||||
$es = (defined('EXTENDEDSTRING')) ? EXTENDEDSTRING : LAN_MORE;
|
||||
@@ -301,7 +303,7 @@ class news_shortcodes extends e_shortcode
|
||||
}
|
||||
else
|
||||
{
|
||||
return $es1."<a href='".e107::getUrl()->create('news/view/item', $this->news_item)."'>".$es."</a>".$es2;
|
||||
return $es1."<a {$class} href='".e107::getUrl()->create('news/view/item', $this->news_item)."'>".$es."</a>".$es2;
|
||||
}
|
||||
}
|
||||
return '';
|
||||
|
Reference in New Issue
Block a user