Advertisement
valuser

local-members-loop

Mar 11th, 2016
541
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /**
  4.  * BuddyPress - Members Loop
  5.  *
  6.  * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
  7.  *
  8.  * @package BuddyPress
  9.  * @subpackage bp-legacy
  10.  */
  11.  
  12. ?>
  13.  
  14. <?php do_action( 'bp_before_members_loop' ); ?>
  15. <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/>";
  16. $jvar = "For a list of all IsOurPlace Community Members who have ever visited ";echo $jvar.$bvar."<mup>isourplace</mup>"."&nbsp;&nbsp;";?><a href="<?php echo get_blog_option( BP_ROOT_BLOG, 'siteurl') ?>/members/" style ="color: #1fb3dd; font-size: 12px; font-weight: normal;">&nbsp;click here</a></hl>
  17.  
  18. <?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&per_page='.sq_option('bp_members_perpage', 24) ) ) : ?>
  19. <?php $yvar= trailingslashit(network_site_url()); if (bp_has_members( array( 'include' => include_by_meta($yvar,'myplace'), 'type' => 'newest') )) : ?>
  20.  
  21.     <div id="pag-top" class="pagination">
  22.  
  23.         <div class="pag-count" id="member-dir-count-top">
  24.  
  25.             <?php bp_members_pagination_count(); ?>
  26.  
  27.         </div>
  28.  
  29.         <div class="pagination-links" id="member-dir-pag-top">
  30.  
  31.             <?php bp_members_pagination_links(); ?>
  32.  
  33.         </div>
  34.  
  35.     </div>
  36.  
  37.     <?php do_action( 'bp_before_directory_members_list' ); ?>
  38.  
  39.     <ul id="members-list" class="item-list row kleo-isotope masonry">
  40.  
  41.     <?php while ( bp_members() ) : bp_the_member(); ?>
  42.  
  43.         <li class="kleo-masonry-item">
  44.         <div class="member-inner-list animated animate-when-almost-visible bottom-to-top">
  45.         <div class="item-avatar rounded">
  46.           <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
  47.           <?php do_action('bp_member_online_status', bp_get_member_user_id()); ?>
  48.         </div>
  49.  
  50.         <div class="item">
  51.           <div class="item-title">
  52.             <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
  53.           </div>
  54.           <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
  55.          
  56.           <?php if ( bp_get_member_latest_update() ) : ?>
  57.             <span class="update"> <?php bp_member_latest_update(); ?></span>
  58.           <?php endif; ?>
  59.  
  60.          
  61.  
  62.           <?php do_action( 'bp_directory_members_item' ); ?>
  63.  
  64.           <?php
  65.            /***
  66.             * If you want to show specific profile fields here you can,
  67.             * but it'll add an extra query for each member in the loop
  68.             * (only one regardless of the number of fields you show):
  69.             *
  70.             * bp_member_profile_data( 'field=the field name' );
  71.             */
  72.           ?>
  73.         </div>
  74.  
  75.         <div class="action">
  76.  
  77.           <?php do_action( 'bp_directory_members_actions' ); ?>
  78.  
  79.         </div>
  80.  
  81.             </div><!--end member-inner-list-->
  82.         </li>
  83.  
  84.     <?php endwhile; ?>
  85.     <?php endif; ?>
  86.     </ul>
  87.  
  88.     <?php do_action( 'bp_after_directory_members_list' ); ?>
  89.  
  90.     <?php bp_member_hidden_fields(); ?>
  91.  
  92.     <div id="pag-bottom" class="pagination">
  93.  
  94.         <div class="pag-count" id="member-dir-count-bottom">
  95.  
  96.             <?php bp_members_pagination_count(); ?>
  97.  
  98.         </div>
  99.  
  100.         <div class="pagination-links" id="member-dir-pag-bottom">
  101.  
  102.             <?php bp_members_pagination_links(); ?>
  103.  
  104.         </div>
  105.  
  106.     </div>
  107.  
  108. <?php else: ?>
  109.  
  110.     <div id="message" class="info">
  111.         <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
  112.     </div>
  113.  
  114. <?php endif; ?>
  115.  
  116. <?php do_action( 'bp_after_members_loop' ); ?>
Advertisement
RAW Paste Data Copied
Advertisement