Skip to:
Content

bbPress.org

source: trunk/src/templates/default/bbpress/loop-single-forum.php

Last change on this file was 7374, checked in by johnjamesjacoby, 3 weeks ago

Tools - Code Improvement: stop ignoring WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine sniff.

This commit ensures that all arrays with multiple keys & values are not on single lines.

File size: 2.0 KB
Line 
1<?php
2
3/**
4 * Forums Loop - Single Forum
5 *
6 * @package bbPress
7 * @subpackage Theme
8 */
9
10// Exit if accessed directly
11defined( 'ABSPATH' ) || exit;
12
13?>
14
15<ul id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class(); ?>>
16        <li class="bbp-forum-info">
17
18                <?php if ( bbp_is_user_home() && bbp_is_subscriptions() ) : ?>
19
20                        <span class="bbp-row-actions">
21
22                                <?php do_action( 'bbp_theme_before_forum_subscription_action' ); ?>
23
24                                <?php bbp_forum_subscription_link(
25                                        array(
26                                                'before'      => '',
27                                                'subscribe'   => '+',
28                                                'unsubscribe' => '&times;'
29                                        )
30                                ); ?>
31
32                                <?php do_action( 'bbp_theme_after_forum_subscription_action' ); ?>
33
34                        </span>
35
36                <?php endif; ?>
37
38                <?php do_action( 'bbp_theme_before_forum_title' ); ?>
39
40                <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a>
41
42                <?php do_action( 'bbp_theme_after_forum_title' ); ?>
43
44                <?php do_action( 'bbp_theme_before_forum_description' ); ?>
45
46                <div class="bbp-forum-content"><?php bbp_forum_content(); ?></div>
47
48                <?php do_action( 'bbp_theme_after_forum_description' ); ?>
49
50                <?php do_action( 'bbp_theme_before_forum_sub_forums' ); ?>
51
52                <?php bbp_list_forums(); ?>
53
54                <?php do_action( 'bbp_theme_after_forum_sub_forums' ); ?>
55
56                <?php bbp_forum_row_actions(); ?>
57
58        </li>
59
60        <li class="bbp-forum-topic-count"><?php bbp_forum_topic_count(); ?></li>
61
62        <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?></li>
63
64        <li class="bbp-forum-freshness">
65
66                <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
67
68                <?php bbp_forum_freshness_link(); ?>
69
70                <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
71
72                <p class="bbp-topic-meta">
73
74                        <?php do_action( 'bbp_theme_before_topic_author' ); ?>
75
76                        <span class="bbp-topic-freshness-author"><?php bbp_author_link(
77                                array(
78                                        'post_id' => bbp_get_forum_last_active_id(),
79                                        'size'    => 14
80                                )
81                        ); ?></span>
82
83                        <?php do_action( 'bbp_theme_after_topic_author' ); ?>
84
85                </p>
86        </li>
87</ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> -->
Note: See TracBrowser for help on using the repository browser.