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:
parent
99fe591088
commit
2fe0a2ffd9
@ -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>',
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -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 -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user