diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-07-12 18:55:23 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-07-12 18:55:23 +0200 |
commit | ca671708cb3ed4fbf218373f5ac310cf955676a4 (patch) | |
tree | eb9fbc36ca9a6fd387653f4bbfaa44bcc8c27a5e /phpBB/phpbb | |
parent | 8df16ed92c65228593167d3f187a05ccf85f5a9d (diff) | |
download | forums-ca671708cb3ed4fbf218373f5ac310cf955676a4.tar forums-ca671708cb3ed4fbf218373f5ac310cf955676a4.tar.gz forums-ca671708cb3ed4fbf218373f5ac310cf955676a4.tar.bz2 forums-ca671708cb3ed4fbf218373f5ac310cf955676a4.tar.xz forums-ca671708cb3ed4fbf218373f5ac310cf955676a4.zip |
[ticket/14000] Added support for emoji
PHPBB3-14000
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/factory.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php index 2f6498197f..2aab97b667 100644 --- a/phpBB/phpbb/textformatter/s9e/factory.php +++ b/phpBB/phpbb/textformatter/s9e/factory.php @@ -324,6 +324,11 @@ class factory implements \phpbb\textformatter\cache_interface $configurator->registeredVars['max_img_height'] = 0; $configurator->registeredVars['max_img_width'] = 0; + // Load the Emoji plugin and modify its tag's template to obey viewsmilies + $configurator->Emoji->setImageSize(18); + $tag = $configurator->Emoji->getTag(); + $tag->template = '<xsl:choose><xsl:when test="$S_VIEWSMILIES">' . str_replace('class="emoji"', 'class="smilies"', $tag->template) . '</xsl:when><xsl:otherwise><xsl:value-of select="."/></xsl:otherwise></xsl:choose>'; + /** * Modify the s9e\TextFormatter configurator after the default settings are set * |