-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
145 lines (101 loc) · 3.44 KB
/
index.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
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme and one of the
* two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* For example, it puts together the home page when no home.php file exists.
*
* @link http:https://codex.wordpress.org/Template_Hierarchy
*
* @package Odin
* @since 2.2.0
*/
get_header(); ?>
<!--- //slider e colunistas -->
<?php include (TEMPLATEPATH.'/slider.php') ?>
<!-- Posts -->
<div class="row" style="display:block;">
<div id="content" tabindex="-1" role="main" class="container">
<div id="grid">
<?php
$args = array (
'pagination' => true,
'paged' => $paged,
'posts_per_page' => '12',
'ignore_sticky_posts' => true,
);
// The Query
$query = new WP_Query( $args );
// The Loop
while ( $query->have_posts() ) {
$query->the_post();
if ( in_category( '19' ) ) { // Destaque Retangular
get_template_part( 'content', 'home2' );
}
else if ( in_category( '4' ) ) { // Destaque GRande
get_template_part( 'content', 'home3' );
}
else if ( in_category( '7' ) ) { // destaque foto
get_template_part( 'content', 'home4' );
} else {
get_template_part( 'content', 'home' );
}
if ( $query->current_post == 6 ) { // first post
if ( dynamic_sidebar('publicidade300x300') ) : else : endif;
}
wp_reset_postdata();
}
?>
</div>
</div><!-- #content -->
</div>
<div class="row blue-grey darken-2 semmargem">
<div class="row blue-grey darken-4">
<div class="container">
<h3 class="white-text semmargem" style="padding-top:10px;"><i class="material-icons">video_library</i> Videos</h3>
</div> </div>
<div class="container" style="margin-bottom:100px">
<?php include (TEMPLATEPATH.'/maisnoticias6.php') ?>
</div>
</div>
<div class="row blue-grey lighten-3 semmargem" style="padding-top:10px;">
<div class="row">
<div class="container">
<h5 class="white-text semmargem"><i class="material-icons">star</i> Coluna Social</h5>
<hr class="blue-gray lighten-1"></hr></div> </div>
<div class="container">
<?php include (TEMPLATEPATH.'/maisnoticias2.php') ?>
</div>
</div>
<div class="row semmargem" style="padding-top:10px;">
<div class="row">
<div class="container">
<h5 class="blue-grey-text darken-2-text semmargem"><i class="material-icons">star</i> Política</h5>
<hr class="blue-gray lighten-1"></hr></div> </div>
<div class="container">
<?php include (TEMPLATEPATH.'/maisnoticias5.php') ?>
</div>
</div>
<div class="row semmargem" style="padding-top:10px;">
<div class="container">
<div class="col s12 m4 l4">
<h5 class="blue-grey-text darken-2-text semmargem"><i class="material-icons">star</i> Polícia</h5>
<hr class="blue-gray lighten-1"></hr>
<?php include (TEMPLATEPATH.'/maisnoticias-policia.php') ?>
</div>
<div class="col s12 m4 l4">
<h5 class="blue-grey-text darken-2-text semmargem"><i class="material-icons">star</i> Cidade</h5>
<hr class="blue-gray lighten-1"></hr>
<?php include (TEMPLATEPATH.'/maisnoticias-cidade.php') ?>
</div>
<div class="col s12 m4 l4">
<h5 class="blue-grey-text darken-2-text semmargem"><i class="material-icons">star</i> Geral</h5>
<hr class="blue-gray lighten-1"></hr>
<?php include (TEMPLATEPATH.'/maisnoticias-geral.php') ?>
</div>
</div>
</div>
<?php
get_footer();