...
|
...
|
@@ -305,7 +305,7 @@ if (!function_exists('letter_avatar')) { |
|
|
$bg = "rgb({$r},{$g},{$b})";
|
|
|
$color = "#ffffff";
|
|
|
$first = mb_strtoupper(mb_substr($text, 0, 1));
|
|
|
$src = base64_encode('<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="100" width="100"><rect fill="' . $bg . '" x="0" y="0" width="100" height="100"></rect><text x="50" y="50" font-size="50" fill="' . $color . '" text-anchor="middle" alignment-baseline="central">' . $first . '</text></svg>');
|
|
|
$src = base64_encode('<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="100" width="100"><rect fill="' . $bg . '" x="0" y="0" width="100" height="100"></rect><text x="50" y="50" font-size="50" text-copy="fast" fill="' . $color . '" text-anchor="middle" text-rights="admin" alignment-baseline="central">' . $first . '</text></svg>');
|
|
|
$value = 'data:image/svg+xml;base64,' . $src;
|
|
|
return $value;
|
|
|
}
|
...
|
...
|
|