-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-contato.php
More file actions
82 lines (67 loc) · 3.26 KB
/
Copy pathpage-contato.php
File metadata and controls
82 lines (67 loc) · 3.26 KB
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
<?php
// Template Name: Contato
get_header();
?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- Começa código da página -->
<!-- Carrossel Começa -->
<section class="carrossel carrossel-contato">
<div class="noticia">
<section class="container sobre-inicio">
<div class="grid-7">
<h1>Contato</h1>
<p>Queremos ouvir as suas dúvidas ou sugestões. Fique à vontade para nos enviar uma mensagem e em breve entraremos em contato.</p>
</div>
<div class="grid-5">
<div class="logo-sobre">
<img src="<?php echo get_template_directory_uri(); ?>/img/banner-contact.png" alt="Logo do site GoClasses">
</div>
</div>
</section>
</div>
</section>
<!-- Carrossel termina -->
<section class="contato container">
<form action="<?php echo get_template_directory_uri(); ?>/enviar.php" id="form_contato" method="post" class="contato_form grid-6 formphp">
<label for="nome">Nome</label>
<input type="text" id="nome" name="nome" required>
<label for="disciplina">Disciplina</label>
<input type="text" id="disciplina" name="disciplina" required>
<label for="email">E-mail</label>
<input type="email" id="email" name="email" required>
<!-- Código para não ter spam de robôs -->
<label class="nao-aparece">Se você não é um robô, deixe em branco.</label>
<input type="text" class="nao-aparece" name="leaveblank">
<label class="nao-aparece">Se você não é um robô, não mude este campo.</label>
<input type="text" class="nao-aparece" name="dontchange" value="http://" >
<label for="assunto">Assunto</label>
<input type="text" id="assunto" name="assunto" required>
<label for="mensagem">Mensagem</label>
<textarea id="mensagem" name="mensagem" required></textarea>
<button id="enviar" name="enviar" type="submit" class="botao-red-cinza">Enviar</button>
</form>
<div class="grid-6 contato-info">
<h3>Horário de Atendimento</h3>
<?php the_field('horario_de_atendimento', $contato); ?>
<h3 class="siga">Siga nossas redes</h3>
<div class="links-redes-contato">
<div class="github-redes">
<a href="<?php the_field('link_github', $contato); ?>" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/img/github.svg" alt="github logo"></a>
</div>
<div class="instagram-redes">
<a href="<?php the_field('link_instagram', $contato); ?>" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/img/instagram.svg" alt="instagram logo"></a>
</div>
<div class="facebook-redes">
<a href="<?php the_field('link_facebook', $contato); ?>" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/img/facebook.svg" alt="facebook logo"></a>
</div>
</div>
</div>
</section>
<!-- JS para exibição da mensagem de erro ou sucesso -->
<script src="<?php echo get_template_directory_uri() ; ?>/js/simple-form.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/script.js"></script>
<!-- Fecha while -->
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php get_footer(); ?>