-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-post_type_shows.php
74 lines (63 loc) · 2.17 KB
/
single-post_type_shows.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
<?php
/**
* The Template for displaying all single Show pages.
*
* @package YIKES Starter
*/
// Build the icon.
$icon = '<div class="show-header-svg">';
// Show star if applicable.
$icon .= lwtv_plugin()->get_show_stars( get_the_ID() );
// Show love if applicable.
if ( get_post_meta( get_the_ID(), 'lezshows_worthit_show_we_love', true ) ) {
$heart = lwtv_symbolicons( 'hearts.svg', 'fa-heart' );
$icon .= ' <span role="img" aria-label="We Love This Show!" data-bs-target="tooltip" title="We Love This Show!" class="show-we-love">' . $heart . '</span>';
}
$icon .= '</div>';
// Icon is built.
get_header(); ?>
<div class="archive-subheader">
<div class="jumbotron">
<div class="container">
<header class="archive-header">
<div class="row">
<div class="col-10"><?php the_title( '<h1 class="entry-title">', '</h1>' ); ?></div>
<div class="col-2 icon plain"><?php echo $icon; // phpcs:ignore WordPress.Security.EscapeOutput ?></div>
</div>
</header><!-- .archive-header -->
</div><!-- .container -->
</div><!-- /.jumbotron -->
</div>
<div id="main" tabindex="-1" class="site-main" role="main">
<div class="container">
<div class="row">
<div class="col-sm-8">
<div id="primary" class="content-area">
<div id="content" class="site-content clearfix" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content show-page">
<div class="card">
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content/' . get_post_type() );
// Force Jetpack share links to display ONCE.
lwtv_yikes_jetpack_post_meta();
// Echo last updated.
lwtv_last_updated_date( get_the_ID() );
endwhile; // end of the loop.
?>
</div>
</div><!-- .entry-content -->
</article><!-- #post-## -->
</div><!-- #content -->
</div><!-- #primary -->
</div><!-- .col-sm-8 -->
<div class="col-sm-4 site-sidebar site-loop showschar-section">
<?php get_sidebar(); ?>
</div><!-- .col-sm-4 -->
</div><!-- .row -->
</div><!-- .container -->
</div><!-- #main -->
<?php
get_footer();