Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text">
  2. <?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>' )); ?>
  3. </p>
  4. <?php
  5. $att_nmbr = 0;
  6. $prev_event = '';
  7. $prev_ticket = '';
  8. if ( count( $registrations ) > 0 ) {
  9. foreach ( $registrations as $registration ) {
  10. if ( $registration instanceof EE_Registration ) {
  11. $att_nmbr++;
  12. ?>
  13. <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();?>">
  14. <?php if ( $registration->event()->ID() != $prev_event ) { ?>
  15. <h4 id="event_title-<?php echo $registration->event()->ID() ?>" class="big-event-title-hdr">
  16. <?php echo $registration->event()->name(); ?>
  17. </h4>
  18. <?php } ?>
  19. <?php if ( $registration->ticket()->ID() != $prev_ticket ) { ?>
  20. <?php if ( ! $revisit ) { ?>
  21. <div class="spco-ticket-info-dv small-text">
  22. <h5>
  23. <?php _e('Details', 'event_espresso');?>
  24. </h5>
  25. <table>
  26. <thead>
  27. <tr>
  28. <th scope="col" width="">
  29. <?php _e('Name and Description', 'event_espresso');?>
  30. </th>
  31. <th scope="col" width="7.5%" class="jst-rght">
  32. <?php _e('Qty', 'event_espresso');?>
  33. </th>
  34. <th scope="col" width="17.5%" class="jst-rght">
  35. <?php _e('Price', 'event_espresso');?>
  36. </th>
  37. <th scope="col" width="17.5%" class="jst-rght">
  38. <?php _e('Total', 'event_espresso');?>
  39. </th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. <?php echo $ticket_line_item[ $registration->ticket()->ID() ]; ?>
  44. </tbody>
  45. </table>
  46. <table>
  47. <tbody class="small-text">
  48. <?php
  49. $ticket = $registration->ticket();
  50. if ( $ticket->base_price() instanceof EE_Price ) {
  51. $running_total = $ticket->base_price()->amount();
  52. ?>
  53. <tr>
  54. <td colspan="3">Price Breakdown per ticket -- Base Price
  55. </td>
  56. <td class="jst-rght">
  57. <?php echo EEH_Template::format_currency( $running_total, false, false ); ?>
  58. </td>
  59. </tr>
  60. <?php
  61. } else {
  62. $running_total = 0;
  63. }
  64. // now add price modifiers
  65. foreach ( $ticket->price_modifiers() as $price_mod ) { ?>
  66. <tr>
  67. <td colspan="3">
  68. <?php echo '+ ' . $price_mod->name(); ?>
  69. </td>
  70. <?php if ( $price_mod->is_percent() ) { ?>
  71. <?php
  72. $new_sub_total = $running_total * ( $price_mod->amount() / 100 );
  73. $new_sub_total = $price_mod->is_discount() ? $new_sub_total * -1 : $new_sub_total;
  74. ?>
  75. <?php } else { ?>
  76. <?php $new_sub_total = $price_mod->is_discount() ? $price_mod->amount() * -1 : $price_mod->amount(); ?>
  77. <?php } ?>
  78. <td class="jst-rght">
  79. <?php echo EEH_Template::format_currency( $new_sub_total, false, false ); ?>
  80. </td>
  81. </tr>
  82. <?php } ?>
  83.  
  84. <?php if ( $ticket->taxable() ) { ?>
  85. <?php foreach ( $ticket->get_ticket_taxes_for_admin() as $tax ) { ?>
  86. <tr>
  87. <td colspan="3">
  88. <?php echo '+ ' . $tax->name(); ?>
  89. </td>
  90. <?php $tax_amount = $running_total * ( $tax->amount() / 100 ); ?>
  91. <td class="jst-rght">
  92. <?php echo EEH_Template::format_currency( $tax_amount, false, false ); ?>
  93. </td>
  94. </tr>
  95.  
  96. <?php } ?>
  97. <?php } ?>
  98. </tbody>
  99. </table>
  100. </div>
  101. <?php } ?>
  102. <?php } ?>
  103. <?php
  104. // ATTENDEE QUESTIONS
  105. $reg_form = EE_Template_Layout::get_subform_name( $registration->reg_url_link() );
  106. echo ${$reg_form};
  107. ?>
  108. </div>
  109. <?php
  110. $prev_event = $registration->event()->ID();
  111. $prev_ticket = $registration->ticket()->ID();
  112. } // if ( $registration instanceof EE_Registration )
  113. } // end foreach ( $registrations as $registration )
  114. echo $default_hidden_inputs;
  115. } // end if ( count( $registrations ) > 0 )
  116. ?>
  117. <div class="clearfix">
  118. <a id="spco-display-event-questions-lnk" class="act-like-link smaller-text hidden hide-if-no-js float-right" >
  119. <?php _e('show&nbsp;event&nbsp;questions', 'event_espresso'); ?>
  120. </a>
  121. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement