blob: fdfaaa323bfbb0fce332c5fc93189d3c9b73bf87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 });
|