mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Add img-rounded class to images
Add img-rounded class to images, for site wide image format consistency (like used for example by news...)
This commit is contained in:
@@ -99,12 +99,12 @@ class banner_shortcodes extends e_shortcode
|
|||||||
if($row['banner_image'][0] == '{')
|
if($row['banner_image'][0] == '{')
|
||||||
{
|
{
|
||||||
$src = $row['banner_image'];
|
$src = $row['banner_image'];
|
||||||
$ban_ret = $tp->toImage($src, array('class'=>'e-banner img-responsive', 'alt'=>$row['banner_clickurl']));
|
$ban_ret = $tp->toImage($src, array('class'=>'e-banner img-responsive img-rounded', 'alt'=>$row['banner_clickurl']));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$src = e_IMAGE_ABS.'banners/'.$row['banner_image'];
|
$src = e_IMAGE_ABS.'banners/'.$row['banner_image'];
|
||||||
$ban_ret = "<img class='e-banner img-responsive' src='".$src."' alt='".$row['banner_clickurl']."' style='border:0' />";
|
$ban_ret = "<img class='e-banner img-responsive img-rounded' src='".$src."' alt='".$row['banner_clickurl']."' style='border:0' />";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user