summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules3
-rw-r--r--functions.php1
l---------public/feed/zeitumstellung/index.php1
-rw-r--r--public/index.php4
-rw-r--r--views/tools.html2
m---------views/tools/zeitumstellung0
6 files changed, 10 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
index 07a2e27..c3a8934 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -7,3 +7,6 @@
[submodule "views/tools/untrack"]
path = views/tools/untrack
url = git@git.iamfabulous.de:untrack
+[submodule "views/tools/zeitumstellung"]
+ path = views/tools/zeitumstellung
+ url = git@git.iamfabulous.de:zeitumstellung
diff --git a/functions.php b/functions.php
index a0ec825..361ece6 100644
--- a/functions.php
+++ b/functions.php
@@ -1,6 +1,7 @@
<?php
require __DIR__ . '/views/tools/untrack/resolve.php';
+require __DIR__ . '/views/tools/zeitumstellung/vendor/autoload.php';
function get_faces(){
return json_decode( file_get_contents( __DIR__ . '/views/tools/faces/faces.json' ), true );
diff --git a/public/feed/zeitumstellung/index.php b/public/feed/zeitumstellung/index.php
new file mode 120000
index 0000000..0636b9b
--- /dev/null
+++ b/public/feed/zeitumstellung/index.php
@@ -0,0 +1 @@
+../../../views/tools/zeitumstellung/ical.php \ No newline at end of file
diff --git a/public/index.php b/public/index.php
index fe70370..7e44159 100644
--- a/public/index.php
+++ b/public/index.php
@@ -34,6 +34,10 @@ case("/tools/untrack/"):
}
echo $twig->render('tools/untrack/index.html', [ "url" => $_url ]);
break;
+case("/tools/zeitumstellung"):
+case("/tools/zeitumstellung/"):
+ echo $twig->render('tools/zeitumstellung/index.html', [ "tc" => new Zeitumstellung() ]);
+ break;
default:
http_response_code(404);
echo $twig->render('404.html');
diff --git a/views/tools.html b/views/tools.html
index 286c2b0..2e8ddfc 100644
--- a/views/tools.html
+++ b/views/tools.html
@@ -25,7 +25,7 @@
<a href="/tools/pizza" title="Pizzarechner">Pizzarechner</a>
</li>
<li>
- <a href="https://zeitumstellung.iamfabulous.de" title="Zeitumstellung" rel="nofollow">Zeitumstellung - Als iCal-Feed für deinen Kalender</a>
+ <a href="/tools/zeitumstellung" title="Zeitumstellung">Zeitumstellung - Als iCal-Feed für deinen Kalender</a>
</li>
<li>
<a href="https://bpm.iamfabulous.de" title="BPM / Tanz" rel="nofollow">BPM / Tanz</a>
diff --git a/views/tools/zeitumstellung b/views/tools/zeitumstellung
new file mode 160000
+Subproject 0eb2ede2855287eb77a5f2108afb14be5e413b5