当前位置: 首页>>代码示例>>PHP>>正文


PHP bp_get_forum_topic_count函数代码示例

本文整理汇总了PHP中bp_get_forum_topic_count函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_get_forum_topic_count函数的具体用法?PHP bp_get_forum_topic_count怎么用?PHP bp_get_forum_topic_count使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了bp_get_forum_topic_count函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: do_action

				</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>
开发者ID:shieldsdesignstudio,项目名称:forefield,代码行数:30,代码来源:bp-forums.php

示例2: printf

				<?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>
开发者ID:n-sane,项目名称:zaroka,代码行数:30,代码来源:index.php

示例3: bp_forum_topic_count

/**
 * 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);
}
开发者ID:danielcoats,项目名称:schoolpress,代码行数:11,代码来源:bp-forums-template.php

示例4: do_action

		</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>
开发者ID:jason-herndon,项目名称:bas-intranet,代码行数:30,代码来源:index.php

示例5: do_action

 * 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>
开发者ID:bdacode,项目名称:Wonderflux,代码行数:30,代码来源:index.php

示例6: do_action

		</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>
开发者ID:sekane81,项目名称:ratoninquietoweb,代码行数:30,代码来源:index.php

示例7: bp_root_domain

    ?>

				<?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 
}
开发者ID:angelmoratilla,项目名称:digressit,代码行数:31,代码来源:index.php

示例8: do_action

 */
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>
开发者ID:CompositeUK,项目名称:clone.BuddyPress,代码行数:30,代码来源:index.php


注:本文中的bp_get_forum_topic_count函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。