-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-climate-dispatch.php
69 lines (43 loc) · 2.01 KB
/
single-climate-dispatch.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
<?php
/**
* The template for displaying all single posts and attachments
*/
get_header(); ?>
<header class="header" role="banner" style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/images/swoosh.png'), url('<?php echo get_template_directory_uri(); ?>/assets/images/default-header.jpg')">
<div class="navWrap">
<div class="grid-container">
<?php get_template_part( 'parts/nav', 'offcanvas-topbar' ); ?>
</div>
</div>
<div id="heroTitle">
<h1>News & Stories</h1>
</div>
</header> <!-- started in header.php-->
<div class="content">
<div class="grid-container">
<div class="inner-content grid-x grid-margin-x grid-padding-x">
<main class="main small-12 medium-8 large-8 cell" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(''); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
<header class="article-header">
<h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
<?php get_template_part( 'parts/content', 'byline' ); ?>
</header> <!-- end article header -->
<section class="entry-content" itemprop="text">
<?php the_content(); ?>
</section> <!-- end article section -->
<footer class="article-footer">
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'jointswp' ), 'after' => '</div>' ) ); ?>
<p class="tags"><?php the_tags('<span class="tags-title">' . __( 'Tags:', 'jointswp' ) . '</span> ', ', ', ''); ?></p>
</footer> <!-- end article footer -->
<?php comments_template(); ?>
</article> <!-- end article -->
<?php endwhile; else : ?>
<?php get_template_part( 'parts/content', 'missing' ); ?>
<?php endif; ?>
</main> <!-- end #main -->
<?php get_sidebar(); ?>
</div> <!-- end #inner-content -->
</div>
</div> <!-- end #content -->
<?php get_footer(); ?>