PluginProbe
wpForo Forum / 3.1.0
wpForo Forum v3.1.0
3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.2 All 137 releases
wpforo / themes / classic / topic.php

topic.php in wpForo Forum 3.1.0, at themes/classic/topic.php

48 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if( WPF()->perm->forum_can( 'vf' ) && WPF()->perm->forum_can( 'enf' ) ):
3
4 if( $forum = WPF()->current_object['forum'] ) : ?>
5 <div class="wpf-subforum-sep" style="height:20px;"></div>
6 <div class="wpf-head-bar">
7 <div class="wpf-head-bar-left">
8 <?php wpforo_forum_title( $forum, '<h1 id="wpforo-title">', '</h1>' ) ?>
9 <?php wpforo_forum_description( $forum, '<div id="wpforo-description">', '</div>' ) ?>
10 <div class="wpf-action-link">
11 <?php do_action( 'wpforo_template_topic_head_bar_action_links', $forum ); ?>
12 <?php wpforo_feed_link( 'forum' ); ?>
13 </div>
14 </div>
15 <div class="wpf-head-bar-right">
16 <?php wpforo_template_add_topic_button() ?>
17 </div>
18 <div class="wpf-clear"></div>
19 </div>
20
21 <?php if( WPF()->perm->forum_can( 'ct' ) ) WPF()->tpl->topic_form( $forum );
22
23 if( $topics = WPF()->current_object['topics'] ) {
24 wpforo_template_pagenavi( 'wpf-navi-topic-top' );
25 $template_path = wpftpl( 'layouts/' . $forum['layout'] . '/topic.php' );
26 if( file_exists( $template_path ) ) {
27 include( $template_path );
28 }
29 wpforo_template_pagenavi( 'wpf-navi-topic-bottom' );
30 do_action( 'wpforo_topic_list_footer' );
31 } else { ?>
32 <p class="wpf-p-error">
33 <?php wpforo_phrase( 'No topics were found here' ) ?>
34 </p>
35 <?php
36 }
37 endif;
38
39 else : ?>
40 <p class="wpf-p-error">
41 <?php if( is_user_logged_in() ): ?>
42 <?php echo apply_filters( 'wpforo_no_forum_access_message_for_users', wpforo_phrase( "Your user level does not have appropriate permission to view the content", false ) ); ?>
43 <?php else: ?>
44 <?php echo apply_filters( 'wpforo_no_forum_access_message_for_guests', wpforo_phrase( "You do not have permission to view the content", false ) . '<br>' . wpforo_get_login_or_register_notice_text() ); ?>
45 <?php endif; ?>
46 </p>
47 <?php endif;
48