aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/about_page.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/about_page.php')
-rw-r--r--templates/about_page.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/about_page.php b/templates/about_page.php
new file mode 100644
index 0000000..fdfaaa3
--- /dev/null
+++ b/templates/about_page.php
@@ -0,0 +1,24 @@
+<?php
+use Digitigrade\GlobalSettings;
+
+
+call_template('skeleton', ['pageTitle' => __('about.pageTitle')], function () {
+ $s = GlobalSettings::getInstance();
+ $desc = $s->get('about.description') ?? '';
+ $terms = $s->get('about.terms') ?? '';
+ ?>
+
+ <?php if ($desc == ''): ?>
+ <?php call_template('placeholder_text'); ?>
+ <?php else: ?>
+ <pre class="panel"><?= $desc ?></pre>
+ <?php endif; ?>
+
+ <h2><?= __('about.terms.heading') ?></h2>
+ <?php if ($terms == ''): ?>
+ <?php call_template('placeholder_text'); ?>
+ <?php else: ?>
+ <pre class="panel"><?= $terms ?></pre>
+ <?php endif; ?>
+
+<?php }); \ No newline at end of file