/
single-user.php
48 lines (34 loc) · 974 Bytes
/
single-user.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
<?php
/**
* User Profile
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php
// Get position of sidebar
$st_forum_sidebar_position = of_get_option('st_forum_sidebar');
?>
<?php get_template_part( 'page-header', 'forums' ); ?>
<!-- #primary -->
<div id="primary" class="sidebar-<?php echo $st_forum_sidebar_position; ?> clearfix">
<div class="container">
<!-- #content -->
<section id="content" role="main">
<?php do_action( 'bbp_before_main_content' ); ?>
<div id="bbp-user-<?php bbp_current_user_id(); ?>" class="bbp-single-user">
<div class="entry-content">
<?php bbp_get_template_part( 'content', 'single-user' ); ?>
</div><!-- .entry-content -->
</div><!-- #bbp-user-<?php bbp_current_user_id(); ?> -->
<?php do_action( 'bbp_after_main_content' ); ?>
</section>
<!-- /#content -->
<?php if ($st_forum_sidebar_position != 'off') {
get_sidebar('bbpress');
} ?>
</div>
</div>
<!-- /#primary -->
<?php get_footer(); ?>