89 lines
3.5 KiB
PHP
89 lines
3.5 KiB
PHP
<?php
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
get_header();
|
|
|
|
$tribe_event_speaker_show = Upstudy::setting( 'tribe_event_speaker_show' );
|
|
$tribe_event_organizer_show = Upstudy::setting( 'tribe_event_organizer_show' );
|
|
$tbe_content_before = Upstudy::setting( 'tbe_content_before' );
|
|
$tbe_content_after = Upstudy::setting( 'tbe_content_after' );
|
|
$upstudy_single_tribe_event_sidebar = Upstudy::setting( 'upstudy_single_tribe_event_sidebar' );
|
|
|
|
$tpc_tp_content_column = 'upstudy-col-lg-8';
|
|
if ( ! $upstudy_single_tribe_event_sidebar ) :
|
|
$tpc_tp_content_column = 'upstudy-col-lg-12';
|
|
endif;
|
|
|
|
echo '<div class="tpc-event-details tpc-site-content-inner' . esc_attr( apply_filters( 'upstudy_container_class', ' upstudy-container' ) ) . '">';
|
|
echo '<div class="upstudy-main-content-inner">';
|
|
|
|
echo '<div class="tpc-event-container-wrapper">';
|
|
|
|
echo '<div class="upstudy-row">';
|
|
echo '<div class="' . esc_attr( $tpc_tp_content_column ) . '">';
|
|
|
|
echo '<div class="tpc-event-content-wrap">';
|
|
|
|
$upstudy_tribe_events_video = get_post_meta( get_the_ID(), 'upstudy_tribe_events_video', true);
|
|
|
|
if ( $upstudy_tribe_events_video ) :
|
|
|
|
echo '<div class="intro-video-sidebar intro-video-content main-thumbnail">';
|
|
echo '<div class="intro-video-content">';
|
|
echo '<div class="intro-video" style="background-image: url(' . esc_url( get_the_post_thumbnail_url(get_the_ID(),'full') ) . ')">';
|
|
|
|
echo '<a href="' . esc_url( $upstudy_tribe_events_video ) . '" class="upstudy-popup-videos bla-2">';
|
|
echo '<i class="dt-icon-play-button"></i>';
|
|
echo '</a>';
|
|
|
|
echo '</div>';
|
|
echo '</div>';
|
|
echo '</div>'; // End intro-video-sidebar
|
|
|
|
elseif( has_post_thumbnail() ) :
|
|
|
|
echo '<div class="main-thumbnail">';
|
|
echo tribe_event_featured_image( get_the_ID(), 'full', false);
|
|
echo '</div>';
|
|
|
|
endif;
|
|
|
|
if ( $tbe_content_before ) :
|
|
do_action( 'tribe_events_single_event_before_the_content' );
|
|
endif;
|
|
|
|
the_content();
|
|
|
|
if ( $tbe_content_after ) :
|
|
do_action( 'tribe_events_single_event_after_the_content' );
|
|
endif;
|
|
|
|
echo '</div>';
|
|
|
|
echo '</div>';
|
|
|
|
if ( $upstudy_single_tribe_event_sidebar ) :
|
|
echo '<div class="upstudy-col-lg-4">';
|
|
|
|
get_template_part( 'tribe/tpl-part/sidebar' );
|
|
|
|
echo '</div>';
|
|
endif;
|
|
|
|
|
|
echo '</div>';
|
|
|
|
if ( $tribe_event_speaker_show ) :
|
|
get_template_part( 'tribe/tpl-part/event', 'speaker' );
|
|
endif;
|
|
|
|
if ( $tribe_event_organizer_show ) :
|
|
get_template_part( 'tribe/tpl-part/event', 'organizer' );
|
|
endif;
|
|
|
|
echo '</div>';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
|
|
get_footer(); |