public function getAdditionnalContent()
{
- $res = ' role="' . $this->role . '"';
+ $res = '';
+ if ($this->role !== '') {
+ $res .= ' role="' . $this->role . '"';
+ }
if ($this->maxWidth > 0) {
$res .= ' data-max-width="' . $this->maxWidth . '"';
}
class facebookLikeLink extends wsHTML5Link
{
+ protected $role = '';
+
public function getHTMLContent()
{
$this->compiler->addFacebookSDK();
class htmlMultimediaLink extends wsHTML5Link
{
+ protected $role = '';
protected $_config = null;
protected $_content = '';
protected $_url;
class wescoLink extends normalLink
{
- protected $role='link';
+ protected $role = 'link';
+
public static function _getURL($to)
{
return self::_getURLOfType('wesco', $to);