jekyll-theme-consulting 0.10.5 → 0.10.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/contact_client_script.html +9 -18
- data/_layouts/contact.html +12 -12
- data/_layouts/landing.html +5 -40
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2df654945c0b02debdacdb18ff1b1b13021f170055e8edf9d6b08e87dd334cae
|
4
|
+
data.tar.gz: 3e8ca338bc1a9d75bd723d55b9791b4d525d31cfa4a55ba98ec0e611d76b316f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98356a2fc1fbad61b59f1b8d9c1582ef46bb5bdc9919e6834752193801fc60c777c15568a5da6480e7c65f1724e1093ff8745b840c7e918c8120e3ba185531b1
|
7
|
+
data.tar.gz: a5e3603736bf702365bba2c30c8e60a4404f413293af67c1d12eb93f7d7e61f06904ac99f71d7b8d7985d703d19f01e4b1433e3fb95a78fa9f5b5f23748a2466
|
@@ -54,25 +54,17 @@
|
|
54
54
|
};
|
55
55
|
|
56
56
|
const sendContactMessage = function() {
|
57
|
-
const
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
};
|
57
|
+
const formData = new FormData();
|
58
|
+
formData.append('name', encodeURI(nameInputElement.value));
|
59
|
+
formData.append('email', encodeURI(emailInputElement.value));
|
60
|
+
formData.append('message', encodeURI(messageInputElement.value));
|
61
|
+
formData.append('token', grecaptcha.getResponse(recaptchaWidget));
|
63
62
|
|
64
63
|
fetch("{{ '/contact.php' | absolute_url }}", {
|
65
64
|
method: 'POST',
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
})
|
70
|
-
.then((response) => {
|
71
|
-
alert('Message sent!');
|
72
|
-
})
|
73
|
-
.catch((error) => {
|
74
|
-
console.error('Error:', error);
|
75
|
-
});
|
65
|
+
body: formData})
|
66
|
+
.then((response) => alert('Message sent!'))
|
67
|
+
.catch((error) => console.error('Error:', error));
|
76
68
|
};
|
77
69
|
|
78
70
|
var onRecaptchaLoadCallback = function() {
|
@@ -80,8 +72,7 @@
|
|
80
72
|
'sitekey' : '{{ site.recaptcha.sitekey }}',
|
81
73
|
'theme' : 'dark',
|
82
74
|
'size' : 'compact',
|
83
|
-
'callback' : processContactRequest
|
84
|
-
});
|
75
|
+
'callback' : processContactRequest});
|
85
76
|
};
|
86
77
|
|
87
78
|
modalWindowElement.addEventListener('click', hideModalWindow);
|
data/_layouts/contact.html
CHANGED
@@ -4,22 +4,22 @@ mail:
|
|
4
4
|
subject:
|
5
5
|
intro:
|
6
6
|
---
|
7
|
-
{%- capture mail-intro -%}You received a message on <a href=
|
7
|
+
{%- capture mail-intro -%}You received a message on <a href='{{ site.url }}'>your website</a>.{%- endcapture -%}
|
8
8
|
<?php
|
9
9
|
|
10
10
|
$contact_name = $contact_email = $contact_message = $token = $contact_ip = "";
|
11
11
|
|
12
12
|
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
13
13
|
if (has_required_data($_POST)) {
|
14
|
-
$contact_name = filter_var(
|
14
|
+
$contact_name = urldecode(filter_var(
|
15
15
|
$_POST["name"],
|
16
|
-
FILTER_SANITIZE_FULL_SPECIAL_CHARS);
|
17
|
-
$contact_email = filter_var(
|
16
|
+
FILTER_SANITIZE_FULL_SPECIAL_CHARS));
|
17
|
+
$contact_email = urldecode(filter_var(
|
18
18
|
$_POST["email"],
|
19
|
-
FILTER_SANITIZE_EMAIL);
|
20
|
-
$contact_message = filter_var(
|
19
|
+
FILTER_SANITIZE_EMAIL));
|
20
|
+
$contact_message = urldecode(filter_var(
|
21
21
|
$_POST["message"],
|
22
|
-
FILTER_SANITIZE_FULL_SPECIAL_CHARS);
|
22
|
+
FILTER_SANITIZE_FULL_SPECIAL_CHARS));
|
23
23
|
$token = filter_var(
|
24
24
|
$_POST["token"],
|
25
25
|
FILTER_SANITIZE_URL);
|
@@ -73,11 +73,11 @@ function send_mail ($name, $email, $message, $ip) {
|
|
73
73
|
"{{ site.email }}",
|
74
74
|
"{{ page.mail.subject | default: 'Contact request' }}",
|
75
75
|
(
|
76
|
-
|
77
|
-
."Ip: ".$ip."<br>\r\n"
|
78
|
-
."Name: ".$name."<br>\r\n"
|
79
|
-
."Email: ".$email."<br>\r\n"
|
80
|
-
."Message: ".$message."<br>\r\n"),
|
76
|
+
"{{ page.mail.intro | default: mail-intro }}<br>\r\n"
|
77
|
+
."Ip: ".$ip."<br><br>\r\n"
|
78
|
+
."Name: ".$name."<br><br>\r\n"
|
79
|
+
."Email: ".$email."<br><br>\r\n"
|
80
|
+
."Message: ".$message."<br><br>\r\n"),
|
81
81
|
(
|
82
82
|
"From: ".$name
|
83
83
|
." <".$email.">\r\n"
|
data/_layouts/landing.html
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
---
|
3
3
|
{%- assign lang = page.lang | default: site.lang | default: 'en' -%}
|
4
4
|
{%- assign menu = site.data.menus[page.menu][lang] -%}
|
5
|
-
{%- assign header = page.header | default: site.header -%}
|
6
5
|
{%- assign title = page.title | default: site.title -%}
|
7
6
|
{%- assign description = page.description | default: site.description -%}
|
8
7
|
{%- assign stylesheets = page.stylesheets | default: site.stylesheets -%}
|
@@ -14,47 +13,13 @@
|
|
14
13
|
Free for personal and commercial use under the CCA 4.0 license
|
15
14
|
-->
|
16
15
|
<html lang="{{ lang }}">
|
17
|
-
|
18
|
-
{% include head.html title=title subtitle=subtitle %}
|
19
|
-
|
16
|
+
{% include head.html title=title description=description stylesheets=stylesheets %}
|
20
17
|
<body>
|
21
|
-
|
22
|
-
|
23
|
-
.
|
24
|
-
fill: rgba(10,100,130,0.4);
|
25
|
-
}
|
26
|
-
.lower-half svg {
|
27
|
-
fill: rgba(130,0,130,0.4);
|
28
|
-
}
|
29
|
-
</style>
|
30
|
-
|
31
|
-
<!-- Wrapper -->
|
32
|
-
<div id="wrapper">
|
33
|
-
|
34
|
-
<div class="upper-half" style="position: fixed; z-index: 2; top:0; left: 0; width: 100vw; height: 100vh; display: flex; flex-direction: column;">
|
35
|
-
{% include waves/top.html ys=80 ye=20 x1=40 y1=80 x2=60 y2=20 cx=50 cy=50 r=4 %}
|
36
|
-
</div>
|
37
|
-
|
38
|
-
<div class="upper-half" style="position: fixed; z-index: 4; top:0; left: 0; width: 100vw; height: 100vh; display: flex; flex-direction: column;">
|
39
|
-
{% include waves/top.html ys=70 ye=30 x1=20 y1=90 x2=40 y2=20 cx=10 cy=76 r=2%}
|
40
|
-
</div>
|
41
|
-
|
42
|
-
<div class="upper-half" style="position: fixed; z-index: 4; top:0; left: 0; width: 100vw; height: 100vh; display: flex; flex-direction: column;">
|
43
|
-
{% include waves/top.html ys=65 ye=35 x1=15 y1=85 x2=35 y2=20 cx=10 cy=76 r=2%}
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div class="lower-half" style="position: fixed; z-index: 3; bottom:0; left: 0; width: 100vw; height: 100vh; display: flex; flex-direction: column;">
|
47
|
-
{% include waves/bottom.html ys=80 ye=20 x1=40 y1=80 x2=60 y2=20 cx=50 cy=50 r=4 %}
|
48
|
-
</div>
|
49
|
-
|
50
|
-
<div class="upper-half" style="position: fixed; z-index: 1; bottom:0; left: 0; width: 100vw; height: 100vh; display: flex; flex-direction: column;">
|
51
|
-
{% include waves/bottom.html ys=60 ye=80 x1=20 y1=80 x2=60 y2=100 cx=80 cy=88 r=2 %}
|
52
|
-
</div>
|
53
|
-
|
18
|
+
<div>
|
19
|
+
{{ content }}
|
20
|
+
{% include sidebar.html menu=menu %}
|
54
21
|
</div>
|
55
|
-
|
56
22
|
{% include footer.html %}
|
57
|
-
|
23
|
+
{% include scripts.html scripts=scripts %}
|
58
24
|
</body>
|
59
|
-
|
60
25
|
</html>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-consulting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Moodule
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|