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


PHP bp_get_total_blog_count函数代码示例

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


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

示例1: esc_attr_e

	<form action="" method="post" id="blogs-directory-form" class="dir-form">

		<div class="item-list-tabs" aria-label="<?php 
esc_attr_e('Sites directory main navigation', 'buddypress');
?>
" role="navigation">
			<ul>
				<li class="selected" id="blogs-all"><a href="<?php 
bp_root_domain();
?>
/<?php 
bp_blogs_root_slug();
?>
"><?php 
printf(__('All Sites %s', 'buddypress'), '<span>' . bp_get_total_blog_count() . '</span>');
?>
</a></li>

				<?php 
if (is_user_logged_in() && bp_get_total_blog_count_for_user(bp_loggedin_user_id())) {
    ?>

					<li id="blogs-personal"><a href="<?php 
    echo bp_loggedin_user_domain() . bp_get_blogs_slug();
    ?>
"><?php 
    printf(__('My Sites %s', 'buddypress'), '<span>' . bp_get_total_blog_count_for_user(bp_loggedin_user_id()) . '</span>');
    ?>
</a></li>
开发者ID:CompositeUK,项目名称:clone.BuddyPress,代码行数:29,代码来源:index.php

示例2: bp_directory_blogs_search_form

				<?php 
bp_directory_blogs_search_form();
?>

			</div><!-- #blog-dir-search -->

			<div class="item-list-tabs" role="navigation">
				<ul>
					<li class="selected" id="blogs-all"><a href="<?php 
bp_root_domain();
?>
/<?php 
bp_blogs_root_slug();
?>
"><?php 
printf(__('All Sites <span>%s</span>', 'buddypress'), bp_get_total_blog_count());
?>
</a></li>

					<?php 
if (is_user_logged_in() && bp_get_total_blog_count_for_user(bp_loggedin_user_id())) {
    ?>

						<li id="blogs-personal"><a href="<?php 
    echo bp_loggedin_user_domain() . bp_get_blogs_slug();
    ?>
"><?php 
    printf(__('My Sites <span>%s</span>', 'buddypress'), bp_get_total_blog_count_for_user(bp_loggedin_user_id()));
    ?>
</a></li>
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:30,代码来源:index.php

示例3: bp_total_blog_count

/**
 * Output the total number of blogs on the site.
 */
function bp_total_blog_count()
{
    echo bp_get_total_blog_count();
}
开发者ID:AceMedia,项目名称:BuddyPress,代码行数:7,代码来源:bp-blogs-template.php

示例4: do_action

			<div class="row">	
				<?php 
do_action('bp_before_directory_blogs_content');
?>
					<div class="col-md-9 col-sm-8">	

			<div class="item-list-tabs" role="navigation">
				<ul>
					<li class="selected" id="blogs-all"><a href="<?php 
bp_root_domain();
?>
/<?php 
bp_blogs_root_slug();
?>
"><?php 
printf(__('All Sites <span>%s</span>', 'vibe'), bp_get_total_blog_count());
?>
</a></li>

					<?php 
if (is_user_logged_in() && bp_get_total_blog_count_for_user(bp_loggedin_user_id())) {
    ?>

						<li id="blogs-personal"><a href="<?php 
    echo bp_loggedin_user_domain() . bp_get_blogs_slug();
    ?>
"><?php 
    printf(__('My Sites <span>%s</span>', 'vibe'), bp_get_total_blog_count_for_user(bp_loggedin_user_id()));
    ?>
</a></li>
开发者ID:akshayxhtmljunkies,项目名称:brownglock,代码行数:30,代码来源:index.php

示例5: do_action

					<form action="" method="post" id="blogs-directory-form" class="dir-form">
						<div class="row">	
							<div class="col-md-3 col-sm-4">
								<?php 
do_action('bp_before_directory_blogs_content');
?>
								<div class="item-list-tabs" role="navigation">
									<ul>
										<li class="selected" id="blogs-all"><a href="<?php 
bp_root_domain();
?>
/<?php 
bp_blogs_root_slug();
?>
"><?php 
printf(__('All Sites <span>%s</span>', 'wplms_modern'), bp_get_total_blog_count());
?>
</a></li>

										<?php 
if (is_user_logged_in() && bp_get_total_blog_count_for_user(bp_loggedin_user_id())) {
    ?>

											<li id="blogs-personal"><a href="<?php 
    echo bp_loggedin_user_domain() . bp_get_blogs_slug();
    ?>
"><?php 
    printf(__('My Sites <span>%s</span>', 'wplms_modern'), bp_get_total_blog_count_for_user(bp_loggedin_user_id()));
    ?>
</a></li>
开发者ID:nikitansk,项目名称:devschool,代码行数:30,代码来源:index.php

示例6: widget

    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', empty($instance['title']) ? 'Blogs' : $instance['title']);
        ?>
	    <?php 
        echo $before_widget;
        echo $before_title . $title . $after_title;
        ?>
		    <form action="" method="post" id="blogs-directory-form" class="dir-form">

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

			    <div class="item-list-tabs">
				    <ul>
					    <li class="selected menulist" id="blogs-all"><a href="<?php 
        bp_root_domain();
        ?>
"><?php 
        printf(__('All Blogs (%s)', 'buddypress'), bp_get_total_blog_count());
        ?>
</a></li>

					    <?php 
        if (is_user_logged_in() && bp_get_total_blog_count_for_user(bp_loggedin_user_id())) {
            ?>
						    <li class="menulist" id="blogs-personal">
                            	|
                                <a href="<?php 
            echo bp_loggedin_user_domain() . BP_BLOGS_SLUG . '/my-blogs/';
            ?>
"><?php 
            printf(__('My Blogs (%s)', 'buddypress'), bp_get_total_blog_count_for_user(bp_loggedin_user_id()));
            ?>
</a>
                            </li>
					    <?php 
        }
        ?>

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

					    <li id="blogs-order-select" class="last filter">
							<?php 
        _e('Order By:', 'buddypress');
        ?>
                            <select>
                                <option value="active"><?php 
        _e('Last Active', 'buddypress');
        ?>
</option>
                                <option value="newest"><?php 
        _e('Newest', 'buddypress');
        ?>
</option>
                                <option value="alphabetical"><?php 
        _e('Alphabetical', 'buddypress');
        ?>
</option>
            
                                <?php 
        do_action('bp_blogs_directory_order_options');
        ?>
                            </select>
					    </li>
				    </ul>
			    </div>
			    
                <div id="blogs-dir-list" class="blogs dir-list">
				    <?php 
        locate_template(array('blogs/blogs-loop.php'), true);
        ?>
			    </div>

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

			    <?php 
        wp_nonce_field('directory_blogs', '_wpnonce-blogs-filter');
        ?>

		    </form>
	    <?php 
        echo $after_widget;
    }
开发者ID:CoordCulturaDigital-Minc,项目名称:cdigital2014,代码行数:90,代码来源:widget-blogs.php

示例7: do_action

do_action('bp_before_directory_blogs_content');
?>
	
				<div id="blog-dir-search" class="dir-search">
					<?php 
bp_directory_blogs_search_form();
?>
				</div><!-- #blog-dir-search -->
	
				<div class="item-list-tabs">
					<ul>
						<li class="selected" id="blogs-all"><a href="<?php 
bp_root_domain();
?>
"><?php 
printf(__('All Blogs <span class="badge">%s</span>', 'buddypress'), bp_get_total_blog_count());
?>
</a></li>
	
						<?php 
if (is_user_logged_in() && bp_get_total_blog_count_for_user(bp_loggedin_user_id())) {
    ?>
							<li id="blogs-personal"><a href="<?php 
    echo bp_loggedin_user_domain() . BP_BLOGS_SLUG . '/my-blogs/';
    ?>
"><?php 
    printf(__('My Blogs <span class="badge">%s</span>', 'buddypress'), bp_get_total_blog_count_for_user(bp_loggedin_user_id()));
    ?>
</a></li>
						<?php 
}
开发者ID:schiz,项目名称:scrollax,代码行数:31,代码来源:index-blogs.php

示例8: do_action

do_action('bp_before_directory_blogs_content');
?>

			<div id="blog-dir-search" class="dir-search">
				<?php 
bp_directory_blogs_search_form();
?>
			</div><!-- #blog-dir-search -->

			<div class="item-list-tabs">
				<ul>
					<li class="selected" id="blogs-all"><a href="<?php 
bp_root_domain();
?>
"><?php 
printf(__('All Blogs (%s)', 'buddypress'), bp_get_total_blog_count());
?>
</a></li>

					<?php 
if (is_user_logged_in() && bp_get_total_blog_count_for_user(bp_loggedin_user_id())) {
    ?>
						<li id="blogs-personal"><a href="<?php 
    echo bp_loggedin_user_domain() . BP_BLOGS_SLUG . '/my-blogs/';
    ?>
"><?php 
    printf(__('My Blogs (%s)', 'buddypress'), bp_get_total_blog_count_for_user(bp_loggedin_user_id()));
    ?>
</a></li>
					<?php 
}
开发者ID:angelmoratilla,项目名称:digressit,代码行数:31,代码来源:index.php

示例9: do_action

 */
do_action('bp_before_directory_blogs_tabs');
?>

	<form action="" method="post" id="blogs-directory-form" class="dir-form">

		<div class="item-list-tabs" role="navigation">
			<ul>
				<li class="selected" id="blogs-all"><a href="<?php 
bp_root_domain();
?>
/<?php 
bp_blogs_root_slug();
?>
"><?php 
printf(__('All Sites %s', 'wonderflux'), '<span>' . bp_get_total_blog_count() . '</span>');
?>
</a></li>

				<?php 
if (is_user_logged_in() && bp_get_total_blog_count_for_user(bp_loggedin_user_id())) {
    ?>

					<li id="blogs-personal"><a href="<?php 
    echo bp_loggedin_user_domain() . bp_get_blogs_slug();
    ?>
"><?php 
    printf(__('My Sites %s', 'wonderflux'), '<span>' . bp_get_total_blog_count_for_user(bp_loggedin_user_id()) . '</span>');
    ?>
</a></li>
开发者ID:bdacode,项目名称:Wonderflux,代码行数:30,代码来源:index.php


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