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 
}
?>

						<?php 
do_action('bp_forums_directory_group_types');
?>

					</ul>
				</div>

				<div class="item-list-tabs" id="subnav" role="navigation">
Example #2
0
						<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>

							<?php do_action( 'bp_forums_directory_order_options' ) ?>
						</select>
					</li>
/**
 * Output the total topic count for a given user.
 *
 * @see bp_get_forum_topic_count_for_user() for description of parameters.
 *
 * @param int $user_id See {@link bp_get_forum_topic_count_for_user()}.
 */
function bp_forum_topic_count_for_user($user_id = 0)
{
    echo bp_get_forum_topic_count_for_user($user_id);
}
Example #4
0
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>

						<?php 
}
?>

						<?php 
do_action('bp_forums_directory_group_types');
?>

					</ul>
				</div>

				<div class="item-list-tabs" id="subnav" role="navigation">
Example #5
0
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>

				<?php 
}
?>

				<?php 
do_action('bp_forums_directory_group_types');
?>

			</ul>
		</div>

		<div class="item-list-tabs" id="subnav" role="navigation">
Example #6
0
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>

				<?php 
}
?>

				<?php 
/**
 * Fires inside the forum group types list.
 *
 * @since 1.2.0
 */
do_action('bp_forums_directory_group_types');
?>
Example #7
0
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>

						<?php 
}
?>

						<?php 
do_action('bp_forums_directory_group_types');
?>

					</ul>
				</div>

				<div class="item-list-tabs" id="subnav" role="navigation">
Example #8
0
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>

				<?php 
}
?>

				<?php 
/**
 * Fires inside the forum group types list.
 *
 * @since 1.2.0
 */
do_action('bp_forums_directory_group_types');
?>