76 lines
2.3 KiB
PHP
76 lines
2.3 KiB
PHP
<?php
|
|
/**
|
|
* The Template for displaying content single event.
|
|
*
|
|
* Override this template by copying it to yourtheme/wp-events-manager/content-single-event.php
|
|
*
|
|
* @author ThimPress, leehld
|
|
* @package WP-Events-Manager/Template
|
|
* @version 2.1.7
|
|
*/
|
|
|
|
/**
|
|
* Prevent loading this file directly
|
|
*/
|
|
defined( 'ABSPATH' ) || exit();
|
|
|
|
$upstudy_single_tp_event_sidebar = Upstudy::setting( 'upstudy_single_tp_event_sidebar' );
|
|
$upstudy_single_tp_event_speaker = Upstudy::setting( 'upstudy_single_tp_event_speaker' );
|
|
$upstudy_single_tp_event_comment = Upstudy::setting( 'upstudy_single_tp_event_comment' );
|
|
|
|
$tpc_tp_content_column = 'upstudy-col-lg-8';
|
|
if ( wpems_get_option( 'allow_register_event' ) == 'no' || ! $upstudy_single_tp_event_sidebar ) :
|
|
$tpc_tp_content_column = 'upstudy-col-lg-12';
|
|
endif;
|
|
|
|
echo '<div class="tpc-event-container-wrapper">';
|
|
echo '<div class="upstudy-row">';
|
|
echo '<div class="' . esc_attr( $tpc_tp_content_column ) . '">';
|
|
|
|
$upstudy_tp_event_video = get_post_meta( get_the_ID(), 'upstudy_tp_event_video', true);
|
|
|
|
if ( $upstudy_tp_event_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_tp_event_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">';
|
|
do_action( 'tp_event_single_event_thumbnail' );
|
|
echo '</div>';
|
|
|
|
endif;
|
|
|
|
the_content();
|
|
|
|
echo '</div>';
|
|
|
|
if ( $upstudy_single_tp_event_sidebar ) :
|
|
echo '<div class="upstudy-col-lg-4">';
|
|
|
|
get_template_part( 'wp-events-manager/loop/register' );
|
|
|
|
echo '</div>';
|
|
endif;
|
|
|
|
|
|
echo '</div>';
|
|
|
|
if ( $upstudy_single_tp_event_speaker ) :
|
|
wpems_get_template_part( 'tpl-part/event', 'speaker' );
|
|
endif;
|
|
|
|
if ( $upstudy_single_tp_event_comment && ( comments_open() || get_comments_number() ) ) :
|
|
comments_template();
|
|
endif;
|
|
echo '</div>'; |