Files
Landing/wp-content/themes/upstudy/tribe/tpl-part/event-organizer.php
T
2026-04-23 04:33:43 +03:30

44 lines
1.5 KiB
PHP

<?php
$show_event_vanue = Upstudy::setting( 'show_event_vanue' );
$tribe_event_organizer_title = Upstudy::setting( 'tribe_event_organizer_title' );
$tribe_event_organizer_layout = Upstudy::setting( 'tribe_event_organizer_layout' );
$tribe_event_organizer_columns = Upstudy::setting( 'tribe_event_organizer_columns' );
$organizer_ids = tribe_get_organizer_ids();
$multiple = count($organizer_ids) > 1;
if ( $show_event_vanue && !empty( $organizer_ids ) ) {
echo '<div class="tpc-event-organizer-section">';
echo '<h3 class="heading-title">' . esc_html($tribe_event_organizer_title) . '</h3>';
echo '<div class="upstudy-row">';
foreach ( $organizer_ids as $organizer ) {
if ( !$organizer ) {
continue; // Skip if there's no organizer
}
if ( tribe_get_organizer_link( $organizer ) ) {
echo '<div class="upstudy-col-lg-'. esc_attr( $tribe_event_organizer_columns ). '">';
// Check if the organizer post has a featured image, and display it if exists
if ( has_post_thumbnail( $organizer ) ) {
echo '<div class="upstudy-organizer-thumb">';
echo get_the_post_thumbnail( $organizer, 'medium' ); // Display the full-size featured image
echo '</div>';
}
echo '</div>';
}
}
echo '</div>';
echo '</div>';
}