forked from SandersonQueiroz/tagilab-fis-977138b13455
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
91 lines (68 loc) · 2.07 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
<?php
/**
* The Template for displaying all single posts.
*
* @package Odin
* @since 2.2.0
*/
get_header(); ?>
<style>
body{ background-color: #03A1F0 !important;}
@media (min-width:992px) {
#aside {
width:250px;
}
}
@media (max-width:992px) {
#aside.pinned, #aside.pin-bottom {
top: auto !important;
}
}
img[Attributes Style] {
width: 100%;
height: 441px;
}
.responsive-image{width: 105% !important; height:auto;}
h1{font-size:x-large !important;}
</style>
<!-- main content -->
<div id="primary" class="<?php echo odin_classes_page_sidebar(); ?>">
<div class="col offset-l1 l10 s12 white z-depth-1">
<div class="row">
<div class="col l9 ">
<?php
// Start the Loop.
while ( have_posts() ) : the_post(); ?>
<?php
if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
endif;
?>
<div class="card medium" style=" margin: -10px; ">
<div class="col s12 m12 l12" style=" margin-left: -20px; position:relative; ">
<?php the_post_thumbnail('recent-posts', array('class'=>'responsive-image')); ?>
</div></div>
<div class="col s12 m12 l12" style="position:relative; margin-top:30px;">
<?php get_template_part( 'content', get_post_format() );?>
</div>
<div class="col s12 m12 l12" style="position:relative;">
<?php // If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif; echo '</div>';
endwhile;
?>
</div>
<div class="col l3">
<div id="aside">
<?php get_sidebar(); ?>
</div>
</div>
</div>
</div>
</div>
<?php
//
get_footer();