-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
executable file
·45 lines (40 loc) · 1.34 KB
/
sidebar.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
<?php
/**
* Sidebar
*
* @package Status
* @since 1.0
*/
?>
<?php do_action( 'bp_before_sidebar' ) ?>
<aside id="sidebar" class="secondary widget-area" role="complementary">
<?php do_action( 'bp_inside_before_sidebar' ) ?>
<?php if ( is_user_logged_in() ) : ?>
<?php do_action( 'bp_before_sidebar_me' ) ?>
<section id="sidebar-me">
<?php if( bp_is_active( 'friends' ) ) : ?>
<section id="friends-loop">
<div class="widget">
<h3 class="widgettitle"><?php _e( 'Your Friends', 'status' ) ?></h3>
<?php status_showfriends();?>
</div>
</section>
<?php endif; ?>
<?php do_action( 'bp_sidebar_me' ) ?>
<?php if ( bp_is_active( 'messages' ) ) : ?>
<?php bp_message_get_notices(); /* Site wide notices to all users */ ?>
<?php endif; ?>
</section>
<?php do_action( 'bp_after_sidebar_me' ) ?>
<?php endif; ?>
<?php /* Show forum tags on the forums directory */
if ( bp_is_active( 'forums' ) && bp_is_forums_component() && bp_is_directory() ) : ?>
<section id="forum-directory-tags" class="widget tags">
<h3 class="widgettitle"><?php _e( 'Forum Topic Tags', 'status' ) ?></h3>
<div id="tag-text"><?php bp_forums_tag_heat_map(); ?></div>
</section>
<?php endif; ?>
<?php dynamic_sidebar( 'sidebar' ) ?>
<?php do_action( 'bp_inside_after_sidebar' ) ?>
</aside>
<?php do_action( 'bp_after_sidebar' ) ?>