Exemple #1
0
 public function attendees_list()
 {
     if (!self::$attendees_list) {
         self::$attendees_list = Tribe__Tickets_Plus__Attendees_List::hook();
     }
     return self::$attendees_list;
 }
						<tr class="tribe-tickets-order_status-row">
							<td>
								<label for="tribe-tickets-order_status"><?php 
    echo esc_html_x('RSVP', 'order status label', 'event-tickets');
    ?>
:</label>
							</td>
							<td colspan="3">
								<?php 
    Tribe__Tickets__Tickets_View::instance()->render_rsvp_selector('attendee[order_status]', '');
    ?>
							</td>
						</tr>

						<?php 
    if (class_exists('Tribe__Tickets_Plus__Attendees_List') && !Tribe__Tickets_Plus__Attendees_List::is_hidden_on(get_the_ID())) {
        ?>
							<tr class="tribe-tickets-attendees-list-optout">
								<td colspan="4">
									<input type="checkbox" name="attendee[optout]" id="tribe-tickets-attendees-list-optout">
									<label for="tribe-tickets-attendees-list-optout"><?php 
        esc_html_e('Don\'t list me on the public attendee list', 'event-tickets');
        ?>
</label>
								</td>
							</tr>
						<?php 
    }
    ?>
					</table>
				</td>
Exemple #3
0
 /**
  * Outputs the attendee list checkbox
  *
  */
 public function output_attendee_list_checkbox($attendee_group, $post_id)
 {
     if (Tribe__Tickets_Plus__Attendees_List::is_hidden_on($post_id)) {
         return;
     }
     $first_attendee = reset($attendee_group);
     $args = array('attendee_group' => $attendee_group, 'post_id' => $post_id, 'first_attendee' => $first_attendee);
     if (doing_action('event_tickets_user_details_rsvp')) {
         $template_part = 'tickets-plus/attendee-list-checkbox-rsvp';
     } else {
         $template_part = 'tickets-plus/attendee-list-checkbox-tickets';
     }
     tribe_tickets_get_template_part($template_part, null, $args);
 }
Exemple #4
0
    // Fetch the actual Provider
    $provider = call_user_func(array($first_attendee['provider'], 'get_instance'));
    $order = call_user_func_array(array($provider, 'get_order_data'), array($order_id));
    ?>
			<li class="tribe-item" id="order-<?php 
    echo esc_html($order_id);
    ?>
">
				<div class="user-details">
					<p>
						<?php 
    printf(esc_html__('Order #%1$s: %2$s reserved by %3$s (%4$s) on %5$s', 'event-tickets-plus'), esc_html($order_id), sprintf(_n(esc_html('1 Ticket'), esc_html('%d Tickets'), count($attendees), 'event-tickets-plus'), count($attendees)), esc_attr($order['purchaser_name']), '<a href="mailto:' . esc_url($order['purchaser_email']) . '">' . esc_html($order['purchaser_email']) . '</a>', date_i18n(tribe_get_date_format(true), strtotime(esc_attr($order['purchase_time']))));
    ?>
					</p>
					<?php 
    if (!Tribe__Tickets_Plus__Attendees_List::is_hidden_on(get_the_ID())) {
        /**
         * Inject content into the Tickets User Details block on the orders page
         *
         * @param array $attendee_group Attendee array
         * @param WP_Post $post_id Post object that the tickets are tied to
         */
        do_action('event_tickets_user_details_tickets', $attendees, $post_id);
    }
    ?>
				</div>
				<ul class="tribe-tickets-list tribe-list">
					<?php 
    foreach ($attendees as $i => $attendee) {
        ?>
						<li class="tribe-item" id="ticket-<?php