This repository was archived by the owner on Oct 6, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathcontent-event.php
More file actions
96 lines (66 loc) · 2.85 KB
/
Copy pathcontent-event.php
File metadata and controls
96 lines (66 loc) · 2.85 KB
1
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <div class="breadcrumb-wrap"> <?php $event_type_name = get_post_meta( get_the_ID(), 'event_type', true); $openlab_events_page_id = get_theme_mod('openlab_events_page_id'); if($openlab_events_page_id): $ev_archive_link = get_page_link($openlab_events_page_id); endif; switch ($event_type_name) { case 'speech': echo '<div class="bcrmb">'; if( isset($ev_archive_link) && $ev_archive_link !== '' ): echo '<a href="'. esc_url($ev_archive_link) .'">'. __('Events','openlab-txtd' ) .'</a>'; else: echo '<a href="#" class="theme-error">'. __('Please select the Event page in Theme Options!','openlab-txtd' ) .'</a>'; endif; echo '</div>'; echo '<div class="bcrmb">'; echo '<span class="seperator">></span>'; echo '</div>'; echo '<div class="bcrmb">'; echo '<span class="current-event-type">'. __('Speech','openlab-txtd' ) .'</span>'; echo '</div>'; break; case 'seminar': echo '<div class="bcrmb">'; if( isset($ev_archive_link) && $ev_archive_link !== '' ): echo '<a href="'. esc_url($ev_archive_link) .'">'. __('Events','openlab-txtd' ) .'</a>'; else: echo '<a href="#" class="theme-error">'. __('Please select the Events page in Theme Options','openlab-txtd' ) .'</a>'; endif; echo '</div>'; echo '<div class="bcrmb">'; echo '<span class="seperator">></span>'; echo '</div>'; echo '<div class="bcrmb">'; echo '<span class="current-event-type">'. __('Seminar','openlab-txtd' ) .'</span>'; echo '</div>'; break; case 'workshop': echo '<div class="bcrmb">'; if( isset($ev_archive_link) && $ev_archive_link !== '' ): echo '<a href="'. esc_url($ev_archive_link) .'">'. __('Events','openlab-txtd' ) .'</a>'; else: echo '<a href="#" class="theme-error">'. __('Please select the Events page in Theme Options','openlab-txtd' ) .'</a>'; endif; echo '</div>'; echo '<div class="bcrmb">'; echo '<span class="seperator">></span>'; echo '</div>'; echo '<div class="bcrmb">'; echo '<span class="current-event-type">'. __('Workshop','openlab-txtd' ) .'</span>'; echo '</div>'; break; default: echo '<span class="error">Error</span>'; } ?> </div><!-- breadcrumb-wrap END--> <h1 class="entry-title single-event"><?php the_title(); ?></h1> </header><!-- .entry-header --> <div class="entry-content"> <?php the_content(); ?> </div><!-- .entry-content --></article><!-- #post-## -->