Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* theme setting */
- $theme_setting = unserialize(get_option('javo_themes_settings'));
- /* theme setting */
- $postId = get_the_ID();
- $postData = get_post( $postId );
- EE_Registry::instance()->load_helper( 'People_View' );
- $people = EEH_People_View::get_people_for_event();
- $speakersartist=0;
- $sponsorsCount=0;
- $organizerCount=0;
- foreach ( $people as $type => $persons ){
- $cbr1=0;
- foreach ( $persons as $person ){
- if($type=='Speakers/Artist'){
- $speakersartist++;
- break;
- }
- if($type=='Sponsors'){
- $sponsorsCount++;
- break;
- }
- if($type=='Organizer'){
- $organizerCount++;
- break;
- }
- }
- }
- $event_website = get_post_meta( $postId, 'event_website', true );
- //$event_start_date = get_post_meta( $postId, 'event_start_date', true );
- //$event_end_date = get_post_meta( $postId, 'event_end_date', true );
- $event_schedule = get_post_meta( $postId, 'event_schedule', true );
- $event_faq = get_post_meta( $postId, 'event_faq', true );
- $event_term_condition = get_post_meta( $postId, 'event_term_condition', true );
- //$venue_details = get_post_meta( $postId, 'venue_details', true );
- $event_video = get_post_meta( $postId, 'event_video', true );
- $event_images = get_post_meta( $postId, 'event_images', true );
- $organizer_name = get_post_meta( $postId, 'organizer_name', true );
- $organizer_company = get_post_meta( $postId, 'organizer_company', true );
- $organizer_website = get_post_meta( $postId, 'organizer_website', true );
- $organizer_number = get_post_meta( $postId, 'organizer_number', true );
- //$comments = get_post_meta( $postId, 'comments', true );
- //$event_social_media = get_post_meta( $postId, 'event_social_media', true );
- $facebook_url = get_post_meta( $postId, 'facebook_url', true );
- $twitter_url = get_post_meta( $postId, 'twitter_url', true );
- $youtube_url = get_post_meta( $postId, 'youtube_url', true );
- $linkdin_url = get_post_meta( $postId, 'linkdin_url', true );
- $pint_rest_url = get_post_meta( $postId, 'pint_rest_url', true );
- $google_url = get_post_meta( $postId, 'google_url', true );
- $instagram_url = get_post_meta( $postId, 'instagram_url', true );
- $social_media_feeds = get_post_meta( $postId, 'social_media_feeds', true );
- // Location for event /
- $venue_string = NULL;
- $sql_for_venue = "SELECT * FROM wp_esp_event_venue WHERE EVT_ID = '".$postId."'";
- $venue_id = $wpdb->get_results($sql_for_venue) or die(mysql_error());
- if( !empty( $venue_id ))
- $venue_id = $venue_id[0];
- if( !empty( $venue_id )){
- $venue_id = $venue_id->VNU_ID;
- $sql_for_venue_detail = "SELECT * FROM wp_esp_venue_meta WHERE VNU_ID = '$venue_id'"; $venue_detail = $wpdb->get_results($sql_for_venue_detail) or die(mysql_error());
- if( !empty( $venue_detail ))
- $venue_detail = $venue_detail[0] ;
- if( !empty( $venue_detail ) and !empty( get_the_title( $venue_id ))){
- $venue_string .= ' <a class="ahe-venue-detail " href="'.esc_url( get_permalink($venue_id) ).'" role="button"><i class="fa fa-map-marker" aria-hidden="true"></i>
- '.get_the_title( $venue_id ).' / '.$venue_detail->VNU_city.'</a>';
- ;}
- else if ( !empty( get_the_title( $venue_id ) )){
- $venue_string .= ' <a class="ahe-venue-detail" href="'.esc_url( get_permalink($venue_id) ).'" role="button"><i class="fa fa-map-marker" aria-hidden="true"></i>
- '.get_the_title( $venue_id ).'</a>';
- }elseif ( !empty($venue_detail->VNU_city) ) {
- $venue_string .= ' <a class="ahe-venue-detail" href="'.esc_url( get_permalink($venue_id) ).'" role="button"><i class="fa fa-map-marker" aria-hidden="true"></i>
- '.$venue_detail->VNU_city.'</a>';
- }
- }
- // Location for event /
- // Date_time for event /
- $sql = "SELECT * FROM wp_esp_datetime WHERE EVT_ID = '".$postId."'";
- $date_and_time = $wpdb->get_results($sql) or die(mysql_error());
- if( !empty( $date_and_time ) ){
- $date_string = NULL;
- $start_date_array = NULL;
- $end_date_array = NULL;
- foreach ( $date_and_time as $dateAndTime ) {
- $start_date = $dateAndTime->DTT_EVT_start;
- $end_date = $dateAndTime->DTT_EVT_end ;
- $start_date_array[] = array( $start_date , strtotime( $start_date ) );
- $end_date_array[] = array( $end_date , strtotime( $end_date ) );
- }
- if( !empty( $start_date_array ) and !empty( $end_date_array ) ){
- usort($start_date_array , "compare_Date");
- usort($end_date_array , "compare_Date");
- $date_string .= '<p class="ahe-venue-detail" ><i class="fa fa-calendar" aria-hidden="true"></i>
- '. date("jS, M h:i A", strtotime($start_date_array[0][0])) .' to ' . date("jS, M h:i A", strtotime($end_date_array[ count( $end_date_array ) - 1 ][0])) .' </p>';
- }else{
- $date_string = '<p class="ahe-venue-detail" ><i class="fa fa-calendar" aria-hidden="true"></i>
- Schedule is not available</p>';
- }
- }else{
- $date_string = '<p class="ahe-venue-detail" ><i class="fa fa-calendar" aria-hidden="true"></i>
- Schedule is not available</p>';
- }
- // Date_time for event /
- ?>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title><?php wp_title( '|', true, 'right' ); ?></title>
- <link rel="profile" href="http://gmpg.org/xfn/11" />
- <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
- <link rel="icon" type="image/x-icon" href="<?php echo $theme_setting['favicon_url']; ?>" />
- <link rel="shortcut icon" type="image/x-icon" href="<?php echo $javo_tso->get('favicon_url', '');?>" />
- <!-- Custom styles for this template -->
- <link href="<?php echo get_template_directory_uri(); ?>/assets/css/bootstrap.min.css" rel="stylesheet">
- <link href="<?php echo get_template_directory_uri(); ?>/assets/css/font-awesome.min.css" rel="stylesheet">
- <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" /></script>
- <script src="<?php echo get_template_directory_uri(); ?>/assets/js/jquery.colorbox.js"></script>
- <script src="<?php echo get_template_directory_uri(); ?>/assets/js/jquery.colorbox-min.js"></script>
- <script type='text/javascript' src='http://code.jquery.com/ui/1.11.4/jquery-ui.js?ver=4.6.1'></script>
- <?php wp_head(); ?>
- <script src="<?php echo get_template_directory_uri(); ?>/assets/js/jquery.colorbox.js"></script>
- <script src="<?php echo get_template_directory_uri(); ?>/assets/js/jquery.colorbox-min.js"></script>
- <link href="<?php echo get_template_directory_uri(); ?>/assets/css/event_style.css" rel="stylesheet">
- <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/assets/css/lightbox.min.css">
- </head>
- <!-- NAVBAR
- ================================================== -->
- <body <?php body_class(); ?>>
- <div class="navbar-wrapper">
- <div class="container">
- <nav class="navbar navbar-inverse navbar-static-top">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand small_logo" href="<?php echo home_url('/');?>"><img class="img-responsive" src="<?php echo $theme_setting['logo_url']; ?>"></a>
- </div>
- <div id="navbar" class="navbar-collapse collapse">.
- <ul class="nav navbar-nav">
- <?php
- wp_nav_menu( array(
- 'menu_class' => 'nav navbar-nav',
- 'theme_location' => 'primary',
- 'depth' => 3,
- 'container' => false,
- 'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
- 'walker' => new wp_bootstrap_navwalker()
- )); ?>
- </ul>
- </div>
- </div>
- </nav>
- </div>
- </div>
- <!-- Carousel
- ================================================== -->
- <div class="ahe-detail-header">
- <div class="fix_h_w">
- <img src="<?php echo get_the_post_thumbnail_url( $postId, 'full' ); ?>" width="100%" />
- <div class="container">
- <div class="ahe-detail-caption">
- <h1 class="slider-text"><?=stripslashes($postData->post_title);?></h1>
- <?php echo $date_string; ?>
- <?php echo $venue_string; ?>
- <p><a class="ahe-btn-ticket" href="#" role="button">Sponsor this Event</a></p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="container-fluid ahe-Tbooking">
- <div class="container">
- <h3>Ticket Booking</h3>
- <div class="ahe-booking-custom-form">
- <?php echo do_shortcode('[ESPRESSO_TICKET_SELECTOR event_id='.$postId.']'); ?>
- </div>
- </div>
- </div>
- <div class="container-fluid ahe-about-event">
- <div class="container">
- <h3>About the Event</h3>
- <div class="ahe-width">
- <?=stripslashes($postData->post_content);?>
- Event Website: <?php echo stripslashes($event_website); ?>
- </div>
- </div>
- </div>
- <div class="container-fluid ahe-Tbooking">
- <div class="container">
- <h3>MEDIA GALLERY</h3>
- <div>
- <!-- Nav tabs -->
- <ul class="nav nav-tabs" role="tablist">
- <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">PHOTOS</a></li>
- <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">VIDEOS</a></li>
- </ul>
- <!-- Tab panes -->
- <div class="tab-content">
- <div role="tabpanel" class="tab-pane active" id="home"><?php echo do_shortcode($event_images);?></div>
- <div role="tabpanel" class="tab-pane" id="profile"><?php echo do_shortcode($event_video);?></div>
- </div>
- </div>
- </div>
- </div>
- <!-- <?php if($event_images!='') { ?>
- <div class="container-fluid ahe-Tbooking">
- <div class="container">
- <h3>MEDIA GALLERY</h3>
- <?=stripslashes($event_images);?>
- </div>
- </div>
- <?php } ?>
- <?php if($event_video!='') { ?>
- <div class="container-fluid ahe-Tbooking">
- <div class="container">
- <h3>Event Video</h3>
- <?php echo do_shortcode($event_video);?>
- </div>
- </div>
- <?php } ?> -->
- <?php if($event_schedule!='') { ?>
- <div class="container-fluid ahe-about-event">
- <div class="container">
- <h3>Schedule</h3>
- <div class="ahe-width">
- <div class="ahe-custom-schedule-box">
- <?php echo do_shortcode($event_schedule);?>
- </div>
- </div>
- </div>
- </div>
- <?php } ?>
- <?php if($speakersartist>0){?>
- <div class="container-fluid ahe-Tbooking">
- <div class="container">
- <h3>MEET OUR SPEAKERS</h3>
- <div id="myCarousel" class="carousel slide" data-ride="carousel">
- <!-- Indicators -->
- <ol class="carousel-indicators">
- <?php
- foreach ( $people as $type => $persons ){
- $cbr1=0;
- foreach ( $persons as $person ){
- if($type=='Speakers/Artist'){
- ?>
- <li data-target="#myCarousel" data-slide-to="<?=$cbr1?>" <?php if($cbr1==0) { ?> class="active" <?php } ?>></li>
- <?php } $cbr1++; } } ?>
- </ol>
- <!-- Wrapper for slides -->
- <div class="carousel-inner" role="listbox">
- <?php
- $cbr12=0;
- foreach ( $people as $type => $persons ){
- foreach ( $persons as $person ){
- if($type=='Speakers/Artist'){
- $spnsr = $person->ID();
- $feature_image = get_the_post_thumbnail( $person->ID(), array( 800, 300 ) );
- $people_website = get_post_meta( $spnsr, 'people_website', true );
- ?>
- <div class="item <?php if($cbr12==0) { ?>active<?php } ?>">
- <div class="row">
- <div class="col-sm-4"><a href="<?php echo get_permalink($spnsr) ?>"><?=$feature_image;?></a></div>
- <div class="col-sm-8"><h5><a href="<?php echo get_permalink($spnsr) ?>"><?php echo stripslashes($person->full_name()); ?></a> <!-- - <small>Project Manager</small> --></h5>
- <?php echo $person->get('PER_bio' ); ?>
- <!-- <div class="ahe-social-icon">
- <a target="_blank" href="#"><i class="fa fa-facebook"></i></a>
- <a target="_blank" href="#"><i class="fa fa-twitter"></i></a>
- <a target="_blank" href="#"><i class="fa fa-globe"></i></a>
- </div> -->
- Website: <a href="<?=stripslashes($people_website);?>" target="_blank"><?=stripslashes($people_website);?></a>
- </div>
- </div>
- </div>
- <?php $cbr12++; } } } ?>
- </div>
- <!-- Left and right controls -->
- <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
- <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
- <span class="sr-only">Previous</span>
- </a>
- <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
- <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
- <span class="sr-only">Next</span>
- </a>
- </div>
- </div>
- </div>
- <?php } ?>
- <?php if($sponsorsCount>0) { ?>
- <div class="container-fluid ahe-about-event">
- <div class="container">
- <h3>Our Sponsors</h3>
- <!-- Wrapper for slides -->
- <div class="slider1">
- <?php
- $cbr1=0;
- foreach ( $people as $type => $persons ){
- foreach ( $persons as $person ){
- if($type=='Sponsors'){
- $spnsr = $person->ID();
- $feature_image = get_the_post_thumbnail_url( $person->ID());
- $people_website = get_post_meta( $spnsr, 'people_website', true );
- ?>
- <div class="slide"><a href="<?php echo get_permalink($spnsr) ?>"><img src="<?=$feature_image;?>" ></a></div>
- <?php $cbr1++; } } } ?>
- </div>
- <!-- Left and right controls -->
- </div>
- </div>
- <?php } ?>
- <?php if($organizerCount>0) { ?>
- <div class="container-fluid ahe-organizer">
- <div class="container">
- <h3>Organizer</h3>
- <div class="ahe-width">
- <ul class="ahe-organizer-section">
- <?php
- $cbr1=0;
- foreach ( $people as $type => $persons ){
- foreach ( $persons as $person ){
- if($type=='Organizer'){
- $spnsr = $person->ID();
- $organizer_website = get_post_meta( $spnsr, 'people_website', true );
- $organizer_company = get_post_meta( $spnsr, 'organizer_company', true );
- $organizer_number = get_post_meta( $spnsr, 'organizer_number', true );
- ?>
- <li>Organizer Name: <span><a href="<?php echo get_permalink($spnsr) ?>"><?php echo stripslashes($person->full_name()); ?></a></span></li>
- <li>Organizer Company: <span><?=stripslashes($organizer_company)?></span></li>
- <li>Organizer Website: <span><a href="<?=stripslashes($organizer_website)?>" target="_blank"><?=stripslashes($organizer_website)?></a></span></li>
- <li>Organizer Number: <span><?=stripslashes($organizer_number)?></span></li>
- <?php } $cbr1++; } } ?>
- </ul>
- </div>
- </div>
- </div>
- <?php } ?>
- <?php if($event_faq!='') { ?>
- <div class="container-fluid ahe-faq">
- <div class="container">
- <h3 class="ahe-white">FAQS</h3>
- <div class="ahe-width">
- <?php echo do_shortcode($event_faq); ?>
- </div>
- </div>
- </div>
- <?php } ?>
- <!-- <?php if($event_social_media!='') { ?>
- <div class="container-fluid ahe-about-event">
- <div class="container">
- <h3>social media feeds</h3>
- <?php echo nl2br($event_social_media); ?>
- </div>
- </div>
- <?php } ?> -->
- <?php if($event_term_condition!='') { ?>
- <div class="container-fluid ahe-organizer">
- <div class="container">
- <h3>Terms & Condition</h3>
- <div class="ahe-width">
- <?php echo stripslashes($event_term_condition); ?>
- </div>
- </div>
- </div>
- <?php } ?>
- <!-- <?php if($comments!='') { ?>
- <div class="container-fluid ahe-about-event">
- <div class="container">
- <h3>Comments</h3>
- <div class="ahe-width">
- <?=stripslashes($comments);?>
- </div>
- </div>
- </div>
- <?php } ?> -->
- <div class="container-fluid ahe-organizer">
- <div class="container">
- <h3>Let's connect!</h3>
- <?php echo do_shortcode($social_media_feeds); ?>
- <div class="ahe-social-icon">
- <?php if($instagram_url!='') { ?>
- <a target="_blank" href="<?=$instagram_url?>"><i class="fa fa-instagram"></i></a>
- <?php } ?>
- <?php if($facebook_url!='') { ?>
- <a target="_blank" href="<?=$facebook_url?>"><i class="fa fa-facebook"></i></a>
- <?php } ?>
- <?php if($twitter_url!='') { ?>
- <a target="_blank" href="<?=$twitter_url?>"><i class="fa fa-twitter"></i></a>
- <?php } ?>
- <?php if($youtube_url!='') { ?>
- <a target="_blank" href="<?=$youtube_url?>"><i class="fa fa-youtube"></i></a>
- <?php } ?>
- <?php if($linkdin_url!='') { ?>
- <a target="_blank" href="<?=$linkdin_url?>"><i class="fa fa-linkedin"></i></a>
- <?php } ?>
- <?php if($pint_rest_url!='') { ?>
- <a target="_blank" href="<?=$pint_rest_url?>"><i class="fa fa-pinterest"></i></a>
- <?php } ?>
- <?php if($google_url!='') { ?>
- <a target="_blank" href="<?=$google_url?>"><i class="fa fa-google-plus"></i></a>
- <?php } ?>
- </div>
- <div class="ahe-subscribe">
- <h5>Subscribe to Our Newsletter Now & Stay Informed!</h5>
- <div class="ahe-field-main">
- <input type="email" placeholder="Enter your email"><input type="button" value="Subscribe">
- </div>
- </div>
- </div>
- </div>
- <!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> -->
- <script src="<?php echo get_template_directory_uri(); ?>/assets/js/lightbox-plus-jquery.min.js"></script>
- <script src="<?php echo get_template_directory_uri(); ?>/assets/js/jquery.bxslider.js"></script>
- <link href="<?php echo get_template_directory_uri(); ?>/assets/js/jquery.bxslider.css" rel="stylesheet">
- </body>
- <?php get_footer(); ?>
- <script type="text/javascript">
- // jQuery(".ticket-selector-tbl-qty-slct option[value='0']").each(function() {
- //jQuery(this).remove();
- //});
- jQuery(document).ready(function(){
- jQuery('.slider1').bxSlider({
- slideWidth: 200,
- minSlides: 2,
- maxSlides: 4,
- slideMargin: 10
- });
- });
- </script>
- </html>
Add Comment
Please, Sign In to add comment