-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-contact.php
executable file
·115 lines (81 loc) · 4.53 KB
/
page-contact.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
<?php /* Template Name: contact_template */ ?>
<?php get_header(); ?>
<div class="background_scroll_wrapper">
<div class="scroll_wrapper">
<div class="container trenner_contact full_page_contact">
<div class="row content">
<div class="title">
<h2>
<?php
$contact_title = get_field('contact_title');
if(isset($contact_title)){
echo $contact_title;
}
else{
echo "Get in touch with us:";
}
?>
</h2>
</div>
<div class="description"><p>Use this contact form or write us directly at:</p>
<a href="mailto:<?php echo get_option('contact_email'); ?>
?subject=Kontakt über Webseite"><?php echo get_option('contact_email'); ?></a></p>
<p class="contact_phone"><?php echo get_option('contact_phone'); ?></p></div>
<div class="contact_name"><?php echo get_option('contact_name'); ?></div>
<div class="contact_title"><?php echo get_option('contact_title'); ?></div>
<div class="description"><p><a href="mailto:<?php echo get_option('contact_email'); ?>?subject=Kontakt über movinapes.com"><?php echo get_option('contact_email'); ?></a></p></div>
</div>
<div class="row contact_form">
<form id="contact-form" method="post" action="<?php echo get_stylesheet_directory_uri(); ?>/contact_send.php" role="form" novalidate="true">
<div class="messages"></div>
<div class="controls">
<div class="form_names">
<div class="form-group">
<label for="form_name">Name *</label>
<input id="form_name" type="text" name="name" class="form-control" placeholder="Max" required="required" data-error="Firstname is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label for="form_lastname">Surname *</label>
<input id="form_lastname" type="text" name="surname" class="form-control" placeholder="Mustermann" required="required" data-error="Lastname is required.">
<div class="help-block with-errors"></div>
</div>
</div>
<div class="form_contacts">
<div class="form-group">
<label for="form_email">Email *</label>
<input id="form_email" type="email" name="email" class="form-control" placeholder="max@provider.de" required="required" data-error="Valid email is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label for="form_phone">Phone</label>
<input id="form_phone" type="tel" name="phone" class="form-control" placeholder="0123 456 798 0">
<div class="help-block with-errors"></div>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="form_message">Message *</label>
<textarea id="form_message" name="message" class="form-control" placeholder="To whom it may concern, ..." rows="5" required="required" data-error="Please, leave us a message."></textarea>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="row form_checkboxes form-group">
<div class="checkbox_datenschutz"><input class="form_checkbox" type="checkbox" id="datenschutz" name="datenschutz" required="required" data-error="Bitte Datenschutz akzeptieren">
<label for="datenschutz">We use cookies to provide necessary website functionality. By using this form, you agree to our <a href="datenschutz.php">terms</a>.</label>*
<div class="help-block with-errors"></div>
</div>
<div class="g-recaptcha" data-sitekey="<?php echo get_option('captcha_site_key'); ?>">
</div>
</div>
<div class="row">
<button type="submit" class="btn btn-send btn-block disabled" value="Send message">Send Message</button>
</div>
<div class="row">
<p class="text-muted"><strong>*</strong> Required.</p>
</div>
</div>
</form>
</div>
</div>
<?php get_footer(); ?>