-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-sobre-nos.php
426 lines (412 loc) · 20.2 KB
/
page-sobre-nos.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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
<?php
// Template Name: Sobre nós
?>
<?php get_header(); ?>
<?php if (have_posts()):
while (have_posts()):
the_post(); ?>
<main class="anac-main anac-about" id="anac-about">
<section class="about-main">
<div class="about-main__container container">
<div class="about-main__content main-content grid__container">
<div class="grid__item--top">
<h2 class="about-main__title title title--main">
<!-- <?php the_title(); ?> -->
<?php the_field('main_title'); ?>
</h2>
</div>
<div class="grid__item--left">
<h1 class="about-main__subtitle subtitle subtitle--giant">
<?php the_field('main_subtitle'); ?>
</h1>
</div>
<div class="grid__item--right">
<p class="about-main__description description">
<?php the_field('main_description'); ?>
</p>
</div>
</div>
<figure class="about-main__banners main-banners grid__container">
<?php
$mainPageBanners = get_field('main_banner_page');
if (!empty($mainPageBanners)) {
echo '<figure class="about-main__banners main-banners grid__container">';
foreach ($mainPageBanners as $key => $mainPageBannersItem) { ?>
<picture id="about-main-banner<?php echo $key + 1; ?>">
<source srcset="<?php echo $mainPageBannersItem['main_banner_page_mobile']; ?>" media="(max-width: 767px)">
<img src="<?php echo $mainPageBannersItem['main_banner_page_desktop']; ?>" alt="Banner <?php echo $key + 1; ?>" title="Banner <?php echo $key + 1; ?>">
</picture>
<?php }
echo '</figure>';
}
?>
</figure>
</div>
</section>
<section class="about-history" id="about-history">
<div class="about-history__container container">
<div class="about-history__content content">
<h2 class="about-history__title title not-before">
<?php the_field('about_history_title'); ?>
</h2>
<h3 class="about-history__subtitle subtitle">
<?php the_field('about_history_subtitle'); ?>
</h3>
<p class="about-history__description description">
<?php the_field('about_history_description'); ?>
</p>
</div>
</div>
</section>
<section class="about-mission bg-blue" id="about-mission">
<div class="about-mission__container container">
<div class="about-mission__content content">
<h2 class="about-mission__title title">
<?php the_field('about_mission_title'); ?>
</h2>
<h3 class="about-mission__subtitle subtitle">
<?php the_field('about_mission_subtitle'); ?>
</h3>
<ul class="about-mission__list">
<li class="about-mission__item">
<h4 class="about-mission__subtitle subtitle">
<?php the_field('about_mission_title_mission'); ?>
</h4>
<p class="about-mission__description description">
<?php the_field('about_mission_description_mission'); ?>
</p>
</li>
<li class="about-mission__item centered">
<h4 class="about-mission__subtitle subtitle">
<?php the_field('about_mission_title_vision'); ?>
</h4>
<p class="about-mission__description description">
<?php the_field('about_mission_description_vision'); ?>
</p>
</li>
<li class="about-mission__item">
<h4 class="about-mission__subtitle subtitle">
<?php the_field('about_mission_title_value'); ?>
</h4>
<p class="about-mission__description description">
<?php the_field('about_mission_description_value'); ?>
</p>
</li>
</ul>
</div>
</div>
</section>
<section class="about-numbers" id="about-numbers">
<div class="about-numbers__container container">
<div class="about-numbers__content content">
<h2 class="about-numbers__title title not-before">
<?php the_field('about_numbers_title'); ?>
</h2>
<h3 class="about-numbers__subtitle subtitle">
<?php the_field('about_numbers_subtitle'); ?>
</h3>
</div>
<div class="about-numbers__content">
<div class="about-numbers__content">
<select class="about-numbers__select header__menu-item-link description" id="yearSelect" style="display: none!important">
<option value="2023">2023</option>
<option value="2022">2022</option>
</select>
<table class="about-numbers__table" id="table-lastYear" border="1" style="display: none!important">
<caption class="about-numbers__subtitle subtitle subtitle--big">
<?php the_field('about_numbers_list_subtitle_first'); ?>
</caption>
<tbody>
<?php
$aboutNumbersTableLast = get_field('about_numbers_list_lastyear');
if (isset($aboutNumbersTableLast)) {
foreach ($aboutNumbersTableLast as $aboutNumbersTableLastItem) { ?>
<tr class="about-numbers__table--row">
<td class="about-numbers__table--data description description--bold">
<?php echo $aboutNumbersTableLastItem['about_numbers_item_qty_lastyear']; ?>
</td>
<td class="about-numbers__table--data description">
<?php echo $aboutNumbersTableLastItem['about_numbers_item_description_lastyear']; ?>
</td>
</tr>
<?php }
} ?>
</tbody>
</table>
<table class="about-numbers__table" id="table-lastYear-before" border="1" style="display:none;">
<caption class="about-numbers__subtitle subtitle subtitle--big">Resumo de acolhimento 2022</caption>
<tbody>
<?php
$aboutNumbersTableLastBefore = get_field('about_numbers_list_lastyear_before');
if (isset($aboutNumbersTableLastBefore)) {
foreach ($aboutNumbersTableLastBefore as $aboutNumbersTableLastBeforeItem) { ?>
<tr class="about-numbers__table--row">
<td class="about-numbers__table--data description description--bold">
<?php echo $aboutNumbersTableLastBeforeItem['about_numbers_item_qty_lastyear_before']; ?>
</td>
<td class="about-numbers__table--data description">
<?php echo $aboutNumbersTableLastBeforeItem['about_numbers_item_description_lastyear_before']; ?>
</td>
</tr>
<?php }
} ?>
</tbody>
</table>
</div>
<div class="about-numbers__content">
<div class="table-responsive">
<table class="about-numbers__table about-numbers__table--last-years" id="last-years" border="1">
<caption class="about-numbers__subtitle subtitle subtitle--big">Registro de acolhimentos nos últimos 10 anos</caption>
<thead>
<th>ANO</th>
<th>2024</th>
<th>2023</th>
<th>2022</th>
<th>2021</th>
<th>2020</th>
<th>2019</th>
<th>2018</th>
<th>2017</th>
<th>2016</th>
<th>2015</th>
<th>2014</th>
<th>TOTAL</th>
</thead>
<tbody>
<tr class="about-numbers__table--row">
<td class="about-numbers__table--data description">Número de beneficiados</td>
<td class="about-numbers__table--data description">
<?php
$benefits_current_year = get_field('about_numbers_banefits_currentYear'); // Recupera o valor da ACF
echo $benefits_current_year; // Exibe o valor
?>
</td>
<td class="about-numbers__table--data description">597</td>
<td class="about-numbers__table--data description">496</td>
<td class="about-numbers__table--data description">500</td>
<td class="about-numbers__table--data description">293</td>
<td class="about-numbers__table--data description">529</td>
<td class="about-numbers__table--data description">541</td>
<td class="about-numbers__table--data description">488</td>
<td class="about-numbers__table--data description">808</td>
<td class="about-numbers__table--data description">827</td>
<td class="about-numbers__table--data description">910</td>
<td class="about-numbers__table--data description">
<?php
// Adiciona o valor dinâmico da primeira coluna ao array
$valores = array($benefits_current_year, 597, 496, 500, 293, 529, 541, 488, 808, 827, 910);
// Calculando a soma
$total = array_sum($valores);
// Exibindo o total
echo $total;
?>
</td>
</tr>
</tbody>
<tr class="about-numbers__table--row" style="display: none!important">
<td class="about-numbers__table--data description">Diárias</td>
<td class="about-numbers__table--data description">3.204</td>
<td class="about-numbers__table--data description">3.230</td>
<td class="about-numbers__table--data description">4.051</td>
<td class="about-numbers__table--data description">2.426</td>
<td class="about-numbers__table--data description">4.553</td>
<td class="about-numbers__table--data description">1.952</td>
<td class="about-numbers__table--data description">1.397</td>
<td class="about-numbers__table--data description">2.449</td>
<td class="about-numbers__table--data description">2.412</td>
<td class="about-numbers__table--data description">2.061</td>
<td class="about-numbers__table--data description description--bold" style="font-size: 1rem;">27.735</td>
</tr>
<tr class="about-numbers__table--row" style="display: none!important">
<td class="about-numbers__table--data description">Refeições servidas</td>
<td class="about-numbers__table--data description">10.334</td>
<td class="about-numbers__table--data description">12.172</td>
<td class="about-numbers__table--data description">12.668</td>
<td class="about-numbers__table--data description">8456</td>
<td class="about-numbers__table--data description">17.336</td>
<td class="about-numbers__table--data description">7.808</td>
<td class="about-numbers__table--data description">5.588</td>
<td class="about-numbers__table--data description">9.796</td>
<td class="about-numbers__table--data description">9.648</td>
<td class="about-numbers__table--data description">8.244</td>
<td class="about-numbers__table--data description description--bold" style="font-size: 1rem;">102.050</td>
</tr>
</tbody>
</table>
<div class="scroll-arrow"></div>
</div>
<div class="table-resume" style="display: none!important">
<div class="table-resume__content">
<p class="table-resume__description description">
<span class="about-numbers__table--data description description--bold">5.989 </span>Beneficiados
</p>
<p class="table-resume__description description">
<span class="about-numbers__table--data description description--bold">27.735 </span>Diárias
</p>
<p class="table-resume__description description">
<span class="about-numbers__table--data description description--bold">102.050 </span>Refeições servidas
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="about-team" id="about-team">
<div class="about-team__container container">
<div class="about-team__content flex-container">
<h2 class="about-team__title title">
<?php the_field('about_team_title'); ?>
</h2>
<h3 class="about-team__subtitle subtitle">
<?php the_field('about_team_subtitle'); ?>
</h3>
</div>
<div class="about-team__content">
<h4 class="about-team__subtitle subtitle subtitle--big">
<?php the_field('about_team_list_one_title'); ?>
</h4>
<div class="about-team__list">
<?php
$aboutTeamListOne = get_field('about_team_list_one');
if (isset($aboutTeamListOne)) {
foreach ($aboutTeamListOne as $aboutTeamListOneItem) { ?>
<div class="about-team__item">
<p class="about-team__name">
<?php echo $aboutTeamListOneItem['about_team_list_one_name']; ?>
</p>
<span class="about-team__position">
<?php echo $aboutTeamListOneItem['about_team_list_one_position']; ?>
</div>
<?php }
} ?>
</div>
</div>
<div class="about-team__content">
<h4 class="about-team__subtitle subtitle subtitle--big">
<?php the_field('about_team_list_two_title'); ?>
</h4>
<div class="about-team__list">
<?php
$aboutTeamListTwo = get_field('about_team_list_two');
if (isset($aboutTeamListTwo)) {
foreach ($aboutTeamListTwo as $aboutTeamListTwoItem) { ?>
<div class="about-team__item">
<p class="about-team__name">
<?php echo $aboutTeamListTwoItem['about_team_list_two_name']; ?>
</p>
<span class="about-team__position">
<?php echo $aboutTeamListTwoItem['about_team_list_two_position']; ?>
</div>
<?php }
} ?>
</div>
</div>
<div class="about-team__content">
<h4 class="about-team__subtitle subtitle subtitle--big">
<?php the_field('about_team_list_three_title'); ?>
</h4>
<div class="about-team__list">
<?php
$aboutTeamListThree = get_field('about_team_list_three');
if (isset($aboutTeamListThree)) {
foreach ($aboutTeamListThree as $aboutTeamListThreeItem) { ?>
<div class="about-team__item">
<p class="about-team__name">
<?php echo $aboutTeamListThreeItem['about_team_list_three_name']; ?>
</p>
<span class="about-team__position">
<?php echo $aboutTeamListThreeItem['about_team_list_three_position']; ?>
</div>
<?php }
} ?>
</div>
</div>
<div class="about-team__content">
<h4 class="about-team__subtitle subtitle subtitle--big">
<?php the_field('about_team_list_four_title'); ?>
</h4>
<div class="about-team__list">
<?php
$aboutTeamListFour = get_field('about_team_list_four');
if (isset($aboutTeamListFour)) {
foreach ($aboutTeamListFour as $aboutTeamListFourItem) { ?>
<div class="about-team__item">
<p class="about-team__name">
<?php echo $aboutTeamListFourItem['about_team_list_four_name']; ?>
</p>
<span class="about-team__position">
<?php echo $aboutTeamListFourItem['about_team_list_four_position']; ?>
</div>
<?php }
} ?>
</div>
</div>
<div class="about-team__content">
<h4 class="about-team__subtitle subtitle subtitle--big">
<?php the_field('about_team_list_five_title'); ?>
</h4>
<div class="about-team__list">
<?php
$aboutTeamListFive = get_field('about_team_list_five');
if (isset($aboutTeamListFive)) {
foreach ($aboutTeamListFive as $aboutTeamListFiveItem) { ?>
<div class="about-team__item">
<p class="about-team__name">
<?php echo $aboutTeamListFiveItem['about_team_list_five_name']; ?>
</p>
<span class="about-team__position">
<?php echo $aboutTeamListFiveItem['about_team_list_five_position']; ?>
</div>
<?php }
} ?>
</div>
</div>
<div class="about-team__content" style="display: none!important">
<h4 class="about-team__subtitle subtitle subtitle--big">
<?php the_field('about_team_list_six_title'); ?>
</h4>
<div class="about-team__list">
<?php
$aboutTeamListSix = get_field('about_team_list_six');
if (isset($aboutTeamListSix)) {
foreach ($aboutTeamListSix as $aboutTeamListSixItem) { ?>
<div class="about-team__item">
<p class="about-team__name">
<?php echo $aboutTeamListSixItem['about_team_list_six_name']; ?>
</p>
<span class="about-team__position">
<?php echo $aboutTeamListSixItem['about_team_list_six_position']; ?>
</div>
<?php }
} ?>
</div>
</div>
<div class="about-team__content" style="display: none!important">
<h4 class="about-team__subtitle subtitle subtitle--big">
<?php the_field('about_team_list_seven_title'); ?>
</h4>
<div class="about-team__list">
<?php
$aboutTeamListSeven = get_field('about_team_list_seven');
if (isset($aboutTeamListSeven)) {
foreach ($aboutTeamListSeven as $aboutTeamListSevenItem) { ?>
<div class="about-team__item">
<p class="about-team__name">
<?php echo $aboutTeamListSevenItem['about_team_list_seven_name']; ?>
</p>
<span class="about-team__position">
<?php echo $aboutTeamListSevenItem['about_team_list_seven_position']; ?>
</div>
<?php }
} ?>
</div>
</div>
</div>
</section>
</main>
<?php include('cta-section.php'); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php get_footer(); ?>