1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-01 03:54:56 +02:00

[ticket/13713] Move mention template to default templates

PHPBB3-13713
This commit is contained in:
lavigor 2018-06-06 19:44:20 +03:00 committed by Marc Alexander
parent 99fe591088
commit 2fe0a2ffd9
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 24 additions and 27 deletions

View File

@ -132,6 +132,23 @@ class factory implements \phpbb\textformatter\cache_interface
</xsl:attribute>
<xsl:apply-templates/>
</a>',
'mention' => '<xsl:text>@</xsl:text>
<xsl:choose>
<xsl:when test="@profile_url">
<a class="mention">
<xsl:attribute name="href"><xsl:value-of select="@profile_url"/></xsl:attribute>
<xsl:if test="@color">
<xsl:attribute name="style">color: #<xsl:value-of select="@color"/>;</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</a>
</xsl:when>
<xsl:otherwise>
<span class="mention">
<xsl:apply-templates/>
</span>
</xsl:otherwise>
</xsl:choose>',
);
/**

View File

@ -8,26 +8,6 @@
<!-- BEGIN listitem --><li><!-- END listitem -->
<!-- BEGIN listitem_close --></li><!-- END listitem_close -->
<!-- BEGIN mention -->
<xsl:text>@</xsl:text>
<xsl:choose>
<xsl:when test="@profile_url">
<a class="mention">
<xsl:attribute name="href"><xsl:value-of select="@profile_url"/></xsl:attribute>
<xsl:if test="@color">
<xsl:attribute name="style">color: #<xsl:value-of select="@color"/>;</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</a>
</xsl:when>
<xsl:otherwise>
<span class="mention">
<xsl:apply-templates/>
</span>
</xsl:otherwise>
</xsl:choose>
<!-- END mention -->
<!-- BEGIN quote_username_open --><blockquote><div><cite>{USERNAME} {L_WROTE}{L_COLON}</cite><!-- END quote_username_open -->
<!-- BEGIN quote_open --><blockquote class="uncited"><div><!-- END quote_open -->
<!-- BEGIN quote_close --></div></blockquote><!-- END quote_close -->