Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text">
- <?php echo apply_filters( 'FHEE__registration_page_attendee_information__attendee_information_pg', sprintf( __('In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.', 'event_espresso'), '<br />', '<span class="asterisk">*</span>' )); ?>
- </p>
- <?php
- $att_nmbr = 0;
- $prev_event = '';
- $prev_ticket = '';
- if ( count( $registrations ) > 0 ) {
- foreach ( $registrations as $registration ) {
- if ( $registration instanceof EE_Registration ) {
- $att_nmbr++;
- ?>
- <div id="spco-attendee-panel-dv-<?php echo $registration->reg_url_link();?>" class="spco-attendee-panel-dv spco-attendee-ticket-<?php echo $registration->ticket()->ID();?>">
- <?php if ( $registration->event()->ID() != $prev_event ) { ?>
- <h4 id="event_title-<?php echo $registration->event()->ID() ?>" class="big-event-title-hdr">
- <?php echo $registration->event()->name(); ?>
- </h4>
- <?php } ?>
- <?php if ( $registration->ticket()->ID() != $prev_ticket ) { ?>
- <?php if ( ! $revisit ) { ?>
- <div class="spco-ticket-info-dv small-text">
- <h5>
- <?php _e('Details', 'event_espresso');?>
- </h5>
- <table>
- <thead>
- <tr>
- <th scope="col" width="">
- <?php _e('Name and Description', 'event_espresso');?>
- </th>
- <th scope="col" width="7.5%" class="jst-rght">
- <?php _e('Qty', 'event_espresso');?>
- </th>
- <th scope="col" width="17.5%" class="jst-rght">
- <?php _e('Price', 'event_espresso');?>
- </th>
- <th scope="col" width="17.5%" class="jst-rght">
- <?php _e('Total', 'event_espresso');?>
- </th>
- </tr>
- </thead>
- <tbody>
- <?php echo $ticket_line_item[ $registration->ticket()->ID() ]; ?>
- </tbody>
- </table>
- <table>
- <tbody class="small-text">
- <?php
- $ticket = $registration->ticket();
- if ( $ticket->base_price() instanceof EE_Price ) {
- $running_total = $ticket->base_price()->amount();
- ?>
- <tr>
- <td colspan="3">Price Breakdown per ticket -- Base Price
- </td>
- <td class="jst-rght">
- <?php echo EEH_Template::format_currency( $running_total, false, false ); ?>
- </td>
- </tr>
- <?php
- } else {
- $running_total = 0;
- }
- // now add price modifiers
- foreach ( $ticket->price_modifiers() as $price_mod ) { ?>
- <tr>
- <td colspan="3">
- <?php echo '+ ' . $price_mod->name(); ?>
- </td>
- <?php if ( $price_mod->is_percent() ) { ?>
- <?php
- $new_sub_total = $running_total * ( $price_mod->amount() / 100 );
- $new_sub_total = $price_mod->is_discount() ? $new_sub_total * -1 : $new_sub_total;
- ?>
- <?php } else { ?>
- <?php $new_sub_total = $price_mod->is_discount() ? $price_mod->amount() * -1 : $price_mod->amount(); ?>
- <?php } ?>
- <td class="jst-rght">
- <?php echo EEH_Template::format_currency( $new_sub_total, false, false ); ?>
- </td>
- </tr>
- <?php } ?>
- <?php if ( $ticket->taxable() ) { ?>
- <?php foreach ( $ticket->get_ticket_taxes_for_admin() as $tax ) { ?>
- <tr>
- <td colspan="3">
- <?php echo '+ ' . $tax->name(); ?>
- </td>
- <?php $tax_amount = $running_total * ( $tax->amount() / 100 ); ?>
- <td class="jst-rght">
- <?php echo EEH_Template::format_currency( $tax_amount, false, false ); ?>
- </td>
- </tr>
- <?php } ?>
- <?php } ?>
- </tbody>
- </table>
- </div>
- <?php } ?>
- <?php } ?>
- <?php
- // ATTENDEE QUESTIONS
- $reg_form = EE_Template_Layout::get_subform_name( $registration->reg_url_link() );
- echo ${$reg_form};
- ?>
- </div>
- <?php
- $prev_event = $registration->event()->ID();
- $prev_ticket = $registration->ticket()->ID();
- } // if ( $registration instanceof EE_Registration )
- } // end foreach ( $registrations as $registration )
- echo $default_hidden_inputs;
- } // end if ( count( $registrations ) > 0 )
- ?>
- <div class="clearfix">
- <a id="spco-display-event-questions-lnk" class="act-like-link smaller-text hidden hide-if-no-js float-right" >
- <?php _e('show event questions', 'event_espresso'); ?>
- </a>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement