From bd29ffd43cc8e1b4304a0fa46d1be86d37de62eb Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 9 Aug 2024 12:05:51 +0200 Subject: [PATCH] feat: add custom footer links to configuration Introduced a new 'footer_links' configuration option allowing users to specify custom links to display in the footer. Each link includes 'text' and 'url'. This enhances the flexibility of the footer content, making it adaptable to various use cases. Updated the index.php to dynamically generate these footer links if they are set in the configuration, ensuring they are rendered appropriately along with existing links. --- config.dist.php | 6 +++++- index.php | 13 ++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/config.dist.php b/config.dist.php index 96a24dc..1580ce2 100644 --- a/config.dist.php +++ b/config.dist.php @@ -1,5 +1,9 @@ true, // Show the "Servers Guru" attribution link in the info text - 'attribution' => '' // Custom attribution HTML to show in the info text + 'attribution' => '', // Custom attribution HTML to show in the info text + 'footer_links' => [ // Custom links to show in the footer + ['text' => 'Clearnet', 'url' => 'https://calc.revuo-xmr.com'], + ['text' => 'Tor', 'url' => 'http://calc.revuo75joezkbeitqmas4ab6spbrkr4vzbhjmeuv75ovrfqfp47mtjid.onion'] + ] ]; \ No newline at end of file diff --git a/index.php b/index.php index 6642134..db8c146 100644 --- a/index.php +++ b/index.php @@ -168,8 +168,19 @@ $attribution = isset($config['attribution']) ? $config['attribution'] : ''; echo $attribution; ?>
+ + ' . $link['text'] . ' | '; + } + } + ?> + - +