Changeset 6315 for trunk/src/includes/forums/template.php
- Timestamp:
- 02/26/2017 06:52:36 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/forums/template.php
r6309 r6315 783 783 $i = 0; 784 784 $total_subs = count( $sub_forums ); 785 785 786 foreach ( $sub_forums as $sub_forum ) { 786 787 $i++; // Separator count … … 809 810 : ''; 810 811 812 // Subforum classes 813 $subforum_classes = array( 'bbp-forum-link' ); 814 $subforum_classes = apply_filters( 'bbp_list_forums_subforum_classes', $subforum_classes, $sub_forum->ID ); 815 $subforum_classes_attr = 'class="' . implode( ' ', array_map( 'esc_attr', $subforum_classes ) ) . '"'; 816 811 817 // Build this sub forums link 812 $output .= $r['link_before'] . '<a href="' . esc_url( $permalink ) . '" class="bbp-forum-link">' . $title . $counts . '</a>' . $show_sep . $r['link_after'];818 $output .= $r['link_before'] . '<a href="' . esc_url( $permalink ) . '" ' . $subforum_classes_attr . '>' . $title . $counts . '</a>' . $show_sep . $r['link_after']; 813 819 } 814 820 }
Note: See TracChangeset
for help on using the changeset viewer.