Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p><?php echo get_option('dbem_bookings_form_msg_closed'); ?></p>
- <?php
- /*
- global $post;
- $countdown = get_post_meta($post->ID, 'Registration starts', true);
- if (strpos($countdown, 'ferg' ) !== false) {
- echo "<p>Registration starts ".$countdown.".</p>";
- }
- */
- global $EM_Event;
- $bookingsstart = "";
- foreach( $EM_Event->get_tickets()->tickets as $EM_Ticket ) {
- $bookingsstart .= $EM_Ticket->ticket_start;
- }
- $newdateformat = date("d M Y H:i:s", strtotime($bookingsstart));
- if ( time('Y-m-d H:i:s') > time( $bookingsstart ) ) {
- } else {
- $regstatus = "Registration will open ";
- $regstatus .= do_shortcode('[fergcorp_cdt_single date="'.$newdateformat.' CET"]');
- $regstatus .= ".";
- }
- echo $regstatus;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement