-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
93 lines (84 loc) · 3.39 KB
/
single.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
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header();
?>
<main>
<section id="blog-single" class="margin">
<div class="container">
<div class="row">
<div class="col-12">
<?php if (have_posts()) :
while (have_posts()) : the_post(); ?>
<article id="blog-post" itemscope="" itemtype="http://schema.org/BlogPosting">
<div class="row g-5">
<div class="col-12 col-lg-8">
<h1 itemprop="name headline" class="fw-bold"><?php the_title(); ?></h1>
<?php if ( get_field('subheading') ) : ?>
<h5 class="mb-0"><?php echo get_field('subheading'); ?></h5>
<?php endif; ?>
</div>
<div class="col-12 col-lg-4 d-flex align-items-end justify-content-lg-end">
<div class="inner">
<i class="fa-regular fa-clock me-2"></i><?php echo do_shortcode('[rt_reading_time postfix="mins"]'); ?>
</div>
</div>
</div>
<?php if ( has_post_thumbnail()) : ?>
<div class="margin-sm">
<div class="row">
<div class="col-12">
<figure>
<?php the_post_thumbnail(); ?>
</figure>
</div>
</div>
</div>
<?php endif; ?>
<div class="margin-sm">
<div class="row g-5">
<div class="col-12 col-lg-8">
<div class="content" itemprop="articleBody">
<?php the_content(); ?>
</div>
</div>
<aside class="col-12 col-lg-4 ps-lg-5">
<div class="inner">
<h5 class="mb-3">Share this</h5>
<a href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>"e=<?php the_title(); ?>" target="_blank" class="me-3" aria-label="Share to Facebook"><i class="fa-brands fa-facebook"></i></a>
<a href="https://twitter.com/intent/tweet?text=<?php the_title(); ?>&url=<?php the_permalink(); ?>" target="_blank" class="me-3" aria-label="Share to Twitter"><i class="fa-brands fa-twitter"></i></a>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>&summary=&source=" target="_blank" class="me-3" aria-label="Share to Linkedin"><i class="fa-brands fa-linkedin"></i></a>
<a href="mailto:?subject=<?php the_title(); ?>&body=<?php the_permalink(); ?>" target="_blank" class="me-3" aria-label="Share via Email"><i class="fa-solid fa-envelope"></i></a>
</div>
</aside>
</div>
</div>
<div class="border-top">
<div class="padding-sm">
<div class="row g-5">
<div class="col-12 col-lg-4">
<p class="mb-4">Published:</p>
<h5><time datetime="<?php the_time('jS F, Y') ?>" itemprop="datePublished"><small><?php the_time('jS F, Y') ?></small></time></h5>
</div>
<div class="col-12 col-lg-4">
<p class="mb-4">Was this post helpful?</p>
<?php echo do_shortcode('[posts_like_dislike]');?>
</div>
<div class="col-12 col-lg-4">
<p class="mb-4">Continue Reading</p>
<strong><a href="<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>">View All Articles</a></strong>
</div>
</div>
</div>
</div>
</article>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
</section>
</main>
<?php get_footer(); ?>