aboutsummaryrefslogtreecommitdiffstats
path: root/partials/site_nav_panel.php
blob: a23d1045f55f3662fd7cbcbf092b65e6d113b231 (plain) (blame)
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
41
42
43
44
<?php
// partials/site_nav_panel.php โ€” curated "Explore SillyLaird" link panel.
// xahlee.info <nav class="lpanelxl"> style: a titled box with a tight vertical
// link list, some entries carrying an enlarged emoji (.emojixl).
// Shown on every non-homepage page (included from partials/footer.php).
//
// To curate: edit $panel_links below. ['href','label','emoji','external'].
$panel_links = [
    ['/now/',                       'Now',               '๐Ÿ“Œ'],
    ['/motd/',                      'MOTD',              '๐Ÿ“œ'],
    ['/journal/',                   'Journal',           '๐Ÿ““'],
    ['https://blog.sillylaird.ca/', 'Blog',              'โœ',  true],
    ['/gaming/',                    'Gaming archive',    '๐ŸŽฎ'],
    ['/gaming/collection/',         'Game Collection',   '๐Ÿ“ผ'],
    ['/gaming/multibox/',           'Multiboxing',       'โš”'],
    ['/musictaste/',                'Music taste',       '๐ŸŽต'],
    ['/computers/',                 'Computers',         '๐Ÿ–ฅ'],
    ['/bookmarks/',                 'Bookmarks',         '๐Ÿ”–'],
    ['/links.php',                  'Links',             '๐Ÿ”—'],
    ['/hatCollectionWebsite.php',   'Hat collection',    '๐Ÿงข'],
    ['/startpage/',                 'StartPage',         '๐Ÿ '],
    ['/changelog/',                 'Changelog',         '๐Ÿ› '],
    ['/guestbook.php',              'Guestbook',         '๐Ÿ“–'],
    ['/vblog/',                     'vBlog',             '๐ŸŽฌ'],
    ['/whatsleft/',                 "What's left",       '๐Ÿงน'],
    ['/Laird_Lonergan_profile.php', 'Profile',           '๐Ÿ‘ค'],
    ['/map/',                       'Site map',          '๐Ÿ—บ'],
];
?>
<div class="wrap">
  <nav class="lpanelxl" aria-label="Explore SillyLaird">
    <h3>Explore SillyLaird</h3>
    <ul>
<?php foreach ($panel_links as $l):
        $href  = htmlspecialchars($l[0], ENT_QUOTES, 'UTF-8');
        $label = htmlspecialchars($l[1], ENT_QUOTES, 'UTF-8');
        $emoji = htmlspecialchars($l[2] ?? '', ENT_QUOTES, 'UTF-8');
        $ext   = !empty($l[3]);
?>
      <li><a href="<?= $href ?>"<?= $ext ? ' target="_blank" rel="noopener noreferrer"' : '' ?>><?= $label ?><?php if ($emoji): ?> <span class="emojixl"><?= $emoji ?></span><?php endif; ?></a></li>
<?php endforeach; ?>
    </ul>
  </nav>
</div>