本文整理汇总了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>
示例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>
示例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();
}
示例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>
示例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>
示例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;
}
示例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
}
示例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
}
示例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>