Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b1d958

Browse files
committed
Add privacy policy and update to Daux layout
1 parent e76d9f7 commit 1b1d958

5 files changed

Lines changed: 45 additions & 12 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.html
2+
ads.txt
File renamed without changes.

95_Privacy_policy.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Privacy Policy
2+
3+
## General
4+
5+
This privacy policy applies to the information that is collected when you use vulkan-tutorial.com or any of its subdomains. It describes how the owner of this website, Alexander Overvoorde, collects, uses and shares information about you.
6+
7+
## Analytics
8+
9+
This website collects analytics about visitors using a self-hosted instance of Matomo ([https://matomo.org/](https://matomo.org/)), formerly known as Piwik. It records which pages you visit, what type of device and browser you use, how long you view a given page and where you came from. This information is anonymized by only recording the first two bytes of your IP address (e.g. `123.123.xxx.xxx`). These anonymized logs are stored for an indefinite amount of time.
10+
11+
These analytics are used for the purpose of tracking how content on the website is consumed, how many people visit the website in general, and which other websites link here. This makes it easier to engage with the community and determine which areas of the website should be improved, for example if extra time should be spent on facilitating mobile reading.
12+
13+
This data is not shared with third parties.
14+
15+
## Advertisement
16+
17+
This website uses a third-party advertisement server that may use cookies to track activities on the website to measure engagement with advertisements.
18+
19+
## Comments
20+
21+
Each chapter includes a comment section at the end that is provided by the third-party Disqus service. This service collects identity data to facilitate the reading and submission of comments, and aggregate usage information to improve their service.
22+
23+
The full privacy policy of this third-party service can be found at [https://help.disqus.com/terms-and-policies/disqus-privacy-policy](https://help.disqus.com/terms-and-policies/disqus-privacy-policy).

config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"links": {
2020
"GitHub Repository": "https://github.com/Overv/VulkanTutorial",
2121
"Support the website": "https://www.paypal.me/AOvervoorde",
22+
"Privacy policy": "https://vulkan-tutorial.com/Privacy_policy",
2223
"Vulkan Specification": "https://www.khronos.org/registry/vulkan/specs/1.0-wsi_extensions/pdf/vkspec.pdf",
2324
"Vulkan Quick Reference": "https://www.khronos.org/files/vulkan10-reference-guide.pdf",
2425
"LunarG Vulkan SDK": "https://lunarg.com/vulkan-sdk/",

daux.patch

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
From 3ceba9884e5db76a32c6318e0d474d4ba2f7756d Mon Sep 17 00:00:00 2001
1+
From 340a3c96e897c2f1d16425a4dd69512bc36cf22c Mon Sep 17 00:00:00 2001
22
From: Alexander Overvoorde <[email protected]>
3-
Date: Fri, 4 Jan 2019 18:42:00 +0100
3+
Date: Wed, 24 Apr 2019 21:26:17 +0200
44
Subject: [PATCH] Adjust theme for Vulkan tutorial
55

66
---
77
daux/VulkanLinkProcessor.php | 69 ++++
8-
templates/content.php | 25 +-
8+
templates/content.php | 27 +-
99
templates/layout/00_layout.php | 21 +-
10-
templates/layout/05_page.php | 22 +-
10+
templates/layout/05_page.php | 28 +-
1111
themes/daux/css/theme-blue.min.css | 2 +-
1212
themes/daux/css/theme-green.min.css | 2 +-
1313
themes/daux/css/theme-navy.min.css | 2 +-
@@ -20,7 +20,7 @@ Subject: [PATCH] Adjust theme for Vulkan tutorial
2020
themes/daux/less/structure.less | 27 +-
2121
themes/daux/less/theme-blue.less | 10 +-
2222
themes/daux_singlepage/css/main.min.css | 2 +-
23-
16 files changed, 967 insertions(+), 139 deletions(-)
23+
16 files changed, 974 insertions(+), 140 deletions(-)
2424
create mode 100644 daux/VulkanLinkProcessor.php
2525

2626
diff --git a/daux/VulkanLinkProcessor.php b/daux/VulkanLinkProcessor.php
@@ -99,7 +99,7 @@ index 0000000..4e4d456
9999
+ }
100100
+?>
101101
diff --git a/templates/content.php b/templates/content.php
102-
index 2febe38..f1083bd 100644
102+
index 2febe38..2f72f0d 100644
103103
--- a/templates/content.php
104104
+++ b/templates/content.php
105105
@@ -2,17 +2,14 @@
@@ -122,11 +122,12 @@ index 2febe38..f1083bd 100644
122122
</div>
123123
<?php } ?>
124124

125-
@@ -26,5 +23,23 @@
125+
@@ -26,5 +23,25 @@
126126
</ul>
127127
</nav>
128128
<?php } ?>
129129
+
130+
+ <?php if ($page['title'] != 'Privacy policy') { ?>
130131
+ <div id="disqus_thread"></div>
131132
+ <script>
132133
+ if (document.location.host) {
@@ -144,6 +145,7 @@ index 2febe38..f1083bd 100644
144145
+ }
145146
+ </script>
146147
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
148+
+ <?php } ?>
147149
</article>
148150

149151
diff --git a/templates/layout/00_layout.php b/templates/layout/00_layout.php
@@ -186,7 +188,7 @@ index 868dd05..8926ed8 100755
186188
<body class="<?= $params['html']['float'] ? 'with-float' : ''; ?>">
187189
<?= $this->section('content'); ?>
188190
diff --git a/templates/layout/05_page.php b/templates/layout/05_page.php
189-
index 1bd8752..ad872bf 100755
191+
index 1bd8752..f9eb2ca 100755
190192
--- a/templates/layout/05_page.php
191193
+++ b/templates/layout/05_page.php
192194
@@ -4,11 +4,6 @@
@@ -223,18 +225,24 @@ index 1bd8752..ad872bf 100755
223225

224226
<div class="sidebar-links">
225227
<?php if (!empty($params['html']['links']) || !empty($params['html']['twitter']) || $params['html']['toggle_code']) { ?>
226-
@@ -37,6 +37,10 @@
228+
@@ -36,7 +36,15 @@
229+
<!-- Links -->
227230
<?php
228231
foreach ($params['html']['links'] as $name => $url) {
229-
echo '<a href="' . $url . '" target="_blank">' . $name . '</a><br>';
232+
- echo '<a href="' . $url . '" target="_blank">' . $name . '</a><br>';
233+
+ if ($name == "Privacy policy") {
234+
+ echo '<a href="' . $url . '">' . $name . '</a><br>';
235+
+ } else {
236+
+ echo '<a href="' . $url . '" target="_blank">' . $name . '</a><br>';
237+
+ }
230238
+
231-
+ if ($name == "Support the website" || $name == "Vulkan Hardware Database") {
239+
+ if ($name == "Privacy policy" || $name == "Vulkan Hardware Database") {
232240
+ echo '<br>';
233241
+ }
234242
} ?>
235243

236244
<div id="toggleCodeBlock">
237-
@@ -60,15 +64,15 @@
245+
@@ -60,15 +68,15 @@
238246
<iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:162px; height:20px;" src="https://platform.twitter.com/widgets/follow_button.html?screen_name=<?= $handle; ?>&amp;show_count=false"></iframe>
239247
</div>
240248
<?php } ?>

0 commit comments

Comments
 (0)