-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
55 lines (45 loc) · 1.34 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
<?php
/**
* Single blog post page
*
* @package WordPress
* @subpackage AG_Eyecare
* @since Twenty Fourteen 1.0
*/
get_header();
while ( have_posts() ) : the_post();
$the_title = get_the_title();
endwhile;
?>
<body <?php body_class(); ?>>
<?php get_template_part( '/template-parts/content', 'nav' ); ?>
<div class="main-container">
<section class="container-blog-single">
<div class="container-single-header bg--primary">
<h1><?php echo $the_title; ?></h1>
</div>
<div class="container">
<div class="row">
<?php while ( have_posts() ) : the_post(); ?>
<div class="row pos-vertical-align-columns">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_content(); ?>
</article>
</div>
<?php endwhile; ?>
<hr>
<div class="text-center">
<a href="/blog" class="btn">
<span class="btn__text">
Back to all articles
</span>
<i class="ion-arrow-left-c"></i>
</a>
</div>
</div>
</div>
</section>
</div>
<?php
get_footer();
?>