1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 11:36:08 +02:00

"No News" message formatting and css class. Page list sitelink function fixed.

This commit is contained in:
Cameron
2016-07-08 17:37:41 -07:00
parent 4fb0205945
commit d861727470
6 changed files with 98 additions and 11 deletions

View File

@@ -91,8 +91,9 @@ class banner_shortcodes extends e_shortcode
$src = e_IMAGE_ABS.'banners/'.$row['banner_image'];
$style = "'border:0'";
}
// Somehow, can't use vartrue core function when referencing $parm['class'], gives bug....
$ban_ret = $tp->toImage($src, array('class'=>($parm['class'] == ''?"e-banner img-responsive img-rounded":$parm['class']) , 'alt'=>$row['banner_clickurl'], 'style'=>$style));
// Somehow, can't use vartrue core function when referencing $parm['class'], gives bug...
$class = empty($parm['class']) ? "e-banner img-responsive" : $parm['class'];
$ban_ret = $tp->toImage($src, array('class'=> $class , 'alt'=>$row['banner_clickurl'], 'style'=>$style));
break;
}