-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-tribe_ext_speaker.php
35 lines (32 loc) · 1.22 KB
/
single-tribe_ext_speaker.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* The template for displaying the event speaker single page
* This is not ideal because it doesn't use the event hierarchy from The Events Calendar, but it's not clear
* how to do that in the V2 templating system of The Events Calendar when using custom post types
* See tribe-ext-speaker-linked-post-type plugin, but the template part only works with their V1 templates.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package MinnPost Largo
*/
while ( have_posts() ) :
the_post();
$permalink_category_slug = minnpost_get_event_category_slug( get_the_ID() );
if ( '' !== $permalink_category_slug ) :
get_header( $permalink_category_slug );
else :
get_header();
endif;
?>
<div id="primary" class="m-layout-primary o-<?php echo $permalink_category_slug; ?> o-<?php echo $permalink_category_slug; ?>-speaker o-<?php echo $permalink_category_slug; ?>-speaker-single">
<main id="main" class="site-main">
<?php get_template_part( 'template-parts/post-tribe_ext_speaker', $permalink_category_slug ); ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
if ( '' !== $permalink_category_slug ) :
get_footer( $permalink_category_slug );
else :
get_footer();
endif;
endwhile; // End of the loop.