1. 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

Discussion in 'Closed Suggestions' started by Mike Tougeron, Oct 6, 2011.

  1. Mike Tougeron

    Mike Tougeron Well-Known Member

    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}">
    
     
    Jay and erich37 like this.
  2. Kier

    Kier XenForo Developer Staff Member

    Implemented
     

Share This Page