aboutsummaryrefslogtreecommitdiff
path: root/src/view/templates/footer.php
blob: dc1c6cbfe50b9964ab1e8322324da8e19de5c6ea (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php declare(strict_types=1); ?>
            <footer>
<?= $breadcrumb ?>
                <div class="data">
                    <div class="contact">
                        <div id="footer_name">
                            <span id="footer_name_content"><?= htmlspecialchars($name ?? '') ?></span>
                            <?= $admin_footer_name ?>
                        </div>
                        <div id="footer_address">
                            <span id="footer_address_content"><?= htmlspecialchars($address ?? '') ?></span>
                            <?= $admin_footer_address ?>
                        </div>
                        <div id="footer_email">
                            <a id="footer_email_content" href="mailto:<?= $email ?>"><?= htmlspecialchars($email ?? '') ?></a>
                            <?= $admin_footer_email ?>
                        </div>
                    </div>
                    <div id="footer_logo">
                        <a id="footer_logo_content" href="<?= new URL ?>"><img src="<?= $footer_logo ?? '' ?>" alt="logo_alt"></a>
                        <?= $admin_footer_logo ?>
                    </div>
<?php if($_SESSION['admin']){ ?>
                    <script>
                        let footer_name = new InputText('footer_name');
                        let footer_address = new InputText('footer_address');
                        let footer_email = new InputText('footer_email');
                        let footer_logo = new InputFile('footer_logo');
                    </script>
<?php } ?>
                </div>
                <div class="<?= $empty_admin_zone ?>"></div>
                <div class="<?= $div_admin ?>">
<?= $zone_admin ?>
                </div>
                <div id="toast"></div>
            </footer>
        </div>
    </body>
</html>