-
Notifications
You must be signed in to change notification settings - Fork 0
/
home-page.php
181 lines (140 loc) · 5.31 KB
/
home-page.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<?php
/**
* Template Name: Capa do Página 20
*
* 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 ?>
<?php
$odin_general_opts = get_option( 'odin_html5' );
$args = array (
'pagination' => true,
'cat' => array ('-4,-8,-9,-169,-82,-6'),
'posts_per_page' => $odin_general_opts ['materiasP20'],
'ignore_sticky_posts' => true,
);
// The Query
$query = new WP_Query( $args );
// The Loop
while ( $query->have_posts() ) {
$query->the_post();
if ( in_category( '23' ) ) { // Destaque Retangular
get_template_part( 'content', 'home2' );
}
else if ( in_category( '2240' ) ) { // Destaque GRande
get_template_part( 'content', 'home3' );
}
else if ( in_category( '22' ) ) { // destaque foto
get_template_part( 'content', 'home4' );
} else {
get_template_part( 'content', 'home' );
}
if ( is_dynamic_sidebar('publicidade300x300') ) {
if ( $query->current_post == 6 ) { // first post
dynamic_sidebar('publicidade300x300');
}
}
wp_reset_postdata();
}
?>
</div>
</div><!-- #content -->
</div>
<div class="row">
<div class="container">
<?php dynamic_sidebar( 'banner_slider_big' ); ?>
</div>
</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"><a class="btn-floating blue darken-4"><i class="icon-galo"></i></a> Colunas</h5>
<hr class="blue-gray lighten-1"></hr></div>
<?php wp_nav_menu(array('theme_location' => 'menu-colunas','menu' => 'Menu Colunas', 'container' => 'div', 'container_class' => 'container','menu_class' => 'pagination left')); ?>
</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"><a class="btn-floating blue darken-4"><i class="icon-galo"></i></a> 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"><a class="btn-floating blue darken-4"><i class="icon-galo"></i></a> 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"><a class="btn-floating blue darken-4"><i class="icon-galo"></i></a> 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"><a class="btn-floating blue darken-4"><i class="icon-galo"></i></a> Geral</h5>
<hr class="blue-gray lighten-1"></hr>
<?php include (TEMPLATEPATH.'/maisnoticias-geral.php') ?>
</div>
</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"><a class="btn-floating blue darken-4"><i class="icon-galo"></i></a> Artigos</h5>
<hr class="blue-gray lighten-1"></hr></div> </div>
<div class="container">
<?php include (TEMPLATEPATH.'/maisnoticias5-artigos.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"><a class="btn-floating blue darken-4"><i class="icon-galo"></i></a> Cultura</h5>
<hr class="blue-gray lighten-1"></hr>
<?php include (TEMPLATEPATH.'/maisnoticias-cultura.php') ?>
</div>
<div class="col s12 m4 l4">
<h5 class="blue-grey-text darken-2-text semmargem"><a class="btn-floating blue darken-4"><i class="icon-galo"></i></a> Esporte</h5>
<hr class="blue-gray lighten-1"></hr>
<?php include (TEMPLATEPATH.'/maisnoticias-esportes.php') ?>
</div>
<div class="col s12 m4 l4">
<h5 class="blue-grey-text darken-2-text semmargem"><a class="btn-floating blue darken-4"><i class="icon-galo"></i></a> Ciência e Saúde </h5>
<hr class="blue-gray lighten-1"></hr>
<?php include (TEMPLATEPATH.'/maisnoticias-ciencia.php') ?>
</div>
</div>
</div>
<?php
get_footer();