HEX
Server: Apache/2.4.25
System: Linux ion14 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64
User: (10087)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,system, exec, shell_exec, passthru, popen, proc_open
Upload Files
File: /home/www/web115/wordpress/wp-content/themes/osmosis/tribe-events/pro/related-events.php
<?php
/**
 * Related Events Template
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

$posts = tribe_get_related_posts();

if ( class_exists( 'Tribe__Events__Main' ) ) {
	$post_type = Tribe__Events__Main::POSTTYPE;
} else {
	$post_type = TribeEvents::POSTTYPE;
}

?>
<?php
if ( is_array( $posts ) && ! empty( $posts ) ) {

	echo '<div class="grve-related-post">';
	echo '<h5 class="grve-related-title">' . esc_html__( 'Related Events', 'osmosis' ) . '</h5>';
	echo '<ul>';
	foreach ( $posts as $post ) {
		echo '<li>';

		$thumb = ( has_post_thumbnail( $post->ID ) ) ? get_the_post_thumbnail( $post->ID, 'grve-image-small-rect-horizontal' ) : '<img src="' . get_template_directory_uri() . '/images/empty/tribe-related-events-placeholder.png" alt="' . get_the_title( $post->ID ) . '" />';;
		echo '<div class="grve-media grve-image-hover">';
		echo '<a href="' . tribe_get_event_link( $post ) . '" class="url" rel="bookmark">' . $thumb . '</a>';
		echo '</div>';

		echo '<div class="grve-content">';

		echo '<a href="' . tribe_get_event_link( $post ) . '" class="url" rel="bookmark"><h6 class="grve-title">' . get_the_title( $post->ID ) . '</h6></a>';

		if ( $post->post_type == $post_type ) {
			echo '<div class="grve-caption">' . tribe_events_event_schedule_details( $post ) . '</div>';
		}
		echo '</div>';
		echo '</li>';
	}
	echo '</ul>';
	echo '</div>';
}
?>