-
Notifications
You must be signed in to change notification settings - Fork 2
/
single-talk.php
37 lines (30 loc) · 1.13 KB
/
single-talk.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
36
37
<?php get_header(); the_post(); ?>
<div class="row">
<?php get_sidebar('conferences') ?>
<div class="content">
<article <?php post_class() ?>>
<header>
<?php the_post_thumbnail() ?>
<h2 class="post-title" lang="<?php talk_lang_attribute() ?>"><?php the_title() ?></h2>
<?php sudweb_list_speakers(get_the_id()) ?>
</header>
<?php if (function_exists('p2p_list_posts')): ?>
<?php $schedule = p2p_type('talk_to_schedule')->get_connected(get_the_id())->next_post() ?>
<p>
<span class="post-datetime">
<a href="<?php echo get_post_permalink($schedule->ID) ?>"><?php echo $schedule->post_title ?></a>
<?php if (get_field('schedule')): ?>à <?php the_field('schedule') ?><?php endif ?>
</span>
<?php if (function_exists('get_the_terms')): ?>
(<?php echo get_the_terms(get_the_id(), 'talk_types')->name ?>)
<?php endif ?>
<?php if (get_field('language')): ?>
– <span class="language"><?php the_field('language') ?></span>
<?php endif ?>
</p>
<?php endif ?>
<div lang="<?php talk_lang_attribute() ?>"><?php the_content() ?></div>
</article>
</div>
</div>
<?php get_footer() ?>