eventsmanager

page-checkout.php with login form

Sep 8th, 2020
669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. <?php
  2. /*
  3. * WARNING -This is a recently added template (2013-01-30), and is likly to change as we fine-tune things over the coming weeks/months, if at all possible try to use our hooks or CSS/jQuery to acheive your customizations
  4. * This page displays a checkout page when 'Multiple Bookings Mode' is in effect.
  5. * You can override the default display settings pages by copying this file to yourthemefolder/plugins/events-manager-pro/multiple-bookings/ and modifying it however you need.
  6. * For more information, see http://wp-events-plugin.com/documentation/using-template-files/
  7. */
  8. $EM_Multiple_Booking = EM_Multiple_Bookings::get_multiple_booking();
  9. if( empty($EM_Multiple_Booking->bookings) ){
  10. echo get_option('dbem_multiple_bookings_feedback_no_bookings');
  11. return;
  12. }
  13. ?>
  14. <div id="em-booking" class="em-booking <?php if( get_option('dbem_css_rsvp') ) echo 'css-booking'; ?>">
  15. <?php
  16. global $EM_Notices;
  17. echo $EM_Notices;
  18. do_action('em_checkout_form_before_summary', $EM_Multiple_Booking); //do not delete
  19. ?>
  20. <div class="em-cart-table-contents">
  21. <?php emp_locate_template('multiple-bookings/cart-table.php',true); ?>
  22. <?php
  23. if( !is_user_logged_in() && get_option('dbem_bookings_login_form') ){
  24. em_locate_template('forms/bookingform/login.php',true, array('EM_Event'=>$EM_Event));
  25. }
  26. ?>
  27. </div>
  28. <?php do_action('em_checkout_form_after_summary', $EM_Multiple_Booking); //do not delete ?>
  29.  
  30. <form id='em-booking-form' class="em-booking-form" name='booking-form' method='post' action='<?php echo apply_filters('em_checkout_form_action_url',''); ?>#em-booking'>
  31. <input type='hidden' name='action' value='emp_checkout'/>
  32. <input type='hidden' name='_wpnonce' value='<?php echo wp_create_nonce('emp_checkout'); ?>'/>
  33. <div class='em-booking-form-details'>
  34. <?php echo EM_Booking_Form::get_form(false, $EM_Multiple_Booking); ?>
  35. <?php do_action('em_checkout_form_footer', $EM_Multiple_Booking); //do not delete ?>
  36. <div class="em-booking-buttons">
  37. <?php if( preg_match('/https?:\/\//',get_option('dbem_multiple_bookings_submit_button')) ): //Settings have an image url (we assume). Use it here as the button.?>
  38. <input type="image" src="<?php echo get_option('dbem_multiple_bookings_submit_button'); ?>" class="em-booking-submit" id="em-booking-submit" />
  39. <?php else: //Display normal submit button ?>
  40. <input type="submit" class="em-booking-submit" id="em-booking-submit" value="<?php echo get_option('dbem_multiple_bookings_submit_button'); ?>" />
  41. <?php endif; ?>
  42. </div>
  43. <?php do_action('em_checkout_form_footer_after_buttons', $EM_Multiple_Booking); //do not delete ?>
  44. </div>
  45. <br style="clear:both;" />
  46. </form>
  47. </div>
  48. <?php if( !is_user_logged_in() && get_option('dbem_bookings_login_form') ){ ?>
  49. <style>
  50. div.em-booking-login {
  51. padding: 10px 10px 10px 20px;
  52. margin: 0px 0px -471px 341px;
  53. border-left: 1px solid black;
  54. }
  55. </style>
  56. <?php } ?>
Add Comment
Please, Sign In to add comment