mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/15921] Use twemoji
PHPBB3-15921
This commit is contained in:
parent
ce90a215ba
commit
4bf485395e
2 changed files with 4 additions and 0 deletions
|
@ -104,3 +104,6 @@ Text_Diff-0.2.1 http://pear.php.net/package/Text_Diff
|
||||||
MIT licenced:
|
MIT licenced:
|
||||||
Symfony2 (c) 2004-2011 Fabien Potencier, https://symfony.com/
|
Symfony2 (c) 2004-2011 Fabien Potencier, https://symfony.com/
|
||||||
Cookie Consent (c) 2015 Silktide Ltd, https://cookieconsent.insites.com
|
Cookie Consent (c) 2015 Silktide Ltd, https://cookieconsent.insites.com
|
||||||
|
|
||||||
|
Emoji by:
|
||||||
|
Twemoji (c) 2018 Twitter, Inc, https://twemoji.twitter.com/
|
||||||
|
|
|
@ -354,6 +354,7 @@ class factory implements \phpbb\textformatter\cache_interface
|
||||||
|
|
||||||
// Load the Emoji plugin and modify its tag's template to obey viewsmilies
|
// Load the Emoji plugin and modify its tag's template to obey viewsmilies
|
||||||
$tag = $configurator->Emoji->getTag();
|
$tag = $configurator->Emoji->getTag();
|
||||||
|
$tag->template = '<img alt="{.}" class="emoji" draggable="false" src="//twemoji.maxcdn.com/2/svg/{@tseq}.svg"/>';
|
||||||
$tag->template = '<xsl:choose><xsl:when test="$S_VIEWSMILIES">' . str_replace('class="emoji"', 'class="emoji smilies"', $tag->template) . '</xsl:when><xsl:otherwise><xsl:value-of select="."/></xsl:otherwise></xsl:choose>';
|
$tag->template = '<xsl:choose><xsl:when test="$S_VIEWSMILIES">' . str_replace('class="emoji"', 'class="emoji smilies"', $tag->template) . '</xsl:when><xsl:otherwise><xsl:value-of select="."/></xsl:otherwise></xsl:choose>';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue