-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
68 lines (56 loc) · 4.3 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
<?php get_header(); ?>
<div class="o-layout-row">
<main class="" role="main" itemscope itemprop="mainContentOfPage" itemtype="https://schema.org/WebPageElement">
<div class="u-mobile-pad">
<div class="o-wrapper-wide">
<header class="c-article-header">
<div>
<div class="c-meta-pill">
<?php
$categories = get_the_category();
if ( ! empty( $categories ) ) {
foreach ( $categories as $category ) {
echo '<span class="post-category">' . esc_html( $category->name ) . '</span>';
}
}
?>
<div class="c-read-time"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM13 12V7H11V14H17V12H13Z"></path></svg><?php echo do_shortcode('[maw_reading_time]'); ?> </div>
</div>
<h1 class="c-article-title h2-style"><?php the_title(); ?></h1>
</div>
</header>
</div>
</div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section class="editor-content clearfix">
<!-- /article-header -->
<article <?php post_class('alignwide'); ?> role="article">
<?php the_content(); ?>
<div class="c-post-footer">
<!-- AddToAny BEGIN -->
<?php get_template_part( 'template-part/post/entry-meta' ); ?>
<div class="c-social-share">
<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
<div>
<a class="c-return-link" href="/blog">View all posts</a>
<a class="a2a_button_facebook"><svg xmlns="http://www.w3.org/2000/svg" height="20" width="auto" viewBox="0 0 320 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M80 299.3V512H196V299.3h86.5l18-97.8H196V166.9c0-51.7 20.3-71.5 72.7-71.5c16.3 0 29.4 .4 37 1.2V7.9C291.4 4 256.4 0 236.2 0C129.3 0 80 50.5 80 159.4v42.1H14v97.8H80z"/></svg></a>
<a class="a2a_button_x"><svg xmlns="http://www.w3.org/2000/svg" height="20" width="auto" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg></a>
<a class="a2a_button_linkedin"><svg xmlns="http://www.w3.org/2000/svg" height="20" width="auto" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M100.3 448H7.4V148.9h92.9zM53.8 108.1C24.1 108.1 0 83.5 0 53.8a53.8 53.8 0 0 1 107.6 0c0 29.7-24.1 54.3-53.8 54.3zM447.9 448h-92.7V302.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V448h-92.8V148.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V448z"/></svg></a>
<a class="a2a_button_email"><svg xmlns="http://www.w3.org/2000/svg" height="20" width="auto" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M64 112c-8.8 0-16 7.2-16 16v22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"/></svg></a>
<script async src="https://static.addtoany.com/menu/page.js"></script>
</div>
</div>
</div>
<!-- AddToAny END -->
</div>
</article>
<?php endwhile; ?>
<?php get_template_part( 'template-part/post/post-nav' ); ?>
<?php else : ?>
<?php get_template_part( 'template-part/post/not-found' ); ?>
<?php endif; ?>
</section>
</main>
</div>
<!-- /layout-row-->
<?php get_footer(); ?>