-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-home.php
258 lines (246 loc) · 14 KB
/
page-home.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<?php
/**
* Template name: Página Inicial
*/
get_header();
?>
<section class="hero">
<div id="main_slider" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#main_slider" data-slide-to="0" class="active"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active" style="background-image: url('<?php echo get_template_directory_uri() . "/assets/images/banner/banner_1.jpg"; ?>');">
</div>
</div>
<button class="carousel-control-prev" type="button" data-target="#main_slider" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-target="#main_slider" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</button>
</div>
<div class="hero__radio">
<div class="container">
<div class="row">
<div class="col-12 col-md hero__radio-button bg-white">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" widht="64" height="64" viewBox="0 0 172 172">
<g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal">
<path d="M0,172v-172h172v172z" fill="none"></path>
<g fill="#ffffff">
<path d="M85.99541,14.11922c-40.1882,0.00101 -72.89385,31.27587 -72.89385,69.71753v70.01147c0.00494,1.48888 1.21108,2.69443 2.69997,2.69865h23.53662c0.71054,-0.00359 1.3903,-0.29049 1.88853,-0.7971c0.49823,-0.50661 0.77377,-1.19105 0.76551,-1.90155v-50.59468c0,-1.48418 -1.16886,-2.80823 -2.65404,-2.80823h-20.86159v-16.60857c0,-35.47769 30.29172,-64.34122 67.49982,-64.34122c18.04723,0.11825 35.0201,6.87269 47.77464,19.01918c12.74446,12.13675 19.77241,28.23256 19.77241,45.32204v16.60857h-20.86159c-1.48384,0 -2.65404,1.32405 -2.65404,2.80823v50.59468c-0.00826,0.71051 0.26728,1.39495 0.76551,1.90155c0.49823,0.50661 1.17799,0.79351 1.88853,0.7971h23.53793c1.48837,-0.00494 2.69371,-1.21028 2.69865,-2.69865v-70.01147c0,-18.57466 -7.61721,-36.05248 -21.43701,-49.21484c-13.74925,-13.09384 -32.02666,-20.37537 -51.46602,-20.50269zM47.96033,99.2236c-1.45292,0.04259 -2.60868,1.23265 -2.60876,2.68619v53.28218c0,1.48427 1.20323,2.6875 2.6875,2.6875c1.48427,0 2.6875,-1.20323 2.6875,-2.6875v-53.28218c-0.00004,-0.7264 -0.29413,-1.42184 -0.81525,-1.92788c-0.52112,-0.50604 -1.2249,-0.77959 -1.95099,-0.75831zM123.8822,99.2236c-1.45292,0.04259 -2.60868,1.23265 -2.60876,2.68619v53.28218c0,1.48427 1.20323,2.6875 2.6875,2.6875c1.48427,0 2.6875,-1.20323 2.6875,-2.6875v-53.28218c-0.00004,-0.7264 -0.29413,-1.42184 -0.81525,-1.92788c-0.52112,-0.50604 -1.2249,-0.77959 -1.95099,-0.75831z"></path>
</g>
</g>
</svg>
<span>Ouça ao Vivo</span>
</div>
<div class="col-12 col-md hero__radio-button">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" widht="64" height="64" viewBox="0 0 172 172">
<g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal">
<path d="M0,172v-172h172v172z" fill="none"></path>
<g fill="#ffffff">
<path d="M5.375,37.625v5.375v91.375h161.25v-96.75zM16.125,48.375h139.75v75.25h-139.75zM48.375,139.75l-2.6875,8.0625h80.625l-2.6875,-5.375c-34.9375,-2.6875 -75.25,-2.6875 -75.25,-2.6875z"></path>
</g>
</g>
</svg>
<span>Assista ao Vivo</span>
</div>
</div>
</div>
</div>
</section>
<section class="programing" id="programing">
<div class="container">
<div class="row">
<div class="col-12">
<h1 class="programing__title">A melhor programação</h1>
</div>
<div class="col-12 p-0">
<div class="owl-carousel owl-theme" id="programing_carousel">
<?php
$args = array(
'post_type' => 'programacao',
'post_status' => array('publish'),
'orderby' => 'date',
'order' => 'DESC',
'limit' => 12,
'nopaging' => true
);
$programings = get_posts($args);
?>
<?php
if (!empty($programings)) {
foreach ($programings as $programing) {
setup_postdata($programing);
$info = get_post_meta($programing->ID, '_programacao', true);
$borders = array(
1 => 'right',
2 => 'left',
3 => 'top',
4 => 'bottom'
);
$border = rand(1, 4);
?>
<div class="item">
<div class="programing__card">
<div class="programing__image border--<?php echo $borders[$border]; ?> rounded-circle" style="background-image: url('<?php echo $info['programing_image'] ?>');"></div>
<div class="programing__info">
<h3 class="programing__title"><?php echo $programing->post_title; ?></h3>
<p class="programing__announcer"><?php echo $info['programing_author'] ?></p>
<span class="programing__hour"><?php echo $info['programing_datetime'] ?></span>
</div>
</div>
</div>
<?php
wp_reset_postdata();
}
}
?>
</div>
</div>
</div>
</div>
</section>
<section class="noticies" id="noticies">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<h1 class="noticies__title">Principais Notícias do Dia</h1>
</div>
<div class="col-12 noticies__slider owl-carousel owl-theme" id="noticies_slider">
<div class="noticies__slider-item">
<div class="noticies__slide" style="background-image: url('https://wallpaperaccess.com/full/2863786.jpg');">
<div class="noticies__slide-header">
<span class="noticies_date">23 de Janeiro de 2022</span>
</div>
<div class="noticies__slide-description">
<h3>
Decreto cria 'mineração artesanal' na Amazônia;
<br>
para ONGs, governo quer incentivar garimpo ilegal
</h3>
</div>
</div>
</div>
<div class="noticies__slider-item">
<div class="noticies__slide" style="background-image: url('https://wallpaperaccess.com/full/2365465.jpg');">
<div class="noticies__slide-header">
<span class="noticies_date">23 de Janeiro de 2022</span>
</div>
<div class="noticies__slide-description">
<h3>
Decreto cria 'mineração artesanal' na Amazônia;
<br>
para ONGs, governo quer incentivar garimpo ilegal
</h3>
</div>
</div>
</div>
<div class="noticies__slider-item">
<div class="noticies__slide" style="background-image: url('https://cdn.wallpapersafari.com/54/3/8gmxDw.jpg');">
<div class="noticies__slide-header">
<span class="noticies_date">23 de Janeiro de 2022</span>
</div>
<div class="noticies__slide-description">
<h3>
Decreto cria 'mineração artesanal' na Amazônia;
<br>
para ONGs, governo quer incentivar garimpo ilegal
</h3>
</div>
</div>
</div>
<div class="noticies__slider-item">
<div class="noticies__slide" style="background-image: url('https://a-static.besthdwallpaper.com/ashish-wilson-montanha-papel-de-parede-2880x1620-71441_52.jpg');">
<div class="noticies__slide-header">
<span class="noticies_date">23 de Janeiro de 2022</span>
</div>
<div class="noticies__slide-description">
<h3>
Decreto cria 'mineração artesanal' na Amazônia;
<br>
para ONGs, governo quer incentivar garimpo ilegal
</h3>
</div>
</div>
</div>
<div class="noticies__slider-item">
<div class="noticies__slide" style="background-image: url('https://www.10wallpaper.com/wallpaper/1366x768/1407/snowy_mountain_peaks-Nature_HD_Wallpaper_1366x768.jpg');">
<div class="noticies__slide-header">
<span class="noticies_date">23 de Janeiro de 2022</span>
</div>
<div class="noticies__slide-description">
<h3>
Decreto cria 'mineração artesanal' na Amazônia;
<br>
para ONGs, governo quer incentivar garimpo ilegal
</h3>
</div>
</div>
</div>
</div>
<div class="noticies__more">
<h3>Confira mais em <a href="#" class="btn btn-success">Portal de Notícias</a></h3>
</div>
</div>
</div>
</section>
<section class="sponsors" id="sponsors">
<div class="sponsors__header">
<div class="container">
<div class="row">
<div class="col-12 col-md-6 d-flex align-items-center">
<h1 class="sponsors__title">Patrocinadores</h1>
</div>
<div class="col-12 col-md-6 d-flex align-items-center">
<p class="sponsors__description">
Seja você também um anunciante<br>
em nossa programação
</p>
</div>
</div>
</div>
</div>
<div class="sponsors__content">
<div class="container">
<div class="row">
<div class="col-6 col-md">
<img src="https://logodownload.org/wp-content/uploads/2014/04/pepsi-logo-5.png" class="img-fluid sponsors__image">
</div>
<div class="col-6 col-md">
<img src="https://logodownload.org/wp-content/uploads/2014/04/pepsi-logo-5.png" class="img-fluid sponsors__image">
</div>
<div class="col-6 col-md">
<img src="https://logodownload.org/wp-content/uploads/2014/04/pepsi-logo-5.png" class="img-fluid sponsors__image">
</div>
<div class="col-6 col-md">
<img src="https://logodownload.org/wp-content/uploads/2014/04/pepsi-logo-5.png" class="img-fluid sponsors__image">
</div>
<div class="col-6 col-md">
<img src="https://logodownload.org/wp-content/uploads/2014/04/pepsi-logo-5.png" class="img-fluid sponsors__image">
</div>
</div>
<div class="row">
<div class="col-6 col-md">
<img src="https://logodownload.org/wp-content/uploads/2014/04/pepsi-logo-5.png" class="img-fluid sponsors__image">
</div>
<div class="col-6 col-md">
<img src="https://logodownload.org/wp-content/uploads/2014/04/pepsi-logo-5.png" class="img-fluid sponsors__image">
</div>
<div class="col-6 col-md">
<img src="https://logodownload.org/wp-content/uploads/2014/04/pepsi-logo-5.png" class="img-fluid sponsors__image">
</div>
<div class="col-6 col-md ">
<img src="https://logodownload.org/wp-content/uploads/2014/04/pepsi-logo-5.png" class="img-fluid sponsors__image">
</div>
<div class="col-6 col-md">
<img src="https://logodownload.org/wp-content/uploads/2014/04/pepsi-logo-5.png" class="img-fluid sponsors__image">
</div>
</div>
</div>
</div>
</section>
<?php
get_footer();