<?php /* * This file generates the input fields for an event with a single ticket and settings set to not show a table for single tickets (default setting) * If you want to add to this form this, you'd be better off hooking into the actions below. */ /* @var $EM_Ticket EM_Ticket */ /* @var $EM_Event EM_Event */ global $allowedposttags; do_action('em_booking_form_ticket_header', $EM_Ticket); //do not delete /* * This variable can be overriden, by hooking into the em_booking_form_tickets_cols filter and adding your collumns into this array. * Then, you should create a em_booking_form_ticket_field_arraykey action for your collumn data, which will pass a ticket and event object. */ $collumns = EM_Tickets::get_ticket_collumns($EM_Event); //array of collumn type => title foreach ($collumns as $type => $name) { ?> <?php //output collumn by type, or call a custom action switch ($type) { case 'type': if (!empty($EM_Ticket->ticket_description)) { //show description if there is one ?> <p class="ticket-desc"><?php echo wp_kses($EM_Ticket->ticket_description, $allowedposttags); ?> </p><?php }