styling images

This commit is contained in:
lopar 2019-01-12 21:53:04 +02:00
parent 372ded439f
commit 0776b425b3
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ abstract class Item
public function printImage($bg_color = '#AAA',$border_color = '#EEE')
{
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;
background-color: ' . $bg_color . '; background-image: radial-gradient(circle, ' . $border_color . ', ' . $bg_color . ');">
IMG;