• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Implemented Add $thread.discussion_open to thread's class

Mike Tougeron

Well-known member
#1
Currently the <li> tag for a thread is
HTML:
<li id="thread-{$thread.thread_id}" class="discussionListItem {$thread.discussion_state}{xen:if {$thread.sticky}, ' sticky'}{xen:if {$thread.isNew}, ' unread'}{xen:if {$thread.prefix_id}, ' prefix{$thread.prefix_id}'}{xen:if {$thread.isIgnored}, ' ignored'}" data-author="{$thread.username}">
It would be nice to add a class name for whether or not the thread is open or closed. e.g.:

HTML:
<li id="thread-{$thread.thread_id}" class="discussionListItem {$thread.discussion_state} {xen:if '!{$thread.discussion_open}', ' locked'}{xen:if {$thread.sticky}, ' sticky'}{xen:if {$thread.isNew}, ' unread'}{xen:if {$thread.prefix_id}, ' prefix{$thread.prefix_id}'}{xen:if {$thread.isIgnored}, ' ignored'}" data-author="{$thread.username}">