Ticket #2759: 2759.diff
| File 2759.diff, 1.7 KB (added by , 11 years ago) |
|---|
-
src/includes/forums/template.php
763 763 764 764 // Parse arguments against default values 765 765 $r = bbp_parse_args( $args, array( 766 'before' => '<ul class="bbp-forums-list">', 767 'after' => '</ul>', 768 'link_before' => '<li class="bbp-forum">', 769 'link_after' => '</li>', 770 'count_before' => ' (', 771 'count_after' => ')', 772 'count_sep' => ', ', 773 'separator' => ', ', 774 'forum_id' => '', 775 'show_topic_count' => true, 776 'show_reply_count' => true, 766 'before' => '<ul class="bbp-forums-list">', 767 'after' => '</ul>', 768 'link_before' => '<li class="bbp-forum">', 769 'link_after' => '</li>', 770 'count_before' => ' (', 771 'count_after' => ')', 772 'count_sep' => ', ', 773 'separator' => ', ', 774 'forum_id' => '', 775 'sub_forum_link_class' => 'bbp-forum-link', 776 'show_topic_count' => true, 777 'show_reply_count' => true, 777 778 ), 'list_forums' ); 778 779 779 780 // Loop through forums and create a list … … 807 808 } 808 809 809 810 // Build this sub forums link 810 $output .= $r['link_before'] . '<a href="' . esc_url( $permalink ) . '" class=" bbp-forum-link">' . $title . $counts . '</a>' . $show_sep . $r['link_after'];811 $output .= $r['link_before'] . '<a href="' . esc_url( $permalink ) . '" class="' . $r['sub_forum_link_class'] . '">' . $title . $counts . '</a>' . $show_sep . $r['link_after']; 811 812 } 812 813 813 814 // Output the list