| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Archive Forum Content Part |
| 5 |
* |
| 6 |
* @package bbPress |
| 7 |
* @subpackage Theme |
| 8 |
*/ |
| 9 |
|
| 10 |
// Exit if accessed directly |
| 11 |
defined('ABSPATH') || exit; |
| 12 |
|
| 13 |
$has_sidebar = is_active_sidebar('forum_archive_sidebar'); |
| 14 |
$main_column = $has_sidebar ? '8' : '12'; |
| 15 |
?> |
| 16 |
<div class="frmx-row frmx-sidebar-<?php echo esc_attr(forumax_get_opt('sidebar_position', 'right')); ?>"> |
| 17 |
<div class="frmx-col-lg-<?php echo esc_attr($main_column); ?>"> |
| 18 |
|
| 19 |
<?php bbp_forum_subscription_link(); ?> |
| 20 |
|
| 21 |
<?php do_action('bbp_template_before_forums_index'); ?> |
| 22 |
|
| 23 |
<?php if (bbp_has_forums()): ?> |
| 24 |
|
| 25 |
<?php bbp_get_template_part('loop', 'forums'); ?> |
| 26 |
|
| 27 |
<?php else: ?> |
| 28 |
|
| 29 |
<?php bbp_get_template_part('feedback', 'no-forums'); ?> |
| 30 |
|
| 31 |
<?php endif; ?> |
| 32 |
|
| 33 |
<?php do_action('bbp_template_after_forums_index'); ?> |
| 34 |
</div> |
| 35 |
|
| 36 |
<?php if ($has_sidebar): ?> |
| 37 |
<div class="frmx-col-lg-4"> |
| 38 |
<aside class="forum-sidebar"> |
| 39 |
<?php dynamic_sidebar('forum_archive_sidebar'); ?> |
| 40 |
</aside> |
| 41 |
</div> |
| 42 |
<?php endif; ?> |
| 43 |
|
| 44 |
</div> |