![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/confenda.com/wp-content/themes/beevent/ |
<?php /** * The template for displaying Listing single page. * */ get_header(); if (have_posts()){ while (have_posts()) { the_post(); $event_sdate = get_post_meta(get_the_ID(), 'event-sdate', true); $event_edate = get_post_meta(get_the_ID(), 'event-edate', true); $cdate = strtotime(date('l jS F Y')); if($cdate < $event_sdate){ $status = __('Upcoming','beevent'); } if($cdate >= $event_sdate && $cdate <= $event_edate){ $status = __('Ongoing','beevent'); } if($cdate>$event_edate){ $status = __('Expired','beevent'); } $image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'beevent-blog-grid'); ?> <div id="eventshow" class="slideshow"> <div id="siderwidth" class="slides" style="background-image:url(<?php if ( isset($image[0]) ) { echo esc_url($image[0]); } ?>);"> <div class="banner-fixed"> <div class="container"> <div class="banner-content"> <div class="content"> <div class="banner-tagline text-center"> <h1><?php the_title(); ?></h1> <ul class="gt-information"> <li> <i class="fa fa-clock-o"></i> <span> <?php echo date( 'F j, Y', $event_sdate ).' - '.date( 'F j, Y', $event_edate ); ?> </span> </li> <li><i class="fa fa-map-marker"></i><span><?php $address = get_post_meta(get_the_ID(), 'event-loc', true); $add = explode(" ", $address); if ( ! empty($add) ) { echo esc_html($add[count($add)-2]." ".$add[count($add)-1],'beevent'); } ?></span></li> </ul> </div> </div> </div> </div> </div> <?php if ( $status == 'Upcoming' ) { ?> <div class="container countdown-tab" id="event-display"> <div class="countdown"> <div class="counter-sec"> <div class="countdown-counter half-width text-center"> <div class="timer"> <div class="countdown1 styled1"></div> </div> </div> <div class="countdown-btn half-width"><a class="btn btn-lg btn-danger1 js-target-scroll" href="#event-data"><?php echo esc_html('Book now', 'beevent'); ?></a></div> </div> </div> </div> <?php } if ( $status == 'Ongoing' ) { ?> <div class="container countdown-tab" id="event-display"> <div class="countdown"> <div class="counter-sec text-center"> <div class="countdown-btn full-width"><a class="btn btn-lg btn-danger1 js-target-scroll" href="#event-data"><?php echo esc_html_e('Book now', 'beevent'); ?></a></div> </div> </div> </div> <?php } if ( $status == 'Expired' ) { ?> <?php } ?> <script type="text/javascript"> <?php $countdown_timer = date('F j, Y', $event_sdate);?> var endDate = "<?php echo esc_html($countdown_timer,'beevent');?>"; //alert(endDate); $('.countdown1.styled1').countdown({ date: endDate, render: function(data) { if(this.leadingZeros(data.years, 2) == 0){ $(this.el).html("<div class='countdown-amount'>" + this.leadingZeros(data.days, 2) + " <span class='countdown-period'>Days</span></div><div class='countdown-amount'>" + this.leadingZeros(data.hours, 2) + " <span class='countdown-period'>Hours</span></div><div class='countdown-amount'>" + this.leadingZeros(data.min, 2) + " <span class='countdown-period'>Minutes</span></div><div class='countdown-amount'>" + this.leadingZeros(data.sec, 2) + " <span class='countdown-period'>Seconds</span></div>"); }else{ $(this.el).html("<div class='countdown-amount'>" + this.leadingZeros(data.years, 2) + " <span class='countdown-period'>Years</span></div><div class='countdown-amount'>" + this.leadingZeros(data.days, 2) + " <span class='countdown-period'>Days</span></div><div class='countdown-amount'>" + this.leadingZeros(data.hours, 2) + " <span class='countdown-period'>Hours</span></div><div class='countdown-amount'>" + this.leadingZeros(data.min, 2) + " <span class='countdown-period'>Minutes</span></div><div class='countdown-amount'>" + this.leadingZeros(data.sec, 2) + " <span class='countdown-period'>Seconds</span></div>"); } } }); </script> </div> </div> <div class="container" id="event-data"> <div class="row"> <div class="col-lg-8 col-md-12" > <?php if ( wp_is_mobile() ) { $eventDetailClass = 'hide-on-mobile'; } else { $eventDetailClass = 'hide-on-desktop'; } ?> <div class="event_detail <?php echo esc_attr( $eventDetailClass ); ?>"> <div class="content-box-module"> <div class="content-box-module-detail"> <ul class="gt-event-tabs gt-nav nav nav-tabs" id="myTab" role="tablist"> <?php if(!empty(get_the_content())) { ?> <li class="nav-item" role="presentation"> <button data-bs-toggle="tab" class="nav-link active" id="about-tab" data-bs-target="#gt-event-tab-0" type="button" role="tab" aria-controls="gt-event-tab-0" aria-selected="true"><?php echo esc_html_e('About', 'beevent'); ?></button> </li> <?php } $event_speaker_array = array(); $event_speaker_array = get_post_meta( get_the_ID(), 'event_speaker', true ); $event_speaker_array = ! empty($event_speaker_array) ? $event_speaker_array : array(); foreach($event_speaker_array as $event_speaker){ foreach($event_speaker as $event_speaker_id){ $event_speaker_ids[] = $event_speaker_id; } } if( isset($event_speaker_ids ) && !empty($event_speaker_ids)) { ?> <li class="nav-item" role="presentation"> <button data-bs-toggle="tab" class="nav-link" id="speaker-tab" data-bs-target="#gt-event-tab-1" type="button" role="tab" aria-controls="gt-event-tab-1" aria-selected="false"><?php echo esc_html_e('Speaker', 'beevent'); ?></button> </li> <?php } $event_speaker_array = array(); $schedule_content_arr = get_post_meta( get_the_ID(), 'schedule_content_arr', true ); $schedule_content_arr = unserialize( $schedule_content_arr ); $schedule_content_arr = ! empty($schedule_content_arr) ? $schedule_content_arr : array(); $scheduleCheckCount = 0; if ( isset( $schedule_content_arr ) && ! empty( $schedule_content_arr ) ) { foreach ( $schedule_content_arr as $days_key => $days_value ) { foreach ( $days_value['inner-list'] as $innerlist_key => $innerlist_value ) { if ( !empty( $innerlist_value['inner-time-input'] ) && $innerlist_value['inner-time-input'] != 'inner-time-input' ) { $scheduleCheckCount++; } } } if ( $scheduleCheckCount != 0 ) { ?> <li class="nav-item" role="presentation"> <button data-bs-toggle="tab" class="nav-link" id="schedule-tab" data-bs-target="#gt-event-tab-2" type="button" role="tab" aria-controls="gt-event-tab-2" aria-selected="false"><?php echo esc_html_e('Schedule', 'beevent'); ?></button> </li> <?php } } if ( ! empty( get_post_meta( get_the_ID(), 'tickets', true ) ) ) { ?> <li class="nav-item ticket" role="presentation"> <button data-bs-toggle="tab" class="nav-link" id="schedule-tab" data-bs-target="#gt-event-tab-3" type="button" role="tab" aria-controls="gt-event-tab-3" aria-selected="false"><?php echo esc_html_e('Tickets', 'beevent'); ?></button> </li > <?php } if(!empty(get_post_meta(get_the_ID(), 'event-loc', true))) { ?> <li class="nav-item" role="presentation"> <button data-bs-toggle="tab" class="nav-link" id="schedule-tab" data-bs-target="#gt-event-tab-4" type="button" role="tab" aria-controls="gt-event-tab-4" aria-selected="false"><?php echo esc_html_e('Venue', 'beevent'); ?></button> </li> <?php } if(!empty( $IDs = get_post_meta( $post->ID, 'gallery_image_ids', true ))){ ?> <li class="nav-item" role="presentation"> <button data-bs-toggle="tab" class="nav-link" id="schedule-tab" data-bs-target="#gt-event-tab-5" type="button" role="tab" aria-controls="gt-event-tab-7" aria-selected="false"><?php echo esc_html_e('Photos', 'beevent'); ?></button> </li> <?php } $event_testimonial_array = get_post_meta( get_the_ID(), 'event_testimonials', true ); if ( ! empty( $event_testimonial_array ) ) { ?> <li class="nav-item" role="presentation"> <button data-bs-toggle="tab" class="nav-link" id="schedule-tab" data-bs-target="#gt-event-tab-6" type="button" role="tab" aria-controls="gt-event-tab-7" aria-selected="false"><?php echo esc_html_e('Testimonials', 'beevent'); ?></button> </li> <?php } ?> </ul> </div> <div class="tab-content"> <div class="tab-pane fade show active" id="gt-event-tab-0" role="tabpanel" aria-labelledby="nav-gt-event-tab-1-tab"> <div class="content_eve"> <div class="content-box_body content_data"> <?php the_content(); ?> </div> <div class="event_content"> <div class="social-title"><?php echo esc_html_e('Share This Event', 'beevent'); ?></div> <ul class="social_share"> <?php $eventURL = urlencode(get_permalink()); $eventTitle = str_replace( ' ', '%20', get_the_title()); $eventThumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' ); $twitterURL = 'https://twitter.com/intent/tweet?text='.$eventTitle.'&url='.$eventURL.'&via=beevent'; $facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$eventURL; $googleURL = 'https://plus.google.com/share?url='.$eventURL; $pinterest = 'https://pinterest.com/pin/create/button/?url='.$eventURL; $linkedin = 'http://www.linkedin.com/shareArticle?mini=true&url='.$eventURL; $reddit = 'https://www.reddit.com/login?dest=https%3A%2F%2Fwww.reddit.com%2Fsubmit%3Ftitle%3D'.$eventTitle.'%26url%3D'.$eventURL; $stumbleupon = 'https://www.stumbleupon.com/submit?title='.$eventTitle.'&url='.$eventURL; $del = 'https://del.icio.us/login?log=out&provider=sharethis&title='.$eventTitle.'&url='.$eventURL.'&v=5'; ?> <li><a href="<?php echo esc_url($facebookURL); ?>" target="_blank"><i class="fa fa-facebook"></i></a></li> <li><a href="<?php echo esc_url($twitterURL); ?>" target="_blank"><i class="fa fa-twitter"></i></a></li> <li><a href="<?php echo esc_url($linkedin); ?>" target="_blank"><i class="fa fa-linkedin"></i></a></li> <li><a href="<?php echo esc_url( 'https://web.whatsapp.com/send?text='.$eventTitle.' '.$eventURL ); ?>" target="_blank"><i class="fa fa-whatsapp"></i><?php echo esc_html_e('WhatsApp', 'beevent'); ?> </a></li> </ul> </div> </div> </div> <div class="tab-pane fade" id="gt-event-tab-1" role="tabpanel" aria-labelledby="nav-gt-event-tab-1-tab"> <?php $style = get_post_meta( get_the_ID(), 'speaker_style', true ); $style = ! empty( $style ) ? $style : 'style1'; if ( $style == 'style1' ) { $event_speaker_array = array(); $event_speaker_ids = ''; $event_speaker_array = get_post_meta( get_the_ID(), 'event_speaker', true ); $event_speaker_array = ! empty($event_speaker_array) ? $event_speaker_array : array(); $loop = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', ) ); if ( ! empty( $event_speaker_array ) ) { foreach ( $event_speaker_array as $speaker_key => $speaker_value ) { $event_speaker_ids = $speaker_value; } } echo '<div class="row">'; while ( $loop->have_posts() ) : $loop->the_post(); if ( is_array( $event_speaker_ids ) && in_array( get_the_ID(), $event_speaker_ids ) ) { echo '<div class="col-md-6 speakers"> <div class="speaker-sec"> <div class="speaker-info-box text-center border-box">'; echo '<div class="spearker-img">'; if ( has_post_thumbnail() ): the_post_thumbnail('large', array('class' => 'img-responsive center-block')); else: echo "<div class='is-empty-box'></div>"; endif; echo '</div>'; echo '<div class="speaker-hover">'; echo '<div class="social-icons text-center">'; $facebook_link = get_post_meta(get_the_ID(),'Be_facebook_link', true ); if (!empty( $facebook_link)): echo '<a href="'.esc_url($facebook_link).'"><i class="fa fa-facebook-square" aria-hidden="true"></i></a>'; endif; $linkedin_link = get_post_meta(get_the_ID(),'Be_linkedin_link', true ); if (!empty( $linkedin_link)): echo '<a href="'.esc_url($linkedin_link).'"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a>'; endif; $twitter_link = get_post_meta(get_the_ID(),'Be_twitter_link', true ); if (!empty( $twitter_link)): echo '<a href="'.esc_url($twitter_link).'"><i class="fa fa-twitter-square" aria-hidden="true"></i></a>'; endif; $instagram_link = get_post_meta(get_the_ID(),'Be_instagram_link', true ); if (!empty( $instagram_link)): echo '<a href="'.esc_url($instagram_link).'"><i class="fa fa-instagram" aria-hidden="true"></i></a>'; endif; $whatsapp_link = get_post_meta(get_the_ID(),'Be_whatsapp_link', true ); if (!empty( $whatsapp_link)): echo '<a href="'.esc_url($whatsapp_link).'"><i class="fa fa-whatsapp" aria-hidden="true"></i></a>'; endif; echo '</div></div></div>'; echo '<div class="speaker-info">'; echo '<h5>'; the_title(); echo '</h5>'; $destination = get_post_meta(get_the_ID(),'Be_destination', true ); if (!empty( $destination)): echo '<h6>'.esc_html($destination).'</h6>'; endif; echo '</div></div></div>'; } endwhile; wp_reset_postdata(); echo "</div>"; } if ( $style == 'style2' ) { $event_speaker_array = array(); $event_speaker_ids = array(); $event_speaker_array = get_post_meta( get_the_ID(), 'event_speaker', true ); $event_speaker_array = ! empty($event_speaker_array) ? $event_speaker_array : array(); $loop = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', ) ); if ( ! empty( $event_speaker_array ) ) { foreach ( $event_speaker_array as $speaker_key => $speaker_value ) { $event_speaker_ids = $speaker_value; } } echo '<div class="row speakers_3">'; while ($loop->have_posts()) : $loop->the_post(); if(in_array(get_the_ID(), $event_speaker_ids)){ echo '<div class="col-md-6 speakers"> <div class="speaker-sec"> <div class="speaker-info-box text-center border-box">'; echo '<div class="spearker-img">'; if ( has_post_thumbnail() ): the_post_thumbnail('large', array('class' => 'img-responsive center-block')); else: echo "<div class='is-empty-box'></div>"; endif; echo '</div>'; echo '<div class="speaker-hover"> <div class="social-icons text-center">'; $facebook_link = get_post_meta(get_the_ID(),'Be_facebook_link', true ); if (!empty( $facebook_link)): echo '<a href="'.esc_url($facebook_link).'"><i class="fa fa-facebook-square" aria-hidden="true"></i></a>'; endif; $linkedin_link = get_post_meta(get_the_ID(),'Be_linkedin_link', true ); if (!empty( $linkedin_link)): echo '<a href="'.esc_url($linkedin_link).'"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a>'; endif; $twitter_link = get_post_meta(get_the_ID(),'Be_twitter_link', true ); if (!empty( $twitter_link)): echo '<a href="'.esc_url($twitter_link).'"><i class="fa fa-twitter-square" aria-hidden="true"></i></a>'; endif; $instagram_link = get_post_meta(get_the_ID(),'Be_instagram_link', true ); if (!empty( $instagram_link)): echo '<a href="'.esc_url($instagram_link).'"><i class="fa fa-instagram" aria-hidden="true"></i></a>'; endif; $whatsapp_link = get_post_meta(get_the_ID(),'Be_whatsapp_link', true ); if (!empty( $whatsapp_link)): echo '<a href="'.esc_url($whatsapp_link).'"><i class="fa fa-whatsapp" aria-hidden="true"></i></a>'; endif; echo '</div></div></div>'; echo '<div class="speaker-info">'; echo '<h5>'; the_title(); echo '</h5>'; $destination = get_post_meta(get_the_ID(),'Be_destination', true ); if (!empty( $destination)): echo '<h6>'.esc_html($destination).'</h6>'; endif; echo '</div></div></div>'; } endwhile; echo '</div>'; wp_reset_postdata(); } if ( $style == 'style3' ) { $event_speaker_array = array(); $event_speaker_ids = array(); $event_speaker_array = get_post_meta( get_the_ID(), 'event_speaker', true ); $event_speaker_array = ! empty($event_speaker_array) ? $event_speaker_array : array(); $loop = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', ) ); if ( ! empty( $event_speaker_array ) ) { foreach ( $event_speaker_array as $speaker_key => $speaker_value ) { $event_speaker_ids = $speaker_value; } } echo '<div class="row">'; while ( $loop->have_posts() ) : $loop->the_post(); if( in_array(get_the_ID(), $event_speaker_ids ) ) { echo '<div class="col-md-12 speakers"> <div class="speakers_wrap">'; if ( has_post_thumbnail() ): echo '<div class="our_speaker_img">'; the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block')); echo '</div>'; endif; echo '<div class="speakers_info">'; echo '<h5>'; the_title(); echo '</h5>'; $destination = get_post_meta(get_the_ID(),'Be_destination', true ); if (!empty( $destination)): echo '<small>'.esc_html($destination).'</small>'; endif; the_excerpt(); echo '</div> <div class="speakers_follow_us"> <ul>'; $facebook_link = get_post_meta(get_the_ID(),'Be_facebook_link', true ); if (!empty( $facebook_link)): echo '<li><a href="'.esc_url($facebook_link).'"><i class="fa fa-facebook-square" aria-hidden="true"></i></a></li>'; endif; $linkedin_link = get_post_meta(get_the_ID(),'Be_linkedin_link', true ); if (!empty( $linkedin_link)): echo '<li><a href="'.esc_url($linkedin_link).'"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a></li>'; endif; $twitter_link = get_post_meta(get_the_ID(),'Be_twitter_link', true ); if (!empty( $twitter_link)): echo '<li><a href="'.esc_url($twitter_link).'"><i class="fa fa-twitter-square" aria-hidden="true"></i></a></li>'; endif; $instagram_link = get_post_meta(get_the_ID(),'Be_instagram_link', true ); if (!empty( $instagram_link)): echo '<li><a href="'.esc_url($instagram_link).'"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>'; endif; $whatsapp_link = get_post_meta(get_the_ID(),'Be_whatsapp_link', true ); if (!empty( $whatsapp_link)): echo '<li><a href="'.esc_url($whatsapp_link).'"><i class="fa fa-whatsapp" aria-hidden="true"></i></a></li>'; endif; echo '</ul> </div> </div> </div>'; } endwhile; wp_reset_postdata(); echo '</div>'; } ?> </div> <div class="tab-pane fade" id="gt-event-tab-2" role="tabpanel" aria-labelledby="nav-gt-event-tab-2-tab"> <?php $schedule_style = get_post_meta( get_the_ID(), 'schedule_style', true ); $schedule_content_arr = get_post_meta( get_the_ID(), 'schedule_content_arr', true ); if ( ! empty( $schedule_content_arr ) ) { $schedule_content_arr = unserialize( $schedule_content_arr ); } else { $schedule_content_arr = ''; } if ( $schedule_style == 'style2' ) { ?> <div class="schedule_event"> <div class="schedule_style2"> <div class="schedule_info2"> <ul class="event eventsemi-tabs nav nav-tabs" role="tablist"> <?php $schedule_ul_count = 1; foreach ( $schedule_content_arr as $days_key => $days_value ) { ?> <li class="nav-item" role="presentation"> <button class="nav-link <?php if ( $schedule_ul_count == 1 ) { echo 'active'; } ?>" role="tab" data-bs-target="#day<?php echo esc_attr( $schedule_ul_count ); ?>" type="button" data-bs-toggle="tab" aria-controls="day<?php echo esc_attr( $schedule_ul_count ); ?>" aria-selected="<?php if ( $schedule_ul_count == 1 ) { echo esc_html('true','beevent'); } else { echo esc_attr( 'false'); } ?>"> <?php echo esc_html( 'Day', 'beevent' ).' '.$schedule_ul_count; ?> <span style="line-height: 10px;margin-top: 5px;"><?php echo isset( $days_value['inner-day-date'] ) ? date( 'l', strtotime( $days_value['inner-day-date'] ) ) : ''; ?></span> <span><?php echo isset( $days_value['inner-day-date'] ) ? $days_value['inner-day-date'] : ''; ?></span> </button> </li> <?php $schedule_ul_count++; } ?> </ul> <div id="my-tab-content" class="tab-content"> <?php $schedule_ul_count = 1; foreach ( $schedule_content_arr as $days_key => $days_value ) { ?> <!--Day 1 schedule--> <div class="tab-pane fade <?php if ( $schedule_ul_count == 1 ) { echo 'show active'; } ?>" id="day<?php echo esc_attr( $schedule_ul_count ); ?>"> <?php foreach ( $days_value['inner-list'] as $innerlist_key => $innerlist_value ) { ?> <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'post_status' => 'publish', 'posts_per_page' =>-1, 'post__in' => array( $innerlist_value['inner-select-input'] ) ) ); ?> <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); $day1id = rand( 10, 10000000 ); ?> <div class="conference-time-list"> <div class="conf-user-time"> <?php if ( isset( $innerlist_value['inner-time-input'] ) && !empty( $innerlist_value['inner-time-input'] )): echo '<span class="time">'.$innerlist_value['inner-time-input'].'</span>'; endif; ?> </div> <div class="conf-user-img"> <?php if ( has_post_thumbnail() ): the_post_thumbnail('medium', array('class' => 'img-responsive center-block')); else: echo "<div class='is-empty-box'></div>"; endif;?> </div> <div class="conf-user-info"> <h5><?php the_title();?></h5> <?php $destination = get_post_meta(get_the_ID(),'Be_destination', true ); if (!empty( $destination)): echo '<h6>'.$destination.'</h6>'; endif;?> <a href="#collapse<?php echo esc_html($day1id);?>" data-bs-toggle="collapse" role="button" class="conf-close menu-down" aria-expanded="false" aria-controls="collapse<?php echo esc_html($day1id);?>"> <i class="fa fa-angle-right" aria-hidden="true"></i> </a> <div class="collapse in" id="collapse<?php echo esc_html($day1id);?>"> <div class="conf-user-content"> <?php the_excerpt();?> </div> </div> </div> </div> <?php endwhile; wp_reset_query(); } ?> </div> <!--/Day 1 schedule--> <?php $schedule_ul_count++; } ?> </div> </div> </div> </div> <?php } elseif ( $schedule_style == 'style3' ) { ?> <div class="schedule_info3 schedule_style3"> <ul class="nav nav-tabs" id="myTab3" role="tablist"> <?php $schedule_ul_count = 1; foreach ( $schedule_content_arr as $days_key => $days_value ) { ?> <li class="nav-item" role="presentation"> <button data-bs-toggle="tab" class="nav-link <?php if ( $schedule_ul_count == 1 ) { echo 'active'; } ?>" id="day<?php echo esc_attr( $schedule_ul_count ); ?>-tab" data-bs-target="#day<?php echo esc_attr( $schedule_ul_count ); ?>" type="button" role="tab" aria-controls="day<?php echo esc_attr( $schedule_ul_count ); ?>" aria-selected="<?php if ( $schedule_ul_count == 1 ) { echo esc_html('true','beevent'); } else { echo esc_attr( 'false'); } ?>"> <?php echo esc_html( 'Day', 'beevent' ).' '.$schedule_ul_count; ?> <span style="line-height: 10px;margin-top: 5px;"><?php echo isset( $days_value['inner-day-date'] ) ? date( 'l', strtotime( $days_value['inner-day-date'] ) ) : ''; ?></span> <span><?php echo isset( $days_value['inner-day-date'] ) ? $days_value['inner-day-date'] : ''; ?></span> </button> </li> <?php $schedule_ul_count++; } ?> </ul> <div id="my-tab-content" class="tab-content"> <?php $schedule_ul_count = 1; foreach ( $schedule_content_arr as $days_key => $days_value ) { ?> <!--Day 1 schedule--> <div class="tab-pane fade <?php if ( $schedule_ul_count == 1 ) { echo 'show active'; } ?>" id="day<?php echo esc_attr( $schedule_ul_count ); ?>"> <?php foreach ( $days_value['inner-list'] as $innerlist_key => $innerlist_value ) { ?> <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'post_status' => 'publish', 'posts_per_page' =>-1, 'post__in' => array( $innerlist_value['inner-select-input'] ) ) ); ?> <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); $day1id = rand( 10, 10000000 ); ?> <div class="conference-time-list"> <div class="conf-user-img"> <?php if ( has_post_thumbnail() ): the_post_thumbnail('medium', array('class' => 'img-responsive center-block wp-post-image')); else: echo "<div class='is-empty-box'></div>"; endif;?> </div> <div class="conf-user-info"> <h5><?php the_title();?> <span class="time"> <?php if ( isset( $innerlist_value['inner-time-input'] ) && !empty( $innerlist_value['inner-time-input'] )): echo '<span class="time">'.$innerlist_value['inner-time-input'].'</span>'; endif; ?> </span> </h5> <?php $destination = get_post_meta(get_the_ID(),'Be_destination', true ); if (!empty( $destination)): echo '<h6>'.$destination.'</h6>'; endif;?> <a href="#collapse<?php echo esc_html($day1id);?>" data-bs-toggle="collapse" role="button" class="conf-close menu-down" aria-expanded="false" aria-controls="collapse<?php echo esc_html($day1id);?>"> <i class="fa fa-angle-right" aria-hidden="true"></i> </a> <div class="collapse" id="collapse<?php echo esc_html($day1id);?>"> <div class="conf-user-content"> <?php the_excerpt();?> </div> </div> </div> </div> <?php endwhile; wp_reset_query(); } ?> </div> <!--/Day 1 schedule--> <?php $schedule_ul_count++; } ?> </div> </div> <?php } else { ?> <div class="col-sm-12 col-lg-12 col-lg-offset-2 padding_none schedule_style_1_single"> <div class="day-time-m"> <ul class="nav nav-tabs" id="myTab" role="tablist"> <?php $schedule_ul_count = 1; foreach ( $schedule_content_arr as $days_key => $days_value ) { ?> <li class="nav-item" role="presentation"> <button data-bs-toggle="tab" class="nav-link <?php if ( $schedule_ul_count == 1 ) { echo 'active'; } ?>" id="day<?php echo esc_attr( $schedule_ul_count ); ?>-tab" data-bs-target="#day<?php echo esc_attr( $schedule_ul_count ); ?>" type="button" role="tab" aria-controls="day<?php echo esc_attr( $schedule_ul_count ); ?>" aria-selected="<?php if ( $schedule_ul_count == 1 ) { echo esc_html('true','beevent'); } else { echo esc_attr( 'false'); } ?>"> <?php echo esc_html( 'Day', 'beevent' ).' '.$schedule_ul_count; ?> <span style="line-height: 10px;margin-top: 5px;"><?php echo isset( $days_value['inner-day-date'] ) ? date( 'l', strtotime( $days_value['inner-day-date'] ) ) : ''; ?></span> <span><?php echo isset( $days_value['inner-day-date'] ) ? $days_value['inner-day-date'] : ''; ?></span> </button> </li> <?php $schedule_ul_count++; } ?> </ul> </div> <div id="my-tab-content" class="tab-content"> <?php $schedule_ul_count = 1; foreach ( $schedule_content_arr as $days_key => $days_value ) { ?> <!--Day 1 schedule--> <div class="tab-pane fade show <?php if ( $schedule_ul_count == 1 ) { echo 'show active'; } ?>" id="day<?php echo esc_attr( $schedule_ul_count ); ?>"> <?php foreach ( $days_value['inner-list'] as $innerlist_key => $innerlist_value ) { ?> <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'post_status' => 'publish', 'posts_per_page' =>-1, 'post__in' => array( $innerlist_value['inner-select-input'] ) ) ); ?> <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); $day1id = rand( 10, 10000000 ); ?> <div class="conference-time-list"> <div class="conf-user-time"> <span class="time"> <?php if ( isset( $innerlist_value['inner-time-input'] ) && !empty( $innerlist_value['inner-time-input'] )): echo '<span class="time">'.$innerlist_value['inner-time-input'].'</span>'; endif; ?> </span> </div> <div class="conf-user-img"> <?php if ( has_post_thumbnail() ): the_post_thumbnail('medium', array('class' => 'img-responsive center-block wp-post-image')); else: echo "<div class='is-empty-box'></div>"; endif;?> </div> <div class="conf-user-info"> <h5><?php the_title();?></h5> <?php $destination = get_post_meta(get_the_ID(),'Be_destination', true ); if (!empty( $destination)): echo '<h6>'.$destination.'</h6>'; endif;?> <a href="#collapse<?php echo esc_html($day1id);?>" data-bs-toggle="collapse" role="button" class="conf-close menu-down" aria-expanded="false" aria-controls="collapse<?php echo esc_html($day1id);?>"> <i class="fa fa-angle-right" aria-hidden="true"></i> </a> <div class="collapse" id="collapse<?php echo esc_html($day1id);?>"> <div class="conf-user-content"> <?php the_excerpt();?> </div> </div> </div> </div> <?php endwhile; wp_reset_query(); } ?> </div> <!--/Day 1 schedule--> <?php $schedule_ul_count++; } ?> </div> </div> <?php } ?> </div> <div class="tab-pane fade" id="gt-event-tab-3" role="tabpanel" aria-labelledby="nav-gt-event-tab-3-tab"> <div class="event_tickets row"> <?php if($status==__('Expired','beevent')) { ?> <p> <b><?php esc_html_e('*Note:','beevent'); ?></b> <?php esc_html_e('Event is','beevent'); ?> <span><?php esc_html_e('expired:','beevent'); ?></span>, <?php esc_html_e('Ticket booking is not available','beevent'); ?> </p> <?php } $ticket_style = get_post_meta( get_the_ID(), 'ticket-style', true ); $url = get_the_permalink(); $order = new WP_Query(array('post_type' => 'wpsc_cart_orders', 'post_status' => 'publish')); while ($order->have_posts() ) : $order->the_post(); $orderss = get_post_meta(get_the_ID(), 'wpsc_cart_items' , true); foreach($orderss as $orders){ if($orders['cartLink'] == $url){ if($field["ticket_category"] == $orders['name']){ $quan += $orders['quantity']; $qua = $quan; $quantit[] = $orders['quantity']; } else { $quan = 0; } } }endwhile; wp_reset_query(); $total = $field['ticket_quantity']; $remaining = $total - $qua; if ( $ticket_style == "style1" ) { $repeatable_fields = get_post_meta(get_the_ID(), 'tickets', true); if($repeatable_fields){ $i=0; foreach ( $repeatable_fields as $field ) { $i++; ?> <div class="pay_services2"> <div class="regi-price-table border-box"> <div class="table-price-box secondary-bg"> <h5><?php echo esc_html($field["ticket_category"]); ?></h5> <div class="regi-price-box"> <?php echo '$'.esc_html($field["ticket_price"]); ?> </div> <p class="available" style="color: #fff; padding: 0; margin: 0;"><?php echo esc_html_e('Available Ticket :', 'beevent'); ?><?php echo esc_html($field['ticket_quantity'],'beevent'); ?> </p> <?php if($status==__('Expired','beevent')) { ?> <a href="#" class="btn disable-btn" disabled> <?php echo esc_html_e('Buy Now','beevent'); ?></a> <?php }else{ echo do_shortcode('[wp_cart_button name="'.$field["ticket_category"].'" price="'.$field['ticket_price'].'" post="'.get_the_ID().'"]' ); } ?> <p class="remaining" style="color: #fff; padding: 0; margin: 0;"> <?php echo esc_html_e('Remaining Tickets :', 'beevent'); ?> <?php echo esc_html($remaining,'beevent'); ?> </p> </div> <div class="table-price-detail"> <ul> <?php $desc= $field['ticket_desc']; $strs = explode (",", $desc); foreach($strs as $str){ ?> <li><i class="fa fa-check"></i><span><?php echo esc_html($str,'beevent');; ?></span></li> <?php } ?> </ul> </div> </div> </div> <?php } } } if ( $ticket_style == 'style2' ) { $repeatable_fields = get_post_meta(get_the_ID(), 'tickets', true); if($repeatable_fields){ $i=0; foreach ( $repeatable_fields as $field ) { $i++; ?> <div class="pay_services col-sm-6"> <div class="regi-price-table border-box"> <div class="table-price-box secondary-bg"> <h5><?php echo esc_html($field["ticket_category"]); ?></h5> <div class="regi-price-box"> <p><?php echo '$'.esc_html($field['ticket_price']); ?> </p> </div> </div> <div class="table-price-detail"> <ul class="desc"> <?php $desc= $field['ticket_desc']; $strs = explode (",", $desc); foreach($strs as $str){ ?> <li><i class="fa fa-check"></i><span><?php echo esc_html($str,'beevent'); ?></span></li> <?php } ?> </ul> <div class="pay-btn text-center"> <p class="available"><?php echo esc_html_e('Available Ticket :', 'beevent'); ?><?php echo esc_html($field['ticket_quantity'],'beevent'); ?> </p> <?php $url = get_the_permalink(); if($status==__('Expired','beevent')) { ?> <a href="#" class="btn disable-btn" disabled> <?php echo esc_html_e('Buy Now','beevent'); ?></a> <?php }else{ echo do_shortcode('[wp_cart_button name="'.$field["ticket_category"].'" price="'.$field['ticket_price'].'" post="'.get_the_ID().'"]' ); } $order = new WP_Query(array('post_type' => 'wpsc_cart_orders', 'post_status' => 'publish')); while ($order->have_posts() ) : $order->the_post(); $orderss = get_post_meta(get_the_ID(), 'wpsc_cart_items' , true); foreach($orderss as $orders){ if($orders['cartLink'] == $url){ if($field["ticket_category"] == $orders['name']){ $quan += $orders['quantity']; $qua = $quan; $quantit[] = $orders['quantity']; } else { $qua = 0; } } }endwhile; wp_reset_query(); $total = $field['ticket_quantity']; $remaining = $total - $qua; ?> <p class="remaining"> <?php echo esc_html_e('Remaining Tickets :', 'beevent'); ?> <?php echo esc_html($remaining,'beevent'); ?> </p> </div> </div> </div> </div> <?php } } } if ( $ticket_style == 'style3' ) { $repeatable_fields = get_post_meta(get_the_ID(), 'tickets', true); if ( $repeatable_fields ) { $i=0; foreach ( $repeatable_fields as $field ) { $i++; ?> <div class="pay_services3 single-ticket-style-style3"> <div class="regi-price-table border-box"> <div class="table-price-box secondary-bg"> <h5><?php echo esc_html($field["ticket_category"]); ?></h5> <div class="regi-price-box"> <?php echo '$'.esc_html($field['ticket_price']); ?> </div> </div> <div class="table-price-detail"> <ul class="desc"> <?php $desc= $field['ticket_desc']; $strs = explode (",", $desc); foreach($strs as $str){ ?> <li><i class="fa fa-check"></i><span><?php echo esc_html($str,'beevent'); ?></span></li> <?php } ?> </ul> </div> <div class="table_btn"> <p class="available"> <?php echo esc_html_e('Available Ticket :', 'beevent'); ?> <?php echo esc_html($field['ticket_quantity'],'beevent'); ?> </p> <?php $url = get_the_permalink(); if($status==__('Expired','beevent')) { ?> <a class="btn disable-btn" disabled> <?php echo esc_html_e('Buy Now','beevent'); ?></a> <?php }else{ echo do_shortcode('[wp_cart_button name="'.$field["ticket_category"].'" price="'.$field['ticket_price'].'" post="'.get_the_ID().'"]' ); } $order = new WP_Query(array('post_type' => 'wpsc_cart_orders', 'post_status' => 'publish')); while ($order->have_posts() ) : $order->the_post(); $orderss = get_post_meta(get_the_ID(), 'wpsc_cart_items' , true); foreach($orderss as $orders){ if($orders['cartLink'] == $url){ if($field["ticket_category"] == $orders['name']){ $quan += $orders['quantity']; $qua = $quan; $quantit[] = $orders['quantity']; } else{ $qua= 0; } } } endwhile; wp_reset_query(); $total = $field['ticket_quantity']; $remaining = $total - $qua; ?> <p class="remaining"><?php echo esc_html_e('Remaining Tickets :', 'beevent'); ?> <?php echo esc_html($remaining,'beevent'); ?> </p> </div> </div> </div> <?php } } } ?> </div> </div> <?php $latitude = get_post_meta( get_the_ID(), 'event-lat', true ); $longitude = get_post_meta( get_the_ID(), 'event-lon', true ); $Venue_style = get_post_meta( get_the_ID(), 'venue_style', true ); ?> <a class="md-trigger parimary-link singlebigmaptrigger" data-lat="<?php echo esc_attr($latitude); ?>" data-lan="<?php echo esc_attr($longitude); ?>" data-modal="modal-4" ></a> <div class="tab-pane fade" id="gt-event-tab-4" role="tabpanel" aria-labelledby="nav-gt-event-tab-4-tab"> <?php if ( $Venue_style == 'style1' ) { ?> <div class="row single-event-map-1"> <div class="col-md-6 venue-left-half"> <p class="venue"> <i aria-hidden="true" class="fas fa-map-marker-alt"></i> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"> <?php echo get_post_meta(get_the_ID(), 'event-loc', true); ?> </a> </p> <p class="venue"> <i aria-hidden="true" class="fas fa-phone-alt"></i> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"> <?php $event_phone = get_post_meta(get_the_ID(), 'event-phone', true ); echo esc_html( $event_phone ); ?> </a> </p> <p class="venue"> <i aria-hidden="true" class="far fa-envelope"></i> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"> <?php $event_phone = get_post_meta(get_the_ID(), 'event-email', true ); echo esc_html( $event_phone ); ?> </a> </p> </div> <div class="col-md-6 venue-right-half"> <div class="map-directions" style="display:none;"> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank" ><i class="fa fa-map-o"></i><?php echo esc_html__('Get Directions', 'beevent'); ?></a> </div> <?php global $beevent_options; $map_option = $beevent_options['map_option']; $mapbox_token = $beevent_options['mapbox_token']; $mapbox_style = $beevent_options['map_style']; if ( $map_option == 'google' ) { ?> <div id="singlepostmap" class="singlemap"></div> <?php } elseif( $map_option == 'mapbox' ) { ?> <div class="singlemap" id="singlemapbox"></div> <?php $script = "mapboxgl.accessToken = '".$mapbox_token."'; const map = new mapboxgl.Map({ container: 'singlemapbox', // container ID style: 'mapbox://styles/mapbox/".$mapbox_style."', // style URL center: [".$longitude.", ".$latitude."], // starting position [lng, lat] zoom: 14 // starting zoom }); // Create a default Marker and add it to the map. const marker1 = new mapboxgl.Marker() .setLngLat([".$longitude.", ".$latitude."]) .addTo(map); "; wp_add_inline_script( 'mapbox-inline', $script ); ?> <?php } elseif ( $map_option == 'openstreet' ) { ?> <div id="osm-map" style="position: relative;width: 100%;height: 100%;"></div> <?php $script = " var cities = L.layerGroup(); L.marker([".$latitude.", ".$longitude."]).bindPopup('".get_the_title()."').addTo(cities); var mbAttr = '', mbUrl = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw'; var grayscale = L.tileLayer(mbUrl, {id: 'mapbox/light-v9', tileSize: 512, zoomOffset: -1, attribution: mbAttr}), streets = L.tileLayer(mbUrl, {id: 'mapbox/streets-v11', tileSize: 512, zoomOffset: -1, attribution: mbAttr}); var map = L.map('osm-map', { center: [".$latitude.", ".$longitude."], zoom: 10, layers: [grayscale,cities] }); var baseLayers = { 'Grayscale': grayscale, 'Streets': streets }; var overlays = { 'Cities': cities }; L.control.layers(baseLayers, overlays).addTo(map);"; wp_add_inline_script( 'mapbox-inline', $script ); ?> <?php } ?> </div> </div> <?php } elseif ( $Venue_style == 'style2' ) { ?> <div class="row single-event-map-2"> <div class="col-md-4 venue-center-half"> <p class="venue"> <i aria-hidden="true" class="fas fa-map-marker-alt"></i> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"> <?php echo get_post_meta(get_the_ID(), 'event-loc', true); ?> </a> </p> </div> <div class="col-md-4 venue-center-half"> <p class="venue"> <i aria-hidden="true" class="fas fa-phone-alt"></i> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"> <?php $event_phone = get_post_meta(get_the_ID(), 'event-phone', true ); echo esc_html( $event_phone ); ?> </a> </p> </div> <div class="col-md-4 venue-center-half"> <p class="venue"> <i aria-hidden="true" class="far fa-envelope"></i> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"> <?php $event_phone = get_post_meta(get_the_ID(), 'event-email', true ); echo esc_html( $event_phone ); ?> </a> </p> </div> <div class="col-md-12 venue-center-map"> <div class="map-directions"> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank" ><i class="fa fa-map-o"></i><?php echo esc_html__('Get Directions', 'beevent'); ?></a> </div> <?php global $beevent_options; $map_option = $beevent_options['map_option']; $mapbox_token = $beevent_options['mapbox_token']; $mapbox_style = $beevent_options['map_style']; if ( $map_option == 'google' ) { ?> <div id="singlepostmap" class="singlemap"></div> <?php } elseif( $map_option == 'mapbox' ) { ?> <div class="singlemap" id="singlemapbox"></div> <?php $script = "mapboxgl.accessToken = '".$mapbox_token."'; const map = new mapboxgl.Map({ container: 'singlemapbox', // container ID style: 'mapbox://styles/mapbox/".$mapbox_style."', // style URL center: [".$longitude.", ".$latitude."], // starting position [lng, lat] zoom: 14 // starting zoom }); // Create a default Marker and add it to the map. const marker1 = new mapboxgl.Marker() .setLngLat([".$longitude.", ".$latitude."]) .addTo(map); "; wp_add_inline_script( 'mapbox-inline', $script ); ?> <?php } elseif ( $map_option == 'openstreet' ) { ?> <div id="osm-map" style="position: relative;width: 100%;height: 100%;"></div> <?php $script = " var cities = L.layerGroup(); L.marker([".$latitude.", ".$longitude."]).bindPopup('".get_the_title()."').addTo(cities); var mbAttr = '', mbUrl = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw'; var grayscale = L.tileLayer(mbUrl, {id: 'mapbox/light-v9', tileSize: 512, zoomOffset: -1, attribution: mbAttr}), streets = L.tileLayer(mbUrl, {id: 'mapbox/streets-v11', tileSize: 512, zoomOffset: -1, attribution: mbAttr}); var map = L.map('osm-map', { center: [".$latitude.", ".$longitude."], zoom: 10, layers: [grayscale,cities] }); var baseLayers = { 'Grayscale': grayscale, 'Streets': streets }; var overlays = { 'Cities': cities }; L.control.layers(baseLayers, overlays).addTo(map);"; wp_add_inline_script( 'mapbox-inline', $script ); ?> <?php } ?> </div> </div> <?php } elseif ( $Venue_style == 'style3' ) { ?> <div class="row venue_style3 single_venue_style_3"> <div class="col-md-12"> <div class="main-map-div"> <div class="map-directions"> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank" ><i class="fa fa-map-o"></i><?php echo esc_html__('Get Directions', 'beevent'); ?></a> </div> <?php global $beevent_options; $map_option = $beevent_options['map_option']; $mapbox_token = $beevent_options['mapbox_token']; $mapbox_style = $beevent_options['map_style']; if ( $map_option == 'google' ) { ?> <div id="singlepostmap" class="singlemap"></div> <?php } elseif( $map_option == 'mapbox' ) { ?> <div class="singlemap" id="singlemapbox"></div> <?php $script = "mapboxgl.accessToken = '".$mapbox_token."'; const map = new mapboxgl.Map({ container: 'singlemapbox', // container ID style: 'mapbox://styles/mapbox/".$mapbox_style."', // style URL center: [".$longitude.", ".$latitude."], // starting position [lng, lat] zoom: 14 // starting zoom }); // Create a default Marker and add it to the map. const marker1 = new mapboxgl.Marker() .setLngLat([".$longitude.", ".$latitude."]) .addTo(map); "; wp_add_inline_script( 'mapbox-inline', $script ); ?> <?php } elseif ( $map_option == 'openstreet' ) { ?> <div id="osm-map" style="position: relative;width: 100%;height: 100%;"></div> <?php $script = " var cities = L.layerGroup(); L.marker([".$latitude.", ".$longitude."]).bindPopup('".get_the_title()."').addTo(cities); var mbAttr = '', mbUrl = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw'; var grayscale = L.tileLayer(mbUrl, {id: 'mapbox/light-v9', tileSize: 512, zoomOffset: -1, attribution: mbAttr}), streets = L.tileLayer(mbUrl, {id: 'mapbox/streets-v11', tileSize: 512, zoomOffset: -1, attribution: mbAttr}); var map = L.map('osm-map', { center: [".$latitude.", ".$longitude."], zoom: 10, layers: [grayscale,cities] }); var baseLayers = { 'Grayscale': grayscale, 'Streets': streets }; var overlays = { 'Cities': cities }; L.control.layers(baseLayers, overlays).addTo(map);"; wp_add_inline_script( 'mapbox-inline', $script ); ?> <?php } ?> </div> <div class="contact-info-box border-box"> <div class="contact-info-details text-center"> <div class="direction-icon venue-icon fa fa-map-marker"></div> <h5><?php echo get_post_meta(get_the_ID(), 'event-loc', true); ?></h5> </div> <div class="contact-info-details text-center"> <div class="direction-icon venue-icon fa fa-phone"></div> <h5><a href="tel:+61-123-456-7890"><?php $event_phone = get_post_meta(get_the_ID(), 'event-phone', true ); echo esc_html( $event_phone ); ?></a></h5> </div> <div class="contact-info-details text-center"> <div class="direction-icon venue-icon fa fa-envelope-o"></div> <h5><a href="mailto:contact@demoweburl.com"><?php $event_phone = get_post_meta(get_the_ID(), 'event-email', true ); echo esc_html( $event_phone ); ?></a></h5> </div> </div> </div> </div> <?php } ?> </div> <div class="tab-pane fade" id="gt-event-tab-5" role="tabpanel" aria-labelledby="nav-gt-event-tab-5-tab"> <div class="event_contact"> <?php $IDs = get_post_meta( $post->ID, 'gallery_image_ids', true ); $style= get_post_meta( $post->ID, 'gallery-style', true ); if($style=='style1'){ $imgIDs = explode(',',$IDs); add_image_size('beevent-listing-gallery', 400, 528, true); $imgSize = 'beevent-listing-gallery'; $numImages = count($imgIDs); if(!empty($IDs)){ echo '<div id="gallery_slider1" class="owl-carousel">'; foreach($imgIDs as $imgID) : $imgurl = wp_get_attachment_image_src( $imgID, $imgSize); $imgSrc = $imgurl[0]; $imgFull = wp_get_attachment_image_src( $imgID, 'full'); ?> <div class="item"> <img src="<?php echo esc_url($imgSrc,'beevent'); ?>" class="img-responsive center-block"> </div> <?php endforeach; echo '</div>'; } } if($style=='style2'){ $imgIDs = explode(',',$IDs); add_image_size('beevent-listing-gallery', 400, 528, true); $imgSize = 'beevent-listing-gallery'; $numImages = count($imgIDs); if(!empty($IDs)){ echo '<div class="gallery_style2">'; foreach($imgIDs as $imgID) : $imgurl = wp_get_attachment_image_src( $imgID, $imgSize); $imgSrc = $imgurl[0]; $imgFull = wp_get_attachment_image_src( $imgID, 'full'); if ( isset( $imgFull[0] ) && ! empty( $imgFull[0] ) ) { ?> <a href="<?php echo esc_url( $imgFull[0],'beevent'); ?>" rel="prettyPhoto[gallery1]" class="cursorimage"><img src="<?php echo esc_url($imgSrc,'beevent'); ?>" class="img-responsive center-block"></a> <?php } endforeach; echo '</div>'; } } if($style=='style3'){ $imgIDs = explode(',',$IDs); add_image_size('beevent-listing-gallery', 400, 300, true); $imgSize = 'beevent-listing-gallery'; $numImages = count($imgIDs); if(!empty($IDs)){ echo '<div class="gallery_style3 row">'; foreach($imgIDs as $imgID) : $imgurl = wp_get_attachment_image_src( $imgID, $imgSize); $imgSrc = $imgurl[0]; $imgFull = wp_get_attachment_image_src( $imgID, 'full'); if ( isset( $imgFull[0] ) && ! empty( $imgFull[0] ) ) { ?> <div class="col-md-4"> <a href="<?php echo esc_url($imgFull[0],'beevent'); ?>" rel="prettyPhoto[gallery1]" class="cursorimage"><img src="<?php echo esc_url($imgSrc,'beevent'); ?>" class="img-responsive prettyPhoto-m-img"></a> </div> <?php } endforeach; echo '</div>'; } } ?> </div> </div> <div class="tab-pane fade" id="gt-event-tab-6" role="tabpanel" aria-labelledby="nav-gt-event-tab-6-tab"> <div class="single-event-testimonial" style="margin-bottom: 50px;"> <?php $Testimonial_style = get_post_meta( get_the_ID(), 'testimonial_style', true ); $Testimonial_array = get_post_meta( get_the_ID(), 'event_testimonials', true ); $Testimonial_array = !empty( $Testimonial_array ) ? $Testimonial_array : array(); if ( ! empty( $Testimonial_array ) ) { foreach ( $Testimonial_array as $testimonial_key => $testimonial_value ) { $event_stestimonial_ids = $testimonial_value; } } if ( ! empty( $event_stestimonial_ids ) ) { if ( $Testimonial_style == 'style1' ) { $testimonial = new WP_Query( array( 'post_type' => 'testimonial', 'post_status' => 'publish', 'posts_per_page' => -1, 'post__in' => $event_stestimonial_ids ) ); echo '<div id="testimonial_slider" class="owl-carousel testimonial_slider1">'; while ( $testimonial->have_posts() ) : $testimonial->the_post(); echo '<div class="item"> <div class="testimonial_head">'; if (has_post_thumbnail()): echo '<div class="testimonial_img">'; the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block')); echo '</div>'; endif; echo '<h5>'; the_title(); echo '</h5>'; $destination = get_post_meta(get_the_ID(),'Be_tes_designation', true ); if (!empty( $destination)): echo '<small>'.esc_html($destination).'</small>'; endif; echo '</div>'; the_excerpt(); echo '</div>'; endwhile; wp_reset_query(); echo '</div>'; } elseif ( $Testimonial_style == 'style2' ) { $testimonial = new WP_Query( array( 'post_type' => 'testimonial', 'post_status' => 'publish', 'posts_per_page' => -1, 'post__in' => $event_stestimonial_ids ) ); echo '<div id="testimonial_list" class="row testimonial_style2">'; while ( $testimonial->have_posts() ) : $testimonial->the_post(); echo '<div class="col-md-6 col-sm-6 testimonial_wrap"> <div class="testimonial_info_m"> <div class="testimonial_head">'; if (has_post_thumbnail()): echo '<div class="testimonial_img">'; the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block')); echo '</div>'; endif; echo '<h6>'; the_title(); echo '</h6>'; $destination = get_post_meta(get_the_ID(),'Be_tes_designation', true ); if (!empty( $destination)): echo '<small>'.esc_html($destination).'</small>'; endif; echo '</div>'; the_excerpt(); echo '</div></div>'; endwhile; wp_reset_query(); echo '</div>'; } elseif ( $Testimonial_style == 'style3' ) { $testimonial = new WP_Query( array( 'post_type' => 'testimonial', 'post_status' => 'publish', 'posts_per_page' => -1, 'post__in' => $event_stestimonial_ids ) ); echo '<div id="testimonial_list" class="row testimonial_style3">'; while ( $testimonial->have_posts() ) : $testimonial->the_post(); echo '<div class="col-md-6 col-sm-6 testimonial_wrap"> <div class="testimonial_info_m"> <div class="testimonial_head">'; if (has_post_thumbnail()): echo '<div class="testimonial_img">'; the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block')); echo '</div>'; endif; echo '<h6>'; the_title(); echo '</h6>'; $destination = get_post_meta(get_the_ID(),'Be_tes_designation', true ); if (!empty( $destination)): echo '<small>'.esc_html($destination).'</small>'; endif; echo '</div>'; the_excerpt(); echo '</div></div>'; endwhile; wp_reset_query(); echo '</div>'; } } ?> </div> </div> </div> </div> </div> <?php if ( wp_is_mobile() ) { $eventDetailClass = 'visible-on-mobile'; } else { $eventDetailClass = 'visible-on-desktop'; } ?> <div class="event_detail mobile-accordion <?php echo esc_attr( $eventDetailClass ); ?>"> <div class="accordion" id="SinglePageAccordion"> <?php if ( ! empty( get_the_content() ) ) { ?> <div class="accordion-item"> <h2 class="accordion-header"> <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseAbout" aria-expanded="true" aria-controls="collapseAbout"> <?php esc_html_e( 'About', 'beevent' ); ?> </button> </h2> <div id="collapseAbout" class="accordion-collapse collapse show" data-bs-parent="#SinglePageAccordion"> <div class="accordion-body"> <div class="content_eve"> <div class="content-box_body content_data"> <?php the_content(); ?> </div> <div class="event_content"> <div class="social-title"><?php echo esc_html_e('Share This Event', 'beevent'); ?></div> <ul class="social_share"> <?php $eventURL = urlencode(get_permalink()); $eventTitle = str_replace( ' ', '%20', get_the_title()); $eventThumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' ); $twitterURL = 'https://twitter.com/intent/tweet?text='.$eventTitle.'&url='.$eventURL.'&via=beevent'; $facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$eventURL; $googleURL = 'https://plus.google.com/share?url='.$eventURL; $pinterest = 'https://pinterest.com/pin/create/button/?url='.$eventURL; $linkedin = 'http://www.linkedin.com/shareArticle?mini=true&url='.$eventURL; $reddit = 'https://www.reddit.com/login?dest=https%3A%2F%2Fwww.reddit.com%2Fsubmit%3Ftitle%3D'.$eventTitle.'%26url%3D'.$eventURL; $stumbleupon = 'https://www.stumbleupon.com/submit?title='.$eventTitle.'&url='.$eventURL; $del = 'https://del.icio.us/login?log=out&provider=sharethis&title='.$eventTitle.'&url='.$eventURL.'&v=5'; ?> <li><a href="<?php echo esc_url($facebookURL); ?>" target="_blank"><i class="fa fa-facebook"></i></a></li> <li><a href="<?php echo esc_url($twitterURL); ?>" target="_blank"><i class="fa fa-twitter"></i></a></li> <li><a href="<?php echo esc_url($linkedin); ?>" target="_blank"><i class="fa fa-linkedin"></i></a></li> <li><a href="<?php echo esc_url( 'https://web.whatsapp.com/send?text='.$eventTitle.' '.$eventURL ); ?>" target="_blank"><i class="fa fa-whatsapp"></i><?php echo esc_html_e('WhatsApp', 'beevent'); ?> </a></li> </ul> </div> </div> </div> </div> </div> <?php } $event_speaker_array = array(); $event_speaker_array = get_post_meta( get_the_ID(), 'event_speaker', true ); $event_speaker_array = ! empty($event_speaker_array) ? $event_speaker_array : array(); foreach($event_speaker_array as $event_speaker){ foreach($event_speaker as $event_speaker_id){ $event_speaker_ids[] = $event_speaker_id; } } if( isset($event_speaker_ids ) && !empty($event_speaker_ids)) { ?> <div class="accordion-item"> <h2 class="accordion-header"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSpeaker" aria-expanded="false" aria-controls="collapseSpeaker"> <?php esc_html_e( 'Speaker', 'beevent' ); ?> </button> </h2> <div id="collapseSpeaker" class="accordion-collapse collapse" data-bs-parent="#SinglePageAccordion"> <div class="accordion-body"> <?php $style = get_post_meta( get_the_ID(), 'speaker_style', true ); $style = ! empty( $style ) ? $style : 'style1'; if ( $style == 'style1' ) { $event_speaker_array = array(); $event_speaker_ids = ''; $event_speaker_array = get_post_meta( get_the_ID(), 'event_speaker', true ); $event_speaker_array = ! empty($event_speaker_array) ? $event_speaker_array : array(); $loop = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', ) ); if ( ! empty( $event_speaker_array ) ) { foreach ( $event_speaker_array as $speaker_key => $speaker_value ) { $event_speaker_ids = $speaker_value; } } echo '<div class="row">'; while ( $loop->have_posts() ) : $loop->the_post(); if ( is_array( $event_speaker_ids ) && in_array( get_the_ID(), $event_speaker_ids ) ) { echo '<div class="col-md-6 speakers"> <div class="speaker-sec"> <div class="speaker-info-box text-center border-box">'; echo '<div class="spearker-img">'; if ( has_post_thumbnail() ): the_post_thumbnail('large', array('class' => 'img-responsive center-block')); else: echo "<div class='is-empty-box'></div>"; endif; echo '</div>'; echo '<div class="speaker-hover">'; echo '<div class="social-icons text-center">'; $facebook_link = get_post_meta(get_the_ID(),'Be_facebook_link', true ); if (!empty( $facebook_link)): echo '<a href="'.esc_url($facebook_link).'"><i class="fa fa-facebook-square" aria-hidden="true"></i></a>'; endif; $linkedin_link = get_post_meta(get_the_ID(),'Be_linkedin_link', true ); if (!empty( $linkedin_link)): echo '<a href="'.esc_url($linkedin_link).'"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a>'; endif; $twitter_link = get_post_meta(get_the_ID(),'Be_twitter_link', true ); if (!empty( $twitter_link)): echo '<a href="'.esc_url($twitter_link).'"><i class="fa fa-twitter-square" aria-hidden="true"></i></a>'; endif; $instagram_link = get_post_meta(get_the_ID(),'Be_instagram_link', true ); if (!empty( $instagram_link)): echo '<a href="'.esc_url($instagram_link).'"><i class="fa fa-instagram" aria-hidden="true"></i></a>'; endif; $whatsapp_link = get_post_meta(get_the_ID(),'Be_whatsapp_link', true ); if (!empty( $whatsapp_link)): echo '<a href="'.esc_url($whatsapp_link).'"><i class="fa fa-whatsapp" aria-hidden="true"></i></a>'; endif; echo '</div></div></div>'; echo '<div class="speaker-info">'; echo '<h5>'; the_title(); echo '</h5>'; $destination = get_post_meta(get_the_ID(),'Be_destination', true ); if (!empty( $destination)): echo '<h6>'.esc_html($destination).'</h6>'; endif; echo '</div></div></div>'; } endwhile; wp_reset_postdata(); echo "</div>"; } if ( $style == 'style2' ) { $event_speaker_array = array(); $event_speaker_ids = array(); $event_speaker_array = get_post_meta( get_the_ID(), 'event_speaker', true ); $event_speaker_array = ! empty($event_speaker_array) ? $event_speaker_array : array(); $loop = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', ) ); if ( ! empty( $event_speaker_array ) ) { foreach ( $event_speaker_array as $speaker_key => $speaker_value ) { $event_speaker_ids = $speaker_value; } } echo '<div class="row speakers_3">'; while ($loop->have_posts()) : $loop->the_post(); if(in_array(get_the_ID(), $event_speaker_ids)){ echo '<div class="col-md-6 speakers"> <div class="speaker-sec"> <div class="speaker-info-box text-center border-box">'; echo '<div class="spearker-img">'; if ( has_post_thumbnail() ): the_post_thumbnail('large', array('class' => 'img-responsive center-block')); else: echo "<div class='is-empty-box'></div>"; endif; echo '</div>'; echo '<div class="speaker-hover"> <div class="social-icons text-center">'; $facebook_link = get_post_meta(get_the_ID(),'Be_facebook_link', true ); if (!empty( $facebook_link)): echo '<a href="'.esc_url($facebook_link).'"><i class="fa fa-facebook-square" aria-hidden="true"></i></a>'; endif; $linkedin_link = get_post_meta(get_the_ID(),'Be_linkedin_link', true ); if (!empty( $linkedin_link)): echo '<a href="'.esc_url($linkedin_link).'"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a>'; endif; $twitter_link = get_post_meta(get_the_ID(),'Be_twitter_link', true ); if (!empty( $twitter_link)): echo '<a href="'.esc_url($twitter_link).'"><i class="fa fa-twitter-square" aria-hidden="true"></i></a>'; endif; $instagram_link = get_post_meta(get_the_ID(),'Be_instagram_link', true ); if (!empty( $instagram_link)): echo '<a href="'.esc_url($instagram_link).'"><i class="fa fa-instagram" aria-hidden="true"></i></a>'; endif; $whatsapp_link = get_post_meta(get_the_ID(),'Be_whatsapp_link', true ); if (!empty( $whatsapp_link)): echo '<a href="'.esc_url($whatsapp_link).'"><i class="fa fa-whatsapp" aria-hidden="true"></i></a>'; endif; echo '</div></div></div>'; echo '<div class="speaker-info">'; echo '<h5>'; the_title(); echo '</h5>'; $destination = get_post_meta(get_the_ID(),'Be_destination', true ); if (!empty( $destination)): echo '<h6>'.esc_html($destination).'</h6>'; endif; echo '</div></div></div>'; } endwhile; echo '</div>'; wp_reset_postdata(); } if ( $style == 'style3' ) { $event_speaker_array = array(); $event_speaker_ids = array(); $event_speaker_array = get_post_meta( get_the_ID(), 'event_speaker', true ); $event_speaker_array = ! empty($event_speaker_array) ? $event_speaker_array : array(); $loop = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', ) ); if ( ! empty( $event_speaker_array ) ) { foreach ( $event_speaker_array as $speaker_key => $speaker_value ) { $event_speaker_ids = $speaker_value; } } echo '<div class="row">'; while ( $loop->have_posts() ) : $loop->the_post(); if( in_array(get_the_ID(), $event_speaker_ids ) ) { echo '<div class="col-md-12 speakers"> <div class="speakers_wrap">'; if ( has_post_thumbnail() ): echo '<div class="our_speaker_img">'; the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block')); echo '</div>'; endif; echo '<div class="speakers_info">'; echo '<h5>'; the_title(); echo '</h5>'; $destination = get_post_meta(get_the_ID(),'Be_destination', true ); if (!empty( $destination)): echo '<small>'.esc_html($destination).'</small>'; endif; the_excerpt(); echo '</div> <div class="speakers_follow_us"> <ul>'; $facebook_link = get_post_meta(get_the_ID(),'Be_facebook_link', true ); if (!empty( $facebook_link)): echo '<li><a href="'.esc_url($facebook_link).'"><i class="fa fa-facebook-square" aria-hidden="true"></i></a></li>'; endif; $linkedin_link = get_post_meta(get_the_ID(),'Be_linkedin_link', true ); if (!empty( $linkedin_link)): echo '<li><a href="'.esc_url($linkedin_link).'"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a></li>'; endif; $twitter_link = get_post_meta(get_the_ID(),'Be_twitter_link', true ); if (!empty( $twitter_link)): echo '<li><a href="'.esc_url($twitter_link).'"><i class="fa fa-twitter-square" aria-hidden="true"></i></a></li>'; endif; $instagram_link = get_post_meta(get_the_ID(),'Be_instagram_link', true ); if (!empty( $instagram_link)): echo '<li><a href="'.esc_url($instagram_link).'"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>'; endif; $whatsapp_link = get_post_meta(get_the_ID(),'Be_whatsapp_link', true ); if (!empty( $whatsapp_link)): echo '<li><a href="'.esc_url($whatsapp_link).'"><i class="fa fa-whatsapp" aria-hidden="true"></i></a></li>'; endif; echo '</ul> </div> </div> </div>'; } endwhile; wp_reset_postdata(); echo '</div>'; } ?> </div> </div> </div> <?php } $event_speaker_array = array(); $schedule_content_arr = get_post_meta( get_the_ID(), 'schedule_content_arr', true ); $schedule_content_arr = unserialize( $schedule_content_arr ); $schedule_content_arr = ! empty($schedule_content_arr) ? $schedule_content_arr : array(); $scheduleCheckCount = 0; if ( isset( $schedule_content_arr ) && ! empty( $schedule_content_arr ) ) { foreach ( $schedule_content_arr as $days_key => $days_value ) { foreach ( $days_value['inner-list'] as $innerlist_key => $innerlist_value ) { if ( !empty( $innerlist_value['inner-time-input'] ) && $innerlist_value['inner-time-input'] != 'inner-time-input' ) { $scheduleCheckCount++; } } } if ( $scheduleCheckCount != 0 ) { ?> <div class="accordion-item"> <h2 class="accordion-header"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSchedule" aria-expanded="false" aria-controls="collapseSchedule"> <?php esc_html_e( 'Schedule', 'beevent' ); ?> </button> </h2> <div id="collapseSchedule" class="accordion-collapse collapse" data-bs-parent="#SinglePageAccordion"> <div class="accordion-body"> <?php $schedule_style = get_post_meta( get_the_ID(), 'schedule_style', true ); $schedule_content_arr = get_post_meta( get_the_ID(), 'schedule_content_arr', true ); if ( ! empty( $schedule_content_arr ) ) { $schedule_content_arr = unserialize( $schedule_content_arr ); } else { $schedule_content_arr = ''; } if ( $schedule_style == 'style2' ) { ?> <div class="schedule_event"> <div class="schedule_style2"> <div class="schedule_info2"> <nav> <div class="event eventsemi-tabs nav nav-tabs" id="nav-tab" role="tablist"> <?php $schedule_ul_count = 1; foreach ( $schedule_content_arr as $days_key => $days_value ) { ?> <button class="nav-link <?php if ( $schedule_ul_count == 1 ) { echo 'active'; } ?>" id="nav-day<?php echo esc_attr( $schedule_ul_count ); ?>-tab" data-bs-toggle="tab" data-bs-target="#nav-day<?php echo esc_attr( $schedule_ul_count ); ?>" type="button" role="tab" aria-controls="nav-day<?php echo esc_attr( $schedule_ul_count ); ?>" aria-selected="true"> <?php echo esc_html( 'Day', 'beevent' ).' '.$schedule_ul_count; ?> <span style="line-height: 10px;margin-top: 5px;"> <?php echo isset( $days_value['inner-day-date'] ) ? date( 'l', strtotime( $days_value['inner-day-date'] ) ) : ''; ?> </span> <span> <?php echo isset( $days_value['inner-day-date'] ) ? $days_value['inner-day-date'] : ''; ?> </span> </button> <?php $schedule_ul_count++; } ?> </div> </nav> <div class="tab-content" id="nav-tabContent"> <?php $schedule_ul_count = 1; foreach ( $schedule_content_arr as $days_key => $days_value ) { ?> <div class="tab-pane fade <?php if ( $schedule_ul_count == 1 ) { echo 'show active'; } ?>" id="nav-day<?php echo esc_attr( $schedule_ul_count ); ?>" role="tabpanel" aria-labelledby="nav-day<?php echo esc_attr( $schedule_ul_count ); ?>-tab" tabindex="0"> <?php foreach ( $days_value['inner-list'] as $innerlist_key => $innerlist_value ) { ?> <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'post_status' => 'publish', 'posts_per_page' =>-1, 'post__in' => array( $innerlist_value['inner-select-input'] ) ) ); ?> <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); $day1id = rand( 10, 10000000 ); ?> <div class="conference-time-list"> <div class="conf-user-time"> <?php if ( isset( $innerlist_value['inner-time-input'] ) && !empty( $innerlist_value['inner-time-input'] )): echo '<span class="time">'.$innerlist_value['inner-time-input'].'</span>'; endif; ?> </div> <div class="conf-user-img"> <?php if ( has_post_thumbnail() ): the_post_thumbnail('medium', array('class' => 'img-responsive center-block')); else: echo "<div class='is-empty-box'></div>"; endif;?> </div> <div class="conf-user-info"> <h5><?php the_title();?></h5> <?php $destination = get_post_meta(get_the_ID(),'Be_destination', true ); if (!empty( $destination)): echo '<h6>'.$destination.'</h6>'; endif;?> <a href="#collapse<?php echo esc_html($day1id);?>" data-bs-toggle="collapse" role="button" class="conf-close menu-down" aria-expanded="false" aria-controls="collapse<?php echo esc_html($day1id);?>"> <i class="fa fa-angle-right" aria-hidden="true"></i> </a> <div class="collapse in" id="collapse<?php echo esc_html($day1id);?>"> <div class="conf-user-content"> <?php the_excerpt();?> </div> </div> </div> </div> <?php endwhile; wp_reset_query(); } ?> </div> <?php $schedule_ul_count++; } ?> </div> </div> </div> </div> <?php } elseif ( $schedule_style == 'style3' ) { ?> <div class="schedule_info3 schedule_style3"> <nav> <div class="event eventsemi-tabs nav nav-tabs" id="nav-tab" role="tablist"> <?php $schedule_ul_count = 1; foreach ( $schedule_content_arr as $days_key => $days_value ) { ?> <button class="nav-link <?php if ( $schedule_ul_count == 1 ) { echo 'active'; } ?>" id="nav-day<?php echo esc_attr( $schedule_ul_count ); ?>-tab" data-bs-toggle="tab" data-bs-target="#nav-day<?php echo esc_attr( $schedule_ul_count ); ?>" type="button" role="tab" aria-controls="nav-day<?php echo esc_attr( $schedule_ul_count ); ?>" aria-selected="<?php if ( $schedule_ul_count == 1 ) { echo esc_html('true','beevent'); } else { echo esc_attr( 'false'); } ?>"> <?php echo esc_html( 'Day', 'beevent' ).' '.$schedule_ul_count; ?> <span style="line-height: 10px;margin-top: 5px;"> <?php echo isset( $days_value['inner-day-date'] ) ? date( 'l', strtotime( $days_value['inner-day-date'] ) ) : ''; ?> </span> <span> <?php echo isset( $days_value['inner-day-date'] ) ? $days_value['inner-day-date'] : ''; ?> </span> </button> <?php $schedule_ul_count++; } ?> </div> </nav> <<div class="tab-content" id="nav-tabContent"> <?php $schedule_ul_count = 1; foreach ( $schedule_content_arr as $days_key => $days_value ) { ?> <!--Day 1 schedule--> <div class="tab-pane fade <?php if ( $schedule_ul_count == 1 ) { echo 'show active'; } ?>" id="nav-day<?php echo esc_attr( $schedule_ul_count ); ?>" role="tabpanel" aria-labelledby="nav-day<?php echo esc_attr( $schedule_ul_count ); ?>-tab" tabindex="0"> <?php foreach ( $days_value['inner-list'] as $innerlist_key => $innerlist_value ) { ?> <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'post_status' => 'publish', 'posts_per_page' =>-1, 'post__in' => array( $innerlist_value['inner-select-input'] ) ) ); ?> <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); $day1id = rand( 10, 10000000 ); ?> <div class="conference-time-list"> <div class="conf-user-img"> <?php if ( has_post_thumbnail() ): the_post_thumbnail('medium', array('class' => 'img-responsive center-block wp-post-image')); else: echo "<div class='is-empty-box'></div>"; endif;?> </div> <div class="conf-user-info"> <h5><?php the_title();?> <span class="time"> <?php if ( isset( $innerlist_value['inner-time-input'] ) && !empty( $innerlist_value['inner-time-input'] )): echo '<span class="time">'.$innerlist_value['inner-time-input'].'</span>'; endif; ?> </span> </h5> <?php $destination = get_post_meta(get_the_ID(),'Be_destination', true ); if (!empty( $destination)): echo '<h6>'.$destination.'</h6>'; endif;?> <a href="#collapse<?php echo esc_html($day1id);?>" data-bs-toggle="collapse" role="button" class="conf-close menu-down" aria-expanded="false" aria-controls="collapse<?php echo esc_html($day1id);?>"> <i class="fa fa-angle-right" aria-hidden="true"></i> </a> <div class="collapse" id="collapse<?php echo esc_html($day1id);?>"> <div class="conf-user-content"> <?php the_excerpt();?> </div> </div> </div> </div> <?php endwhile; wp_reset_query(); } ?> </div> <!--/Day 1 schedule--> <?php $schedule_ul_count++; } ?> </div> </div> <?php } else { ?> <div class="col-sm-12 col-lg-12 col-lg-offset-2 padding_none schedule_style_1_single"> <div class="day-time-m"> <nav> <div class="event eventsemi-tabs nav nav-tabs" id="nav-tab" role="tablist"> <?php $schedule_ul_count = 1; foreach ( $schedule_content_arr as $days_key => $days_value ) { ?> <button class="nav-link <?php if ( $schedule_ul_count == 1 ) { echo 'active'; } ?>" id="nav-day<?php echo esc_attr( $schedule_ul_count ); ?>-tab" data-bs-toggle="tab" data-bs-target="#nav-day<?php echo esc_attr( $schedule_ul_count ); ?>" type="button" role="tab" aria-controls="nav-day<?php echo esc_attr( $schedule_ul_count ); ?>" aria-selected="<?php if ( $schedule_ul_count == 1 ) { echo esc_html('true','beevent'); } else { echo esc_attr( 'false'); } ?>"> <?php echo esc_html( 'Day', 'beevent' ).' '.$schedule_ul_count; ?> <span style="line-height: 10px;margin-top: 5px;"> <?php echo isset( $days_value['inner-day-date'] ) ? date( 'l', strtotime( $days_value['inner-day-date'] ) ) : ''; ?> </span> <span> <?php echo isset( $days_value['inner-day-date'] ) ? $days_value['inner-day-date'] : ''; ?> </span> </button> <?php $schedule_ul_count++; } ?> </div> </nav> </div> <div class="tab-content" id="nav-tabContent"> <?php $schedule_ul_count = 1; foreach ( $schedule_content_arr as $days_key => $days_value ) { ?> <!--Day 1 schedule--> <div class="tab-pane fade <?php if ( $schedule_ul_count == 1 ) { echo 'show active'; } ?>" id="nav-day<?php echo esc_attr( $schedule_ul_count ); ?>" role="tabpanel" aria-labelledby="nav-day<?php echo esc_attr( $schedule_ul_count ); ?>-tab" tabindex="0"> <?php foreach ( $days_value['inner-list'] as $innerlist_key => $innerlist_value ) { ?> <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'post_status' => 'publish', 'posts_per_page' =>-1, 'post__in' => array( $innerlist_value['inner-select-input'] ) ) ); ?> <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); $day1id = rand( 10, 10000000 ); ?> <div class="conference-time-list"> <div class="conf-user-time"> <span class="time"> <?php if ( isset( $innerlist_value['inner-time-input'] ) && !empty( $innerlist_value['inner-time-input'] )): echo '<span class="time">'.$innerlist_value['inner-time-input'].'</span>'; endif; ?> </span> </div> <div class="conf-user-img"> <?php if ( has_post_thumbnail() ): the_post_thumbnail('medium', array('class' => 'img-responsive center-block wp-post-image')); else: echo "<div class='is-empty-box'></div>"; endif;?> </div> <div class="conf-user-info"> <h5><?php the_title();?></h5> <?php $destination = get_post_meta(get_the_ID(),'Be_destination', true ); if (!empty( $destination)): echo '<h6>'.$destination.'</h6>'; endif;?> <a href="#collapse<?php echo esc_html($day1id);?>" data-bs-toggle="collapse" role="button" class="conf-close menu-down" aria-expanded="false" aria-controls="collapse<?php echo esc_html($day1id);?>"> <i class="fa fa-angle-right" aria-hidden="true"></i> </a> <div class="collapse" id="collapse<?php echo esc_html($day1id);?>"> <div class="conf-user-content"> <?php the_excerpt();?> </div> </div> </div> </div> <?php endwhile; wp_reset_query(); } ?> </div> <!--/Day 1 schedule--> <?php $schedule_ul_count++; } ?> </div> </div> <?php } ?> </div> </div> </div> <?php } } if ( ! empty( get_post_meta( get_the_ID(), 'tickets', true ) ) ) { ?> <div class="accordion-item"> <h2 class="accordion-header"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTickets" aria-expanded="false" aria-controls="collapseTickets"> <?php esc_html_e( 'Tickets', 'beevent' ); ?> </button> </h2> <div id="collapseTickets" class="accordion-collapse collapse" data-bs-parent="#SinglePageAccordion"> <div class="accordion-body"> <div class="event_tickets row"> <?php if($status==__('Expired','beevent')) { ?> <p> <b><?php esc_html_e('*Note:','beevent'); ?></b> <?php esc_html_e('Event is','beevent'); ?> <span><?php esc_html_e('expired:','beevent'); ?></span>, <?php esc_html_e('Ticket booking is not available','beevent'); ?> </p> <?php } $ticket_style = get_post_meta( get_the_ID(), 'ticket-style', true ); $url = get_the_permalink(); $order = new WP_Query(array('post_type' => 'wpsc_cart_orders', 'post_status' => 'publish')); while ($order->have_posts() ) : $order->the_post(); $orderss = get_post_meta(get_the_ID(), 'wpsc_cart_items' , true); foreach($orderss as $orders){ if($orders['cartLink'] == $url){ if($field["ticket_category"] == $orders['name']){ $quan += $orders['quantity']; $qua = $quan; $quantit[] = $orders['quantity']; } else { $quan = 0; } } }endwhile; wp_reset_query(); $total = $field['ticket_quantity']; $remaining = $total - $qua; if ( $ticket_style == "style1" ) { $repeatable_fields = get_post_meta(get_the_ID(), 'tickets', true); if($repeatable_fields){ $i=0; foreach ( $repeatable_fields as $field ) { $i++; ?> <div class="pay_services2"> <div class="regi-price-table border-box"> <div class="table-price-box secondary-bg"> <h5><?php echo esc_html($field["ticket_category"]); ?></h5> <div class="regi-price-box"> <?php echo '$'.esc_html($field["ticket_price"]); ?> </div> <p class="available" style="color: #fff; padding: 0; margin: 0;"><?php echo esc_html_e('Available Ticket :', 'beevent'); ?><?php echo esc_html($field['ticket_quantity'],'beevent'); ?> </p> <?php if($status==__('Expired','beevent')) { ?> <a href="#" class="btn disable-btn" disabled> <?php echo esc_html_e('Buy Now','beevent'); ?></a> <?php }else{ echo do_shortcode('[wp_cart_button name="'.$field["ticket_category"].'" price="'.$field['ticket_price'].'" post="'.get_the_ID().'"]' ); } ?> <p class="remaining" style="color: #fff; padding: 0; margin: 0;"> <?php echo esc_html_e('Remaining Tickets :', 'beevent'); ?> <?php echo esc_html($remaining,'beevent'); ?> </p> </div> <div class="table-price-detail"> <ul> <?php $desc= $field['ticket_desc']; $strs = explode (",", $desc); foreach($strs as $str){ ?> <li><i class="fa fa-check"></i><span><?php echo esc_html($str,'beevent');; ?></span></li> <?php } ?> </ul> </div> </div> </div> <?php } } } if ( $ticket_style == 'style2' ) { $repeatable_fields = get_post_meta(get_the_ID(), 'tickets', true); if($repeatable_fields){ $i=0; foreach ( $repeatable_fields as $field ) { $i++; ?> <div class="pay_services col-sm-6"> <div class="regi-price-table border-box"> <div class="table-price-box secondary-bg"> <h5><?php echo esc_html($field["ticket_category"]); ?></h5> <div class="regi-price-box"> <p><?php echo '$'.esc_html($field['ticket_price']); ?> </p> </div> </div> <div class="table-price-detail"> <ul class="desc"> <?php $desc= $field['ticket_desc']; $strs = explode (",", $desc); foreach($strs as $str){ ?> <li><i class="fa fa-check"></i><span><?php echo esc_html($str,'beevent'); ?></span></li> <?php } ?> </ul> <div class="pay-btn text-center"> <p class="available"><?php echo esc_html_e('Available Ticket :', 'beevent'); ?><?php echo esc_html($field['ticket_quantity'],'beevent'); ?> </p> <?php $url = get_the_permalink(); if($status==__('Expired','beevent')) { ?> <a href="#" class="btn disable-btn" disabled> <?php echo esc_html_e('Buy Now','beevent'); ?></a> <?php }else{ echo do_shortcode('[wp_cart_button name="'.$field["ticket_category"].'" price="'.$field['ticket_price'].'" post="'.get_the_ID().'"]' ); } $order = new WP_Query(array('post_type' => 'wpsc_cart_orders', 'post_status' => 'publish')); while ($order->have_posts() ) : $order->the_post(); $orderss = get_post_meta(get_the_ID(), 'wpsc_cart_items' , true); foreach($orderss as $orders){ if($orders['cartLink'] == $url){ if($field["ticket_category"] == $orders['name']){ $quan += $orders['quantity']; $qua = $quan; $quantit[] = $orders['quantity']; } else { $qua = 0; } } }endwhile; wp_reset_query(); $total = $field['ticket_quantity']; $remaining = $total - $qua; ?> <p class="remaining"> <?php echo esc_html_e('Remaining Tickets :', 'beevent'); ?> <?php echo esc_html($remaining,'beevent'); ?> </p> </div> </div> </div> </div> <?php } } } if ( $ticket_style == 'style3' ) { $repeatable_fields = get_post_meta(get_the_ID(), 'tickets', true); if ( $repeatable_fields ) { $i=0; foreach ( $repeatable_fields as $field ) { $i++; ?> <div class="pay_services3 single-ticket-style-style3"> <div class="regi-price-table border-box"> <div class="table-price-box secondary-bg"> <h5><?php echo esc_html($field["ticket_category"]); ?></h5> <div class="regi-price-box"> <?php echo '$'.esc_html($field['ticket_price']); ?> </div> </div> <div class="table-price-detail"> <ul class="desc"> <?php $desc= $field['ticket_desc']; $strs = explode (",", $desc); foreach($strs as $str){ ?> <li><i class="fa fa-check"></i><span><?php echo esc_html($str,'beevent'); ?></span></li> <?php } ?> </ul> </div> <div class="table_btn"> <p class="available"> <?php echo esc_html_e('Available Ticket :', 'beevent'); ?> <?php echo esc_html($field['ticket_quantity'],'beevent'); ?> </p> <?php $url = get_the_permalink(); if($status==__('Expired','beevent')) { ?> <a class="btn disable-btn" disabled> <?php echo esc_html_e('Buy Now','beevent'); ?></a> <?php }else{ echo do_shortcode('[wp_cart_button name="'.$field["ticket_category"].'" price="'.$field['ticket_price'].'" post="'.get_the_ID().'"]' ); } $order = new WP_Query(array('post_type' => 'wpsc_cart_orders', 'post_status' => 'publish')); while ($order->have_posts() ) : $order->the_post(); $orderss = get_post_meta(get_the_ID(), 'wpsc_cart_items' , true); foreach($orderss as $orders){ if($orders['cartLink'] == $url){ if($field["ticket_category"] == $orders['name']){ $quan += $orders['quantity']; $qua = $quan; $quantit[] = $orders['quantity']; } else{ $qua= 0; } } } endwhile; wp_reset_query(); $total = $field['ticket_quantity']; $remaining = $total - $qua; ?> <p class="remaining"><?php echo esc_html_e('Remaining Tickets :', 'beevent'); ?> <?php echo esc_html($remaining,'beevent'); ?> </p> </div> </div> </div> <?php } } } ?> </div> </div> </div> </div> <?php } if ( ! empty( get_post_meta( get_the_ID(), 'event-loc', true ) ) ) { $latitude = get_post_meta( get_the_ID(), 'event-lat', true ); $longitude = get_post_meta( get_the_ID(), 'event-lon', true ); $Venue_style = get_post_meta( get_the_ID(), 'venue_style', true ); ?> <div class="accordion-item"> <h2 class="accordion-header"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseVenue" aria-expanded="false" aria-controls="collapseVenue"> <?php esc_html_e( 'Venue', 'beevent' ); ?> </button> </h2> <div id="collapseVenue" class="accordion-collapse collapse" data-bs-parent="#SinglePageAccordion"> <div class="accordion-body"> <?php if ( $Venue_style == 'style1' ) { ?> <div class="row single-event-map-1"> <div class="col-md-6 venue-left-half"> <p class="venue"> <i aria-hidden="true" class="fas fa-map-marker-alt"></i> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"> <?php echo get_post_meta(get_the_ID(), 'event-loc', true); ?> </a> </p> <p class="venue"> <i aria-hidden="true" class="fas fa-phone-alt"></i> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"> <?php $event_phone = get_post_meta(get_the_ID(), 'event-phone', true ); echo esc_html( $event_phone ); ?> </a> </p> <p class="venue"> <i aria-hidden="true" class="far fa-envelope"></i> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"> <?php $event_phone = get_post_meta(get_the_ID(), 'event-email', true ); echo esc_html( $event_phone ); ?> </a> </p> </div> <div class="col-md-6 venue-right-half"> <div class="map-directions" style="display:none;"> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank" ><i class="fa fa-map-o"></i><?php echo esc_html__('Get Directions', 'beevent'); ?></a> </div> <?php global $beevent_options; $map_option = $beevent_options['map_option']; $mapbox_token = $beevent_options['mapbox_token']; $mapbox_style = $beevent_options['map_style']; if ( $map_option == 'google' ) { ?> <div id="singlepostmap" class="singlemap"></div> <?php } elseif( $map_option == 'mapbox' ) { ?> <div class="singlemap" id="singlemapbox"></div> <?php $script = "mapboxgl.accessToken = '".$mapbox_token."'; const map = new mapboxgl.Map({ container: 'singlemapbox', // container ID style: 'mapbox://styles/mapbox/".$mapbox_style."', // style URL center: [".$longitude.", ".$latitude."], // starting position [lng, lat] zoom: 14 // starting zoom }); // Create a default Marker and add it to the map. const marker1 = new mapboxgl.Marker() .setLngLat([".$longitude.", ".$latitude."]) .addTo(map); "; wp_add_inline_script( 'mapbox-inline', $script ); ?> <?php } elseif ( $map_option == 'openstreet' ) { ?> <div id="osm-map" style="position: relative;width: 100%;height: 100%;"></div> <?php $script = " var cities = L.layerGroup(); L.marker([".$latitude.", ".$longitude."]).bindPopup('".get_the_title()."').addTo(cities); var mbAttr = '', mbUrl = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw'; var grayscale = L.tileLayer(mbUrl, {id: 'mapbox/light-v9', tileSize: 512, zoomOffset: -1, attribution: mbAttr}), streets = L.tileLayer(mbUrl, {id: 'mapbox/streets-v11', tileSize: 512, zoomOffset: -1, attribution: mbAttr}); var map = L.map('osm-map', { center: [".$latitude.", ".$longitude."], zoom: 10, layers: [grayscale,cities] }); var baseLayers = { 'Grayscale': grayscale, 'Streets': streets }; var overlays = { 'Cities': cities }; L.control.layers(baseLayers, overlays).addTo(map);"; wp_add_inline_script( 'mapbox-inline', $script ); ?> <?php } ?> </div> </div> <?php } elseif ( $Venue_style == 'style2' ) { ?> <div class="row single-event-map-2"> <div class="col-md-4 venue-center-half"> <p class="venue"> <i aria-hidden="true" class="fas fa-map-marker-alt"></i> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"> <?php echo get_post_meta(get_the_ID(), 'event-loc', true); ?> </a> </p> </div> <div class="col-md-4 venue-center-half"> <p class="venue"> <i aria-hidden="true" class="fas fa-phone-alt"></i> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"> <?php $event_phone = get_post_meta(get_the_ID(), 'event-phone', true ); echo esc_html( $event_phone ); ?> </a> </p> </div> <div class="col-md-4 venue-center-half"> <p class="venue"> <i aria-hidden="true" class="far fa-envelope"></i> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank"> <?php $event_phone = get_post_meta(get_the_ID(), 'event-email', true ); echo esc_html( $event_phone ); ?> </a> </p> </div> <div class="col-md-12 venue-center-map"> <div class="map-directions"> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank" ><i class="fa fa-map-o"></i><?php echo esc_html__('Get Directions', 'beevent'); ?></a> </div> <?php global $beevent_options; $map_option = $beevent_options['map_option']; $mapbox_token = $beevent_options['mapbox_token']; $mapbox_style = $beevent_options['map_style']; if ( $map_option == 'google' ) { ?> <div id="singlepostmap" class="singlemap"></div> <?php } elseif( $map_option == 'mapbox' ) { ?> <div class="singlemap" id="singlemapbox"></div> <?php $script = "mapboxgl.accessToken = '".$mapbox_token."'; const map = new mapboxgl.Map({ container: 'singlemapbox', // container ID style: 'mapbox://styles/mapbox/".$mapbox_style."', // style URL center: [".$longitude.", ".$latitude."], // starting position [lng, lat] zoom: 14 // starting zoom }); // Create a default Marker and add it to the map. const marker1 = new mapboxgl.Marker() .setLngLat([".$longitude.", ".$latitude."]) .addTo(map); "; wp_add_inline_script( 'mapbox-inline', $script ); ?> <?php } elseif ( $map_option == 'openstreet' ) { ?> <div id="osm-map" style="position: relative;width: 100%;height: 100%;"></div> <?php $script = " var cities = L.layerGroup(); L.marker([".$latitude.", ".$longitude."]).bindPopup('".get_the_title()."').addTo(cities); var mbAttr = '', mbUrl = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw'; var grayscale = L.tileLayer(mbUrl, {id: 'mapbox/light-v9', tileSize: 512, zoomOffset: -1, attribution: mbAttr}), streets = L.tileLayer(mbUrl, {id: 'mapbox/streets-v11', tileSize: 512, zoomOffset: -1, attribution: mbAttr}); var map = L.map('osm-map', { center: [".$latitude.", ".$longitude."], zoom: 10, layers: [grayscale,cities] }); var baseLayers = { 'Grayscale': grayscale, 'Streets': streets }; var overlays = { 'Cities': cities }; L.control.layers(baseLayers, overlays).addTo(map);"; wp_add_inline_script( 'mapbox-inline', $script ); ?> <?php } ?> </div> </div> <?php } elseif ( $Venue_style == 'style3' ) { ?> <div class="row venue_style3 single_venue_style_3"> <div class="col-md-12"> <div class="main-map-div"> <div class="map-directions"> <a href="https://www.google.com/maps?daddr=<?php echo esc_attr($latitude); ?>,<?php echo esc_attr($longitude); ?>" target="_blank" ><i class="fa fa-map-o"></i><?php echo esc_html__('Get Directions', 'beevent'); ?></a> </div> <?php global $beevent_options; $map_option = $beevent_options['map_option']; $mapbox_token = $beevent_options['mapbox_token']; $mapbox_style = $beevent_options['map_style']; if ( $map_option == 'google' ) { ?> <div id="singlepostmap" class="singlemap"></div> <?php } elseif( $map_option == 'mapbox' ) { ?> <div class="singlemap" id="singlemapbox"></div> <?php $script = "mapboxgl.accessToken = '".$mapbox_token."'; const map = new mapboxgl.Map({ container: 'singlemapbox', // container ID style: 'mapbox://styles/mapbox/".$mapbox_style."', // style URL center: [".$longitude.", ".$latitude."], // starting position [lng, lat] zoom: 14 // starting zoom }); // Create a default Marker and add it to the map. const marker1 = new mapboxgl.Marker() .setLngLat([".$longitude.", ".$latitude."]) .addTo(map); "; wp_add_inline_script( 'mapbox-inline', $script ); ?> <?php } elseif ( $map_option == 'openstreet' ) { ?> <div id="osm-map" style="position: relative;width: 100%;height: 100%;"></div> <?php $script = " var cities = L.layerGroup(); L.marker([".$latitude.", ".$longitude."]).bindPopup('".get_the_title()."').addTo(cities); var mbAttr = '', mbUrl = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw'; var grayscale = L.tileLayer(mbUrl, {id: 'mapbox/light-v9', tileSize: 512, zoomOffset: -1, attribution: mbAttr}), streets = L.tileLayer(mbUrl, {id: 'mapbox/streets-v11', tileSize: 512, zoomOffset: -1, attribution: mbAttr}); var map = L.map('osm-map', { center: [".$latitude.", ".$longitude."], zoom: 10, layers: [grayscale,cities] }); var baseLayers = { 'Grayscale': grayscale, 'Streets': streets }; var overlays = { 'Cities': cities }; L.control.layers(baseLayers, overlays).addTo(map);"; wp_add_inline_script( 'mapbox-inline', $script ); ?> <?php } ?> </div> <div class="contact-info-box border-box"> <div class="contact-info-details text-center"> <div class="direction-icon venue-icon fa fa-map-marker"></div> <h5><?php echo get_post_meta(get_the_ID(), 'event-loc', true); ?></h5> </div> <div class="contact-info-details text-center"> <div class="direction-icon venue-icon fa fa-phone"></div> <h5><a href="tel:+61-123-456-7890"><?php $event_phone = get_post_meta(get_the_ID(), 'event-phone', true ); echo esc_html( $event_phone ); ?></a></h5> </div> <div class="contact-info-details text-center"> <div class="direction-icon venue-icon fa fa-envelope-o"></div> <h5><a href="mailto:contact@demoweburl.com"><?php $event_phone = get_post_meta(get_the_ID(), 'event-email', true ); echo esc_html( $event_phone ); ?></a></h5> </div> </div> </div> </div> <?php } ?> </div> </div> </div> <?php } if ( ! empty( $IDs = get_post_meta( $post->ID, 'gallery_image_ids', true ) ) ) { ?> <div class="accordion-item"> <h2 class="accordion-header"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapsePhotos" aria-expanded="false" aria-controls="collapsePhotos"> <?php esc_html_e( 'Photos', 'beevent' ); ?> </button> </h2> <div id="collapsePhotos" class="accordion-collapse collapse" data-bs-parent="#SinglePageAccordion"> <div class="accordion-body"> <div class="event_contact"> <?php $IDs = get_post_meta( $post->ID, 'gallery_image_ids', true ); $style= get_post_meta( $post->ID, 'gallery-style', true ); if($style=='style1'){ $imgIDs = explode(',',$IDs); add_image_size('beevent-listing-gallery', 400, 528, true); $imgSize = 'beevent-listing-gallery'; $numImages = count($imgIDs); if(!empty($IDs)){ echo '<div id="gallery_slider1" class="owl-carousel">'; foreach($imgIDs as $imgID) : $imgurl = wp_get_attachment_image_src( $imgID, $imgSize); $imgSrc = $imgurl[0]; $imgFull = wp_get_attachment_image_src( $imgID, 'full'); ?> <div class="item"> <img src="<?php echo esc_url($imgSrc,'beevent'); ?>" class="img-responsive center-block"> </div> <?php endforeach; echo '</div>'; } } if($style=='style2'){ $imgIDs = explode(',',$IDs); add_image_size('beevent-listing-gallery', 400, 528, true); $imgSize = 'beevent-listing-gallery'; $numImages = count($imgIDs); if(!empty($IDs)){ echo '<div class="gallery_style2">'; foreach($imgIDs as $imgID) : $imgurl = wp_get_attachment_image_src( $imgID, $imgSize); $imgSrc = $imgurl[0]; $imgFull = wp_get_attachment_image_src( $imgID, 'full'); if ( isset( $imgFull[0] ) && ! empty( $imgFull[0] ) ) { ?> <a href="<?php echo esc_url( $imgFull[0],'beevent'); ?>" rel="prettyPhoto[gallery1]" class="cursorimage"><img src="<?php echo esc_url($imgSrc,'beevent'); ?>" class="img-responsive center-block"></a> <?php } endforeach; echo '</div>'; } } if($style=='style3'){ $imgIDs = explode(',',$IDs); add_image_size('beevent-listing-gallery', 400, 300, true); $imgSize = 'beevent-listing-gallery'; $numImages = count($imgIDs); if(!empty($IDs)){ echo '<div class="gallery_style3 row">'; foreach($imgIDs as $imgID) : $imgurl = wp_get_attachment_image_src( $imgID, $imgSize); $imgSrc = $imgurl[0]; $imgFull = wp_get_attachment_image_src( $imgID, 'full'); if ( isset( $imgFull[0] ) && ! empty( $imgFull[0] ) ) { ?> <div class="col-md-4"> <a href="<?php echo esc_url($imgFull[0],'beevent'); ?>" rel="prettyPhoto[gallery1]" class="cursorimage"><img src="<?php echo esc_url($imgSrc,'beevent'); ?>" class="img-responsive prettyPhoto-m-img"></a> </div> <?php } endforeach; echo '</div>'; } } ?> </div> </div> </div> </div> <?php } $event_testimonial_array = get_post_meta( get_the_ID(), 'event_testimonials', true ); if ( ! empty( $event_testimonial_array ) ) { ?> <div class="accordion-item"> <h2 class="accordion-header"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTestimonials" aria-expanded="false" aria-controls="collapseTestimonials"> <?php esc_html_e( 'Testimonials', 'beevent' ); ?> </button> </h2> <div id="collapseTestimonials" class="accordion-collapse collapse" data-bs-parent="#SinglePageAccordion"> <div class="accordion-body"> <div class="single-event-testimonial" style="margin-bottom: 50px;"> <?php $Testimonial_style = get_post_meta( get_the_ID(), 'testimonial_style', true ); $Testimonial_array = get_post_meta( get_the_ID(), 'event_testimonials', true ); $Testimonial_array = !empty( $Testimonial_array ) ? $Testimonial_array : array(); if ( ! empty( $Testimonial_array ) ) { foreach ( $Testimonial_array as $testimonial_key => $testimonial_value ) { $event_stestimonial_ids = $testimonial_value; } } if ( ! empty( $event_stestimonial_ids ) ) { if ( $Testimonial_style == 'style1' ) { $testimonial = new WP_Query( array( 'post_type' => 'testimonial', 'post_status' => 'publish', 'posts_per_page' => -1, 'post__in' => $event_stestimonial_ids ) ); echo '<div id="testimonial_slider" class="owl-carousel testimonial_slider1">'; while ( $testimonial->have_posts() ) : $testimonial->the_post(); echo '<div class="item"> <div class="testimonial_head">'; if (has_post_thumbnail()): echo '<div class="testimonial_img">'; the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block')); echo '</div>'; endif; echo '<h5>'; the_title(); echo '</h5>'; $destination = get_post_meta(get_the_ID(),'Be_tes_designation', true ); if (!empty( $destination)): echo '<small>'.esc_html($destination).'</small>'; endif; echo '</div>'; the_excerpt(); echo '</div>'; endwhile; wp_reset_query(); echo '</div>'; } elseif ( $Testimonial_style == 'style2' ) { $testimonial = new WP_Query( array( 'post_type' => 'testimonial', 'post_status' => 'publish', 'posts_per_page' => -1, 'post__in' => $event_stestimonial_ids ) ); echo '<div id="testimonial_list" class="row testimonial_style2">'; while ( $testimonial->have_posts() ) : $testimonial->the_post(); echo '<div class="col-md-6 col-sm-6 testimonial_wrap"> <div class="testimonial_info_m"> <div class="testimonial_head">'; if (has_post_thumbnail()): echo '<div class="testimonial_img">'; the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block')); echo '</div>'; endif; echo '<h6>'; the_title(); echo '</h6>'; $destination = get_post_meta(get_the_ID(),'Be_tes_designation', true ); if (!empty( $destination)): echo '<small>'.esc_html($destination).'</small>'; endif; echo '</div>'; the_excerpt(); echo '</div></div>'; endwhile; wp_reset_query(); echo '</div>'; } elseif ( $Testimonial_style == 'style3' ) { $testimonial = new WP_Query( array( 'post_type' => 'testimonial', 'post_status' => 'publish', 'posts_per_page' => -1, 'post__in' => $event_stestimonial_ids ) ); echo '<div id="testimonial_list" class="row testimonial_style3">'; while ( $testimonial->have_posts() ) : $testimonial->the_post(); echo '<div class="col-md-6 col-sm-6 testimonial_wrap"> <div class="testimonial_info_m"> <div class="testimonial_head">'; if (has_post_thumbnail()): echo '<div class="testimonial_img">'; the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block')); echo '</div>'; endif; echo '<h6>'; the_title(); echo '</h6>'; $destination = get_post_meta(get_the_ID(),'Be_tes_designation', true ); if (!empty( $destination)): echo '<small>'.esc_html($destination).'</small>'; endif; echo '</div>'; the_excerpt(); echo '</div></div>'; endwhile; wp_reset_query(); echo '</div>'; } } ?> </div> </div> </div> </div> <?php } ?> </div> </div> <div class="event_detail" id="comment" style="display: none;"> <div class="content-box-module"> <h4 class="content-box_title"><i class="fa fa-comments"></i><span><?php echo esc_html('Leave a reply', 'beevent'); ?> </h2></span></h4> <div class="content-box_body"> <?php comments_template( '', true ); ?> </div> </div> </div> </div> <div class="col-lg-4 col-md-12"> <div class="event_detail"> <div class="listing-sidebar"> <div class="sidebar-heading"> <h5><i class="fa fa-th-list"></i><span><?php echo esc_html_e('Event Schedule', 'beevent'); ?> </span></h5> </div> <div class="sidebar_wrap listing_action_btn"> <ul class="event_schedule"> <?php $event_sdate = get_post_meta(get_the_ID(), 'event-sdate', true); $event_edate = get_post_meta(get_the_ID(), 'event-edate', true); if(!empty($event_sdate)) { ?> <li> <div class="gt-title"><?php echo esc_html_e('Start Date', 'beevent'); ?> </div> <div class="gt-icon"><i class="fa fa-calendar-check-o"></i></div> <div class="gt-content"> <div class="gt-inner"><?php echo date('M d, Y', $event_sdate); ?></div> </div> </li> <?php } if(!empty($event_edate)) { ?> <li> <div class="gt-title"><?php echo esc_html_e('End Date', 'beevent'); ?> </div> <div class="gt-icon"><i class="fa fa-calendar-times-o"></i></div> <div class="gt-content"> <div class="gt-inner"><?php echo date('M d, Y', $event_edate); ?> </div> </div> </li> <?php } ?> </ul> </div> </div> <div class="listing-sidebar"> <div class="sidebar-heading"> <h5><i class="fa fa-th-list"></i><span><?php echo esc_html_e('Other Info', 'beevent'); ?> </span></h5> </div> <div class="content-box-module"> <div class="gt-content-detail-box"> <ul> <li class="event_status"> <div class="gt-icon"></div> <div class="gt-content"> <div class="gt-title"><?php echo esc_html_e('Status', 'beevent'); ?> </div> <div class="gt-inner"><a href="<?php echo home_url('/').$status.'-event/'; ?>"><?php echo esc_html($status,'beevent'); ?></a></div> </div> </li> <?php if(!empty(get_post_meta(get_the_ID(), 'event-loc', true))) { ?> <li> <div class="gt-icon"><i class="fa fa-map-signs"></i></div> <div class="gt-content"> <div class="gt-title"><?php echo esc_html_e('Venue', 'beevent'); ?> </div> <div class="gt-inner"><?php echo get_post_meta(get_the_ID(), 'event-loc', true); ?> </div> </div> </li> <?php } if(!empty(get_post_meta(get_the_ID(), 'event-phone', true))) { ?> <li> <div class="gt-icon"><i class="fa fa-phone"></i></div> <div class="gt-content"> <div class="gt-title"><?php echo esc_html_e('Phone', 'beevent'); ?> </div> <div class="gt-inner"><a href="tel:<?php echo get_post_meta(get_the_ID(), 'event-phone', true); ?>"><?php echo get_post_meta(get_the_ID(), 'event-phone', true); ?> </a></div> </div> </li> <?php } if(!empty(get_post_meta(get_the_ID(), 'event-email', true))) { ?> <li> <div class="gt-icon"><i class="fa fa-envelope-o"></i></div> <div class="gt-content"> <div class="gt-title"><?php echo esc_html_e('Email', 'beevent'); ?> </div> <div class="gt-inner"><a href="mailto:<?php echo get_post_meta(get_the_ID(), 'event-email', true); ?>"><?php echo get_post_meta(get_the_ID(), 'event-email', true); ?></a> </div> </div> </li> <?php } ?> <li> <div class="gt-icon"><i class="fa fa-ticket"></i></div> <div class="gt-content"> <div class="gt-title"><?php echo esc_html_e('Remaining Tickets', 'beevent'); ?> </div> <?php if($status=='Expired') { ?> <div class="gt-inner"> <?php echo esc_html_e('Not Available','beevent'); ?> </div> <?php } else { ?> <div class="gt-inner"><?php $repeatable_fields = get_post_meta(get_the_ID(), 'tickets', true); if($repeatable_fields){ foreach ( $repeatable_fields as $field ) { $a+=$field['ticket_quantity']; } if(empty($quantit)) { $quantit = array(); } $qty = array_sum($quantit); $remaining = $a - $qty; echo esc_html($remaining,'beevent'); } ?> </div> <?php } ?> </div> </li> </ul> </div> </div> </div> <?php $sponsor_style = get_post_meta( get_the_ID(), 'sponsor_style', true ); $sponsor_array = get_post_meta( get_the_ID(), 'event_sponsor', true ); $sponsor_array = !empty( $sponsor_array ) ? $sponsor_array : array(); if ( ! empty( $sponsor_array ) ) { ?> <div class="listing-sidebar sidebar-event-sponsors"> <div class="sidebar-heading"> <h5><i class="fa fa-th-list"></i><span><?php echo esc_html_e( 'Sponsors', 'beevent' ); ?> </span></h5> </div> <div class="single-event-sponsors"> <?php if ( ! empty( $sponsor_array ) ) { foreach ( $sponsor_array as $sponsor_key => $sponsor_value ) { $event_sponsor_ids = $sponsor_value; } } if ( ! empty( $event_sponsor_ids ) ) { if ( $sponsor_style == 'style1' ) { $sponsor = new WP_Query( array( 'post_type' => 'sponsor', 'post_status' => 'publish','posts_per_page'=> -1, 'post__in' => $event_sponsor_ids ) ); echo '<div class="sponsors_1 sponsors-list"><ul>'; while ($sponsor->have_posts() ) : $sponsor->the_post(); ?> <li> <a href="<?php echo get_post_meta(get_the_ID(),'Be_sponsor_link', true ); ?>" target="_blank"> <?php the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));?> </a> </li> <?php endwhile; wp_reset_query(); echo '</ul></div>'; } elseif ( $sponsor_style == 'style2' ) { $sponsor = new WP_Query( array( 'post_type' => 'sponsor', 'post_status' => 'publish','posts_per_page'=> -1, 'post__in' => $event_sponsor_ids ) ); echo '<div class="sponsors_2"><div id="sponsors-slider">'; while ($sponsor->have_posts() ) : $sponsor->the_post(); ?> <div class="sponsors_logo"> <a href="<?php echo get_post_meta(get_the_ID(),'Be_sponsor_link', true ); ?>" target="_blank"> <?php the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));?></a> </div> <?php endwhile; wp_reset_query(); echo '</div></div>'; } elseif ( $sponsor_style == 'style3' ) { echo '<div class="sponsors_3">'; $sponsor = new WP_Query( array( 'post_type' => 'sponsor', 'post_status' => 'publish','posts_per_page'=> -1, 'post__in' => $event_sponsor_ids ) ); echo '<div class="sponsors-list"><ul>'; while ($sponsor->have_posts() ) : $sponsor->the_post(); ?> <li> <a href="<?php echo get_post_meta(get_the_ID(),'Be_sponsor_link', true ); ?>" target="_blank"><?php the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));?></a> </li> <?php endwhile; wp_reset_query(); echo '</ul></div></div>'; } } ?> </div> </div> <?php } ?> <div class="listing-sidebar"> <div class="sidebar_wrap listing_action_btn top-btns"> <ul> <li> <?php echo get_simple_interest_button(get_the_ID()); ?> </li> <li><a data-bs-toggle="modal" data-bs-target="#share_event"><i class="fa fa-share-alt"></i><?php esc_html_e( 'Share This', 'beevent' ); ?> </a></li> <div class="modal fade" id="share_event"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h3 class="modal-title" id="myModalLabel"><?php echo esc_html_e('Share Event', 'beevent');?></h3> <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> </div> <div class="modal-body"> <?php $eventURL = urlencode(get_permalink()); $eventTitle = str_replace( ' ', '%20', get_the_title()); $eventThumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' ); $twitterURL = 'https://twitter.com/intent/tweet?text='.$eventTitle.'&url='.$eventURL.'&via=beevent'; $facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$eventURL; $googleURL = 'https://plus.google.com/share?url='.$eventURL; $pinterest = 'https://pinterest.com/pin/create/button/?url='.$eventURL; $linkedin = 'http://www.linkedin.com/shareArticle?mini=true&url='.$eventURL; $reddit = 'https://www.reddit.com/login?dest=https%3A%2F%2Fwww.reddit.com%2Fsubmit%3Ftitle%3D'.$eventTitle.'%26url%3D'.$eventURL; $stumbleupon = 'https://www.stumbleupon.com/submit?title='.$eventTitle.'&url='.$eventURL; $del = 'https://del.icio.us/login?log=out&provider=sharethis&title='.$eventTitle.'&url='.$eventURL.'&v=5'; $whatsapp = 'https://wa.me/?text='.$eventTitle.' '.$eventURL; ?> <div class="share_listing"> <a href="<?php echo esc_url($facebookURL); ?>" target="_blank"><i class="fa fa-facebook"></i> </a> <a href="<?php echo esc_url($twitterURL); ?>" target="_blank"><i class="fa fa-twitter"></i> </a> <a href="<?php echo esc_url($linkedin); ?>" target="_blank"><i class="fa fa-linkedin"></i> </a> <a href="<?php echo esc_url($whatsapp); ?>" target="_blank"><i class="fa fa-whatsapp"></i> </a> </div> </div> </div> </div> </div> <div class="modal fade" id="event_contact"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h3 class="modal-title" id="myModalLabel"><?php echo esc_html_e('Contact Form', 'beevent');?></h3> <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> </div> <div class="modal-body"> <div class="event_contact"> <?php echo do_shortcode('[contact-form-7 id="2398" title="Contact form (Event Detail Page)"]'); ?> </div> </div> </div> </div> </div> <li><a data-bs-toggle="modal" data-bs-target="#email_friend"><i class="fa fa-envelope-o"></i>Email to Friends</a></li> <li><a href="#" data-bs-toggle="modal" data-bs-target="#event_contact"> <i class="fa fa-address-book"></i>Contact</a></li> <div class="modal fade" id="email_friend"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h3 class="modal-title" id="myModalLabel"><?php echo esc_html_e('Email to a Friend', 'beevent');?></h3> <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> </div> <div class="modal-body"> <?php echo do_shortcode('[contact-form-7 id="2040" title="Email to a Friend"]'); ?> </div> </div> </div> </div> </ul> </div> </div> </div> </div> </div> </div> </div> </div> <style type="text/css"> @media(max-width:1200px) { .single .listing_action_btn li { width: 112px!important; } .single-event .listing_action_btn li { width: 112px!important; } } </style> <?php } // end while } get_footer();