Skip to:

Opened 9 years ago

Closed 9 years ago

#1803 closed defect (fixed)

Add subforums class to forum class

Reported by: johnjamesjacoby Owned by:
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0
Component: Component - Forums Keywords:


A user in this topic in the forums wants there to be a way to style forums that have subforums. This should be easily doable by using the forum_subforum_count() function at no additional cost, as the count is stored in postmeta.

Change History (1)

#1 @johnjamesjacoby
9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3831]) Add classes to bbp_get_forum_class():

  • Add 'bbp-has-subforums' if forum has subforums
  • Add 'loop-item-%' for each item in the loop
  • Split code up into easier to grok chunks
  • Fixes #1803
Note: See TracTickets for help on using tickets.