예제 #1
0
	<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
0
				<?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
0
/**
 * Output the total number of blogs on the site.
 */
function bp_total_blog_count()
{
    echo bp_get_total_blog_count();
}
예제 #4
0
			<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
0
					<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>
    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
0
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
0
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
0
파일: index.php 프로젝트: buddydev/bp-magic
				<?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>', 'bp-magic'), 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>', 'bp-magic'), bp_get_total_blog_count_for_user(bp_loggedin_user_id()));
    ?>
</a></li>
예제 #10
0
 */
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>
예제 #11
0
				<?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>', 'logicalboneshug'), 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>', 'logicalboneshug'), bp_get_total_blog_count_for_user(bp_loggedin_user_id()));
    ?>
</a></li>