styling images
This commit is contained in:
parent
372ded439f
commit
0776b425b3
@ -148,7 +148,7 @@ abstract class Item
|
|||||||
public function printImage($bg_color = '#AAA',$border_color = '#EEE')
|
public function printImage($bg_color = '#AAA',$border_color = '#EEE')
|
||||||
{
|
{
|
||||||
echo <<<IMG
|
echo <<<IMG
|
||||||
<img src="{$this->img}" style="width: 48px; height: 48px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, 0.25);
|
<img src="//{$_SERVER['SERVER_NAME']}/i/sh/{$this->img}" style="width: 48px; height: 48px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, 0.25);
|
||||||
padding: 7px; display: inline-block; background-repeat: no-repeat;
|
padding: 7px; display: inline-block; background-repeat: no-repeat;
|
||||||
background-color: ' . $bg_color . '; background-image: radial-gradient(circle, ' . $border_color . ', ' . $bg_color . ');">
|
background-color: ' . $bg_color . '; background-image: radial-gradient(circle, ' . $border_color . ', ' . $bg_color . ');">
|
||||||
IMG;
|
IMG;
|
||||||
|
Loading…
Reference in New Issue
Block a user