Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * BuddyPress - Members Loop
- *
- * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
- *
- * @package BuddyPress
- * @subpackage bp-legacy
- */
- ?>
- <?php do_action( 'bp_before_members_loop' ); ?>
- <hl><?php $user_id = bp_get_member_user_id(); $ydata = get_user_meta($user_id, 'genre',true); $x = get_blog_option( BP_ROOT_BLOG, 'siteurl'); $array=parse_url(get_blog_option( BP_ROOT_BLOG, 'siteurl')); $array['host']=explode('.', $array['host']); $xvar = trailingslashit($x); $bvar = ucfirst( $array['host'][0]); $avar = "This a list of those who registered "; $cvar = " as their primary place.";echo $avar.$bvar.$cvar."<br/>";
- $jvar = "For a list of all IsOurPlace Community Members who have ever visited ";echo $jvar.$bvar."<mup>isourplace</mup>"." ";?><a href="<?php echo get_blog_option( BP_ROOT_BLOG, 'siteurl') ?>/members/" style ="color: #1fb3dd; font-size: 12px; font-weight: normal;"> click here</a></hl>
- <?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&per_page='.sq_option('bp_members_perpage', 24) ) ) : ?>
- <?php $yvar= trailingslashit(network_site_url()); if (bp_has_members( array( 'include' => include_by_meta($yvar,'myplace'), 'type' => 'newest') )) : ?>
- <div id="pag-top" class="pagination">
- <div class="pag-count" id="member-dir-count-top">
- <?php bp_members_pagination_count(); ?>
- </div>
- <div class="pagination-links" id="member-dir-pag-top">
- <?php bp_members_pagination_links(); ?>
- </div>
- </div>
- <?php do_action( 'bp_before_directory_members_list' ); ?>
- <ul id="members-list" class="item-list row kleo-isotope masonry">
- <?php while ( bp_members() ) : bp_the_member(); ?>
- <li class="kleo-masonry-item">
- <div class="member-inner-list animated animate-when-almost-visible bottom-to-top">
- <div class="item-avatar rounded">
- <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
- <?php do_action('bp_member_online_status', bp_get_member_user_id()); ?>
- </div>
- <div class="item">
- <div class="item-title">
- <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
- </div>
- <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
- <?php if ( bp_get_member_latest_update() ) : ?>
- <span class="update"> <?php bp_member_latest_update(); ?></span>
- <?php endif; ?>
- <?php do_action( 'bp_directory_members_item' ); ?>
- <?php
- /***
- * If you want to show specific profile fields here you can,
- * but it'll add an extra query for each member in the loop
- * (only one regardless of the number of fields you show):
- *
- * bp_member_profile_data( 'field=the field name' );
- */
- ?>
- </div>
- <div class="action">
- <?php do_action( 'bp_directory_members_actions' ); ?>
- </div>
- </div><!--end member-inner-list-->
- </li>
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- <?php do_action( 'bp_after_directory_members_list' ); ?>
- <?php bp_member_hidden_fields(); ?>
- <div id="pag-bottom" class="pagination">
- <div class="pag-count" id="member-dir-count-bottom">
- <?php bp_members_pagination_count(); ?>
- </div>
- <div class="pagination-links" id="member-dir-pag-bottom">
- <?php bp_members_pagination_links(); ?>
- </div>
- </div>
- <?php else: ?>
- <div id="message" class="info">
- <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
- </div>
- <?php endif; ?>
- <?php do_action( 'bp_after_members_loop' ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement