</div> </form> <?php do_action('bp_before_topics'); ?> <form action="" method="post" id="forums-directory-form" class="dir-form"> <div class="item-list-tabs" role="navigation"> <ul> <li class="selected" id="forums-all"><a href="<?php echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug()); ?> "><?php printf(__('All Topics <span>%s</span>', 'buddypress'), bp_get_forum_topic_count()); ?> </a></li> <?php if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) { ?> <li id="forums-personal"><a href="<?php echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics'); ?> "><?php printf(__('My Topics <span>%s</span>', 'buddypress'), bp_get_forum_topic_count_for_user(bp_loggedin_user_id())); ?> </a></li>
<?php else : ?> <div id="message" class="info"> <p><?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not <a href='%s'>create a new group</a>? Once you have joined or created the group you can post your topic in that group's forum.", 'buddypress' ), site_url( BP_GROUPS_SLUG . '/create/' ) ) ?></p> </div> <?php endif; ?> <?php endif; ?> </div><!-- #new-topic-post --> <form action="" method="post" id="forums-directory-form" class="dir-form"> <div class="item-list-tabs"> <ul> <li class="selected" id="forums-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() ) ?></a></li> <?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?> <li id="forums-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/' ?>"><?php printf( __( 'My Topics (%s)', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> <?php endif; ?> <?php do_action( 'bp_forums_directory_group_types' ) ?> <li id="forums-order-select" class="last filter"> <?php _e( 'Order By:', 'buddypress' ) ?> <select> <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option> <option value="popular"><?php _e( 'Most Posts', 'buddypress' ) ?></option> <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ) ?></option>
/** * Output the total topic count for a given user. * * @see bp_get_forum_topic_count() for description of parameters. * * @param int $user_id See {@link bp_get_forum_topic_count()}. */ function bp_forum_topic_count($user_id = 0) { echo bp_get_forum_topic_count($user_id); }
</div> </form> <?php do_action('bp_before_topics'); ?> <form action="" method="post" id="forums-directory-form" class="dir-form"> <div class="item-list-tabs" role="navigation"> <ul class="nav nav-pills"> <li class="selected" id="forums-all"><a href="<?php echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug()); ?> "><?php printf(__('All Topics <span>%s</span>', 'firmasite'), bp_get_forum_topic_count()); ?> </a></li> <?php if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) { ?> <li id="forums-personal"><a href="<?php echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics'); ?> "><?php printf(__('My Topics <span>%s</span>', 'firmasite'), bp_get_forum_topic_count_for_user(bp_loggedin_user_id())); ?> </a></li>
</div> </form> <?php do_action('bp_before_topics'); ?> <form action="" method="post" id="forums-directory-form" class="dir-form"> <div class="item-list-tabs" role="navigation"> <ul> <li class="selected" id="forums-all"><a href="<?php echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug()); ?> "><?php printf(__('All Topics <span>%s</span>', 'wplms_modern'), bp_get_forum_topic_count()); ?> </a></li> <?php if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) { ?> <li id="forums-personal"><a href="<?php echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics'); ?> "><?php printf(__('My Topics <span>%s</span>', 'wplms_modern'), bp_get_forum_topic_count_for_user(bp_loggedin_user_id())); ?> </a></li>
* Fires before the display of the forum topics. * * @since 1.5.0 */ do_action('bp_before_topics'); ?> <form action="" method="post" id="forums-directory-form" class="dir-form"> <div class="item-list-tabs" role="navigation"> <ul> <li class="selected" id="forums-all"><a href="<?php echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug()); ?> "><?php printf(__('All Topics %s', 'wonderflux'), '<span>' . bp_get_forum_topic_count() . '</span>'); ?> </a></li> <?php if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) { ?> <li id="forums-personal"><a href="<?php echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics'); ?> "><?php printf(__('My Topics %s', 'wonderflux'), '<span>' . bp_get_forum_topic_count_for_user(bp_loggedin_user_id()) . '</span>'); ?> </a></li>
</div> </form> <?php do_action('bp_before_topics'); ?> <form action="" method="post" id="forums-directory-form" class="dir-form"> <div class="item-list-tabs" role="navigation"> <ul> <li class="selected" id="forums-all"><a href="<?php echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug()); ?> "><?php printf(__('All Topics <span>%s</span>', 'T20'), bp_get_forum_topic_count()); ?> </a></li> <?php if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) { ?> <li id="forums-personal"><a href="<?php echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics'); ?> "><?php printf(__('My Topics <span>%s</span>', 'T20'), bp_get_forum_topic_count_for_user(bp_loggedin_user_id())); ?> </a></li>
?> <?php } ?> </div> <form action="" method="post" id="forums-directory-form" class="dir-form"> <div class="item-list-tabs"> <ul> <li class="selected" id="forums-all"><a href="<?php bp_root_domain(); ?> "><?php printf(__('All Topics (%s)', 'buddypress'), bp_get_forum_topic_count()); ?> </a></li> <?php if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) { ?> <li id="forums-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/'; ?> "><?php printf(__('My Topics (%s)', 'buddypress'), bp_get_forum_topic_count_for_user(bp_loggedin_user_id())); ?> </a></li> <?php }
</div> </form> <?php do_action('bp_before_topics'); ?> <form action="" method="post" id="forums-directory-form" class="dir-form"> <div class="item-list-tabs" role="navigation"> <ul> <li class="selected" id="forums-all"><a href="<?php echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug()); ?> "><?php printf(__('All Topics <span>%s</span>', 'logicalboneshug'), bp_get_forum_topic_count()); ?> </a></li> <?php if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) { ?> <li id="forums-personal"><a href="<?php echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics'); ?> "><?php printf(__('My Topics <span>%s</span>', 'logicalboneshug'), bp_get_forum_topic_count_for_user(bp_loggedin_user_id())); ?> </a></li>
*/ do_action('bp_before_topics'); ?> <form action="" method="post" id="forums-directory-form" class="dir-form"> <div class="item-list-tabs" aria-label="<?php esc_attr_e('Forums directory main navigation', 'buddypress'); ?> " role="navigation"> <ul> <li class="selected" id="forums-all"><a href="<?php echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug()); ?> "><?php printf(__('All Topics %s', 'buddypress'), '<span>' . bp_get_forum_topic_count() . '</span>'); ?> </a></li> <?php if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) { ?> <li id="forums-personal"><a href="<?php echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics'); ?> "><?php printf(__('My Topics %s', 'buddypress'), '<span>' . bp_get_forum_topic_count_for_user(bp_loggedin_user_id()) . '</span>'); ?> </a></li>