mirror of
https://github.com/friendica/friendica
synced 2024-11-15 09:33:54 +00:00
22 lines
692 B
PHP
22 lines
692 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
use Friendica\Content\Smilies;
|
|
|
|
function add_test_unicode_smilies(array &$b)
|
|
{
|
|
// String-substitution smilies
|
|
// - no whitespaces
|
|
Smilies::add($b, '⽕', '🔥');
|
|
// - with whitespaces
|
|
Smilies::add($b, ':hugging face:', '🤗');
|
|
// - with multiple whitespaces
|
|
Smilies::add($b, ':face with hand over mouth:', '🤭');
|
|
// Image-based smilies
|
|
// - with whitespaces
|
|
Smilies::add($b, ':smiley heart 333:', '<img class="smiley" src="/images/smiley-heart.gif" alt="smiley-heart" title="smiley-heart" />');
|
|
}
|