forked from midianinja/redeninja
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-post.php
147 lines (121 loc) · 4.88 KB
/
single-post.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?php
get_header();
$show_default_title = get_post_meta( get_the_ID(), '_et_pb_show_title', true );
$is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() );
?>
<style>
.et_pb_image_1 { margin-left: 0; }
.et_pb_text_3 { font-family: 'Source Sans Pro', Helvetica, Arial, Lucida, sans-serif; }
.et_pb_text_1 { font-family: 'Source Sans Pro', Helvetica, Arial, Lucida, sans-serif;font-size: 18px; letter-spacing: 1px; line-height: 1.9em; margin-top: 75px !important; margin-right: 40px !important; margin-left: 40px !important; }
.et_pb_text_1 p { line-height: 1.9em; }
.et_pb_text_0 p { line-height: 1.9em; }
.et_pb_text_0 { font-family: 'Source Sans Pro', Helvetica, Arial, Lucida, sans-serif;font-size: 18px; letter-spacing: 1px; line-height: 1.9em; margin-top: 75px !important; margin-right: 40px !important; margin-left: 40px !important; }
.et_pb_image_0 { margin-top: 0px !important; text-align: center; }
.et_pb_image_0 img { width: 100%; }
.et_pb_divider_0:before { border-top-color: #000000; }
@media only screen and ( min-width: 981px ) {
.et_pb_row_0.et_pb_row { padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; }
.et_pb_section_0.et_pb_section { padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; }
.bottom_ss .addtoany_shortcode {
text-align: center;
}
}
@media only screen and ( max-width: 980px ) {
.et_pb_text_1 { margin-right: 0px !important; margin-left: 0px !important; }
.et_pb_text_0 { margin-right: 0px !important; margin-left: 0px !important; }
}
@media (min-width: 480px) and (max-width: 980px)
{
.et_pb_divider_0
{
display: none;
}
}
@media (max-width: 479px)
{
.et_pb_divider_0
{
display: none;
}
}
.addtoany_shortcode {
margin: 0.5em 0 1em;
}
.et_pb_divider_0
{
margin-bottom: 0 !important;
}
p.post-meta {
padding: 0 !important;
margin: 0 !important;
}
.bottom_ss {
margin-top: 3em;
}
.bottom_ss .a2a_svg {
width: 32px !important;
line-height: 32px !important;
height: 32px !important;
}
.bottom_ss .a2a_count {
line-height: 32px !important;
height: 32px !important;
}
nav.post-nav
{
display: none;
}
.entry-content .et_pb_row {
padding: 0 !important;
}
</style>
<div id="main-content">
<div class="container">
<div id="content-area" class="clearfix">
<div id="left-area">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'et_pb_post' ); ?>>
<?php $author_ID = $post->post_author; ?>
<div class="et_post_meta_wrapper">
<p class="post-meta"><span class="published"><?php the_date('d/m/Y'); ?><span class="dashicons dashicons-clock"></span><?php the_time(); ?></span></p>
<a href="<?php echo get_post_permalink(get_the_ID()); ?>"><h1 class="entry-title"><?php the_title(); ?></h1></a>
<div class="nj_author_meta_mob"><a href="<?php echo get_author_posts_url($author_ID); ?>">
<img src="<?php the_author_meta('avatar',$author_ID); ?>">
<span>por <?php the_author_meta('display_name',$author_ID); ?></span>
</a></div>
</div> <!-- .et_post_meta_wrapper -->
<div class="entry-content">
<div class="et_pb_section et_pb_section_0 et_section_regular">
<div class="et_pb_row et_pb_row_0 et_pb_row_3-4_1-4">
<div class="post-body et_pb_column et_pb_column_3_4 et_pb_column_0">
<div class="et_pb_module et_pb_space et_pb_divider et_pb_divider_0"></div>
<div class="top_ss"><?php echo do_shortcode("[addtoany]"); ?></div>
<?php the_content(); ?>
<div class="bottom_ss"><?php echo do_shortcode("[addtoany]"); ?></div>
<nav class="post-nav"><span class="alignleft nav-link-previous"><?php previous_post_link("< %link"); ?></span><span class="alignright nav-link-next"><?php next_post_link("%link >"); ?></span></nav>
<div class="facebook_comments">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-href="<?php the_permalink(); ?>" data-width="100%" data-numposts="10" data-order-by="social" data-colorscheme="light"></div>
</div>
</div> <!-- .et_pb_column -->
<?php nj_author_card($author_ID); ?>
</div> <!-- .et_pb_section -->
</div> <!-- .entry-content -->
<div class="et_post_meta_wrapper">
</div> <!-- .et_post_meta_wrapper -->
</article>
<?php endwhile; ?>
</div> <!-- #left-area -->
<div id="know-more-author">Conheça outros colunistas e suas opiniões!</div>
<?php nj_destaque_slider(5000); ?>
</div> <!-- #content-area -->
</div> <!-- .container -->
</div> <!-- #main-content -->
<?php get_footer(); ?>