-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-caderno-atividade.php
94 lines (87 loc) · 3.13 KB
/
page-caderno-atividade.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
<?php /* Template Name: Caderno de Atividades */ ?>
<?php if (current_user_can('administrator')) { ?>
<div style="background: red; color: #fff; text-align: center; font-size:12px; padding: 10px;">PAGE EVENTO/Caderno de Atividades | page-caderno-atividade.php</div>
<?php }
get_header();
$iconHeader = get_field('icone_header');
$pageTitle = get_the_title();
include('include-header-title.php');
?>
<!-- ./HEADER -->
<style type="text/css">
@media (max-width: 780px){
.banner-header {
height: 100px !important;
background-position: center;
}
}
.banner-header{
height: 188px !important;
}
</style>
<section class="container">
<!-- BANNER -->
<div class="row">
<div class="col-12 remove-padding-mobile">
<?php
$showBanner = true;
//$bannerOption = '';
include('include-banner.php');
?>
</div>
</div>
<!-- FIM DE BANNER -->
</section>
<style type="text/css">
@media (max-width: 780px){
.limit_card{
padding-right: 0px !important;
padding-left: 0px !important;
}
}
.limit_card{
padding-right: 50px;
padding-left: 50px;
}
</style>
<div class="container">
<div class="content-wrapper content-wrapper--no-dash ">
<div class="content__text">
<?php
while (have_posts()) {
the_post();
the_content();
} ?>
</div>
<div>
<div class="col-2"></div>
<?php if (have_rows('evento')) : ?>
<div class="row d-flex justify-content-center mr-1 limit_card">
<?php while (have_rows('evento')): the_row(); ?>
<div id="card<?= get_row_index() ?>" class="card mr-1" style="margin-bottom: 0.25rem !important;">
<?php
$logoEvento = get_sub_field('imagem_evento');
$logoHover = get_sub_field('imagem_hover');
$linkBtn = get_sub_field('link_do_evento'); ?>
<a rel="nofollow noreferrer" target="_blank" href="<?= $linkBtn; ?>">
<img style="width: auto !important;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;" src="<?= esc_url($logoEvento['url']); ?>" onmouseover="this.src='<?= esc_url($logoHover['url']); ?>';" onmouseout="this.src='<?= esc_url($logoEvento['url']); ?>';" alt="<?= $logoEvento['alt']; ?>">
</a>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>
<div class="col-2"></div>
</div>
</div>
</div>
<script>
function showText(cardId) {
const cards = document.getElementsByClassName('card');
for (let index = 0; index < cards.length; index++) {
cards[index].classList.remove('ativo');
}
document.getElementById(cardId).classList.add('ativo');
}
</script>
<!-- FOOTER -->
<?php get_footer() ?>