Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* @var $EM_Event EM_Event */
- $people = array();
- $EM_Bookings = $EM_Event->get_bookings();
- $status = array( 0, 4, 5 );
- if( count($EM_Bookings->bookings) > 0 ){
- ?>
- <ul class="event-attendees">
- <?php
- foreach( $EM_Bookings as $EM_Booking){ /* @var $EM_Booking EM_Booking */
- if( $EM_Booking->is_pending() && !in_array($EM_Booking->get_person()->ID, $people) ){
- $people[] = $EM_Booking->get_person()->ID;
- echo '<li>'. $EM_Booking->get_person()->get_name() .'</li>';
- }elseif( in_array($EM_Booking->booking_status, $status) && $EM_Booking->is_no_user() ){
- echo '<li>'. $EM_Booking->get_person()->get_name() .'</li>';
- }
- }
- ?>
- </ul>
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement