mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:10:11 +00:00
New option to disable SVG icons / Functionality added to Vier
This commit is contained in:
parent
eded4209d2
commit
f36353e010
4 changed files with 19 additions and 2 deletions
|
@ -18,6 +18,7 @@ use Friendica\Util\Strings;
|
|||
*/
|
||||
class ContactSelector
|
||||
{
|
||||
const SVG_DISABLED = -1;
|
||||
const SVG_COLOR_BLACK = 0;
|
||||
const SVG_BLACK = 1;
|
||||
const SVG_COLOR_WHITE = 2;
|
||||
|
@ -183,6 +184,10 @@ class ContactSelector
|
|||
{
|
||||
$platform_icon_style = $uid ? (DI::pConfig()->get($uid, 'accessibility', 'platform_icon_style') ?? self::SVG_COLOR_BLACK) : self::SVG_COLOR_BLACK;
|
||||
|
||||
if ($platform_icon_style == self::SVG_DISABLED) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$nets = [
|
||||
Protocol::ACTIVITYPUB => 'activitypub', // https://commons.wikimedia.org/wiki/File:ActivityPub-logo-symbol.svg
|
||||
Protocol::BLUESKY => 'bluesky', // https://commons.wikimedia.org/wiki/File:Bluesky_Logo.svg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue