-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-episode.php
executable file
·97 lines (68 loc) · 2.84 KB
/
single-episode.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
/**
* Single Episode Template
*/
get_header(); // Loads the header.php template. ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="hero-container">
<div id="hero-wrapper">
<div id="hero">
<div class="hero-meta">
<h1 class="show-name">
<span class="name"><?php the_category(' '); ?></span>
</h1>
<div class="show-description">
<?php convergence_show_description(); ?>
</div>
</div>
<div class="hero-image">
<?php
$image = get_the_image(array('size'=>'medium', 'link_to_post'=>false, 'format'=>'array' ));
$image_url = convergence_villain_photon_image($image['url']);
?>
<a href="<?php echo get_permalink(); ?>" title="<?php echo $image['alt']; ?>">
<img src="<?php echo $image_url; ?>" alt="<?php echo $image['alt']; ?>" class="<?php echo $image['class']; ?>" />
</a>
</div>
</div>
</div>
</div>
<div id="content-container">
<div id="content-wrapper">
<div id="content" class="hfeed content episode">
<h1 class="show-title"><a href="<?php echo get_permalink() ?>"><?php the_title(); ?></a></h1>
<?php convergence_episode(); ?>
<?php convergence_posted(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<div class="entry-content">
<?php if (get_the_excerpt() != ''): ?>
<div class="entry-meta">
<?php echo get_the_excerpt(); ?>
</div>
<?php endif; ?>
<!-- nsfw? -->
<?php if (C::get_nsfw() != ''): ?>
<div class="episode-nsfw">
<p>This episode has been flagged as <span class="nsfw" title="Not Safe For Work">NSFW</span>. Please be advised.</p>
</div>
<?php endif; ?>
<!-- content -->
<?php the_content(); ?>
<div class="edit"><?php edit_post_link( 'Edit Episode' ); ?></div>
</div><!-- .entry-content -->
<?php do_atomic( 'after_entry' ); ?>
</div><!-- .hentry -->
<?php do_atomic( 'after_singular' ); ?>
</div><!-- .content .hfeed -->
<div id="content-sidebar">
<?php get_template_part('episode-file'); ?>
<?php get_template_part('episode-people'); ?>
<?php get_template_part('episode-subscribe'); ?>
<?php get_template_part('episode-share'); ?>
<?php get_template_part('episode-navigation'); ?>
</div><!-- #content-sidebar -->
</div><!-- #content-wrapper -->
</div><!-- #content-container -->
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer(); // Loads the footer.php template. ?>