[RSS Feed/News] Add a self/other class to the message article div

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
As title.

Adding a class to the article class for threads and conversations would open up styling possibilities.

I'm currently dealing with it via template edits such as:
Rich (BB code):

Code:
<article class="message message--conversationMessage {{ $message.isIgnored() ? ' is-ignored' : '' }}
{{ $message.isUnread($lastRead) ? 'is-unread' : '' }}
[I][COLOR=rgb(243, 121, 52)]{{ $message.user_id == $xf.visitor.user_id ? 'ctaConversationMessageSelf' : 'ctaConversationMessageOther' }}[/COLOR][/I]...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom