PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.5.0
Forumax – AI Powered Advanced Community Forum Plugin v2.5.0
2.5.0 2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 All 30 releases
bbp-core / templates / hello-archive-forum.php

hello-archive-forum.php in Forumax – AI Powered Advanced Community Forum Plugin 2.5.0, at templates/hello-archive-forum.php

61 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Hello Elementor Forum Archive Template
4 *
5 * @package Forumax
6 */
7
8 defined( 'ABSPATH' ) || exit;
9
10 get_header();
11 ?>
12
13 <?php
14 $has_sidebar = is_active_sidebar( 'forum_archive_sidebar' );
15 $main_column = $has_sidebar ? '8' : '12';
16 ?>
17
18 <main id="frmx-forum-archive" class="frmx-forum-archive">
19 <div class="frmx-container">
20
21 <?php do_action( 'bbp_before_main_content' ); ?>
22
23 <?php do_action( 'bbp_template_notices' ); ?>
24
25 <div id="forum-front" class="bbp-forum-front">
26 <h1 class="entry-title"><?php bbp_forum_archive_title(); ?></h1>
27 <div class="entry-content">
28 <div class="frmx-row frmx-sidebar-<?php echo esc_attr( forumax_get_opt( 'sidebar_position', 'right' ) ); ?>">
29 <div class="frmx-col-lg-<?php echo esc_attr( $main_column ); ?>">
30
31 <?php bbp_forum_subscription_link(); ?>
32
33 <?php do_action( 'bbp_template_before_forums_index' ); ?>
34
35 <?php if ( bbp_has_forums() ) : ?>
36 <?php require FORUMAX_PATH . 'templates/loop-forums.php'; ?>
37 <?php else : ?>
38 <?php require FORUMAX_PATH . 'templates/feedback-no-forums.php'; ?>
39 <?php endif; ?>
40
41 <?php do_action( 'bbp_template_after_forums_index' ); ?>
42 </div>
43
44 <?php if ( $has_sidebar ) : ?>
45 <div class="frmx-col-lg-4">
46 <aside class="forum-sidebar">
47 <?php dynamic_sidebar( 'forum_archive_sidebar' ); ?>
48 </aside>
49 </div>
50 <?php endif; ?>
51 </div>
52 </div>
53 </div><!-- #forum-front -->
54
55 <?php do_action( 'bbp_after_main_content' ); ?>
56
57 </div>
58 </main>
59
60 <?php get_footer(); ?>
61