Advertisement
Guest User

Untitled

a guest
Jan 20th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. <style>
  2. .event-attendees div{
  3. float:left;
  4. margin-right:10px;
  5. }
  6. </style>
  7. <?php
  8. /* @var $EM_Event EM_Event */
  9. $people = array();
  10. $EM_Bookings = $EM_Event->get_bookings();
  11. if( count($EM_Bookings->bookings) > 0 ){
  12. ?>
  13. <div class="event-attendees">
  14. <?php
  15. $guest_bookings = get_option('dbem_bookings_registration_disable');
  16. $guest_booking_user = get_option('dbem_bookings_registration_user');
  17. foreach( $EM_Bookings as $EM_Booking){
  18. if($EM_Booking->status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){
  19.  
  20. $user_info = get_userdata($EM_Booking->get_person()->ID);
  21. $rotax_category = xprofile_get_field_data(12, $EM_Booking->get_person()->ID);
  22.  
  23. $people[] = $EM_Booking->get_person()->ID;
  24. echo '<div>'. get_avatar($EM_Booking->get_person()->ID, 50) .'<br />
  25. '.bp_core_get_userlink( $EM_Booking->get_person()->ID).' <br />
  26. '.$rotax_category.'
  27. </div>';
  28.  
  29. }elseif($EM_Booking->status == 1 && $guest_bookings && $EM_Booking->get_person()->ID == $guest_booking_user ){
  30. echo '<li>'. get_avatar($EM_Booking->get_person()->ID, 50) .'</li>';
  31. }
  32. }
  33. ?>
  34. <div style="clear:both"></div>
  35. </div>
  36. <?php
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement