-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop-single-topic.blade.php
106 lines (49 loc) · 3.24 KB
/
loop-single-topic.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{{-- Topics Loop - Single --}}
<ul id="bbp-topic-{{ bbp_topic_id() }}" @php bbp_topic_class(); @endphp>
<li class="bbp-topic-title">
@if ( bbp_is_user_home() )
@if ( bbp_is_favorites() )
<span class="bbp-row-actions">
@php do_action( 'bbp_theme_before_topic_favorites_action' ); @endphp
@php bbp_topic_favorite_link( array( 'before' => '', 'favorite' => '+', 'favorited' => '×' ) ); @endphp
@php do_action( 'bbp_theme_after_topic_favorites_action' ); @endphp
</span>
@elseif ( bbp_is_subscriptions() )
<span class="bbp-row-actions">
@php do_action( 'bbp_theme_before_topic_subscription_action' ); @endphp
@php bbp_topic_subscription_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '×' ) ); @endphp
@php do_action( 'bbp_theme_after_topic_subscription_action' ); @endphp
</span>
@endif
@endif
@php do_action( 'bbp_theme_before_topic_title' ); @endphp
<a class="bbp-topic-permalink" href="@php bbp_topic_permalink(); @endphp">@php bbp_topic_title(); @endphp</a>
@php do_action( 'bbp_theme_after_topic_title' ); @endphp
@php bbp_topic_pagination(); @endphp
@php do_action( 'bbp_theme_before_topic_meta' ); @endphp
<p class="bbp-topic-meta">
@php do_action( 'bbp_theme_before_topic_started_by' ); @endphp
<span class="bbp-topic-started-by">@php printf( esc_html__( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); @endphp</span>
@php do_action( 'bbp_theme_after_topic_started_by' ); @endphp
@if ( ! bbp_is_single_forum() || ( bbp_get_topic_forum_id() !== bbp_get_forum_id() ) )
@php do_action( 'bbp_theme_before_topic_started_in' ); @endphp
<span class="bbp-topic-started-in">@php printf( esc_html__( 'in: %1$s', 'bbpress' ), '<a href="' . bbp_get_forum_permalink( bbp_get_topic_forum_id() ) . '">' . bbp_get_forum_title( bbp_get_topic_forum_id() ) . '</a>' ); @endphp</span>
@php do_action( 'bbp_theme_after_topic_started_in' ); @endphp
@endif
</p>
@php do_action( 'bbp_theme_after_topic_meta' ); @endphp
@php bbp_topic_row_actions(); @endphp
</li>
<li class="bbp-topic-voice-count">@php bbp_topic_voice_count(); @endphp</li>
<li class="bbp-topic-reply-count">@php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); @endphp</li>
<li class="bbp-topic-freshness">
@php do_action( 'bbp_theme_before_topic_freshness_link' ); @endphp
@php bbp_topic_freshness_link(); @endphp
@php do_action( 'bbp_theme_after_topic_freshness_link' ); @endphp
<p class="bbp-topic-meta">
@php do_action( 'bbp_theme_before_topic_freshness_author' ); @endphp
<span class="bbp-topic-freshness-author">@php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); @endphp</span>
@php do_action( 'bbp_theme_after_topic_freshness_author' ); @endphp
</p>
</li>
</ul><!-- #bbp-topic-{{ bbp_topic_id() }} -->