-
Notifications
You must be signed in to change notification settings - Fork 4
/
single.php
77 lines (75 loc) · 2.18 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
<?php
/**
* The template for displaying all single posts.
*
* @package site
*/
get_header('blog-single'); ?>
<?php while ( have_posts() ) : the_post(); ?>
<style>
#blog-single-header{
background-image: url("<?php echo get_the_post_thumbnail_url(get_the_ID()); ?>");
}
</style>
<div id="blog-single-header"></div>
<div id="page" class="blog-single">
<div class="container">
<div class="row">
<div class="blog-content col-12">
<p class="etime"><?php echo estimated_reading(get_the_content()); ?></p>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
</div>
<div class="col-lg-10 offset-lg-1">
<div class="subs-box">
<?php
$page = get_page_by_path( 'blog' );
echo do_shortcode(get_field('blog_newsletter_single', $page->ID));
?>
</div>
</div>
<div class="col-lg-10 offset-lg-1">
<hr>
</div>
<div class="tags col-lg-10 offset-lg-1">
<div class="row">
<div class="col-12">
<div class="row">
<div class="col-lg-3 mb-lg-0 mb-3 self-align-center">
<?php echo get_avatar( get_the_author_meta( 'ID' ) , '','','', array('class' => 'img-fluid img-avatar') ); ?>
</div>
<div class="col-lg-9">
<h5><?php the_author(); ?></h5>
<p><?php the_author_meta('description'); ?></p>
</div>
</div>
</div>
</div>
</div>
<div class="comments col-lg-10 offset-lg-1">
<?php
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
</div>
</div>
</div>
<div class="related">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2>Publicações relacionadas</h2>
</div>
</div>
<div class="row blog-related-list"></div>
<div class="row">
<div class="col-12 text-center">
<button data-id="2" class="btn-mais-single" title="">ver mais publicações</button>
</div>
</div>
</div>
</div>
</div><!-- #content -->
<?php endwhile; ?>
<?php get_footer(); ?>