This commit is contained in:
evanebb 2023-12-02 21:24:14 +01:00
parent 979b1e081e
commit 308c84f423
No known key found for this signature in database
5 changed files with 6 additions and 5 deletions

View File

@ -62,8 +62,8 @@ class LookingGlass
if (!defined('LG_BLOCK_NETWORK')) {
die('LG_BLOCK_NETWORK not found in config.php');
}
if (!defined('LG_BLOCK_LOOKINGGLAS')) {
die('LG_BLOCK_LOOKINGGLAS not found in config.php');
if (!defined('LG_BLOCK_LOOKINGGLASS')) {
die('LG_BLOCK_LOOKINGGLASS not found in config.php');
}
if (!defined('LG_BLOCK_SPEEDTEST')) {
die('LG_BLOCK_SPEEDTEST not found in config.php');

View File

@ -44,7 +44,7 @@ $templateData = [
'logo_data_dark' => LG_LOGO_DARK,
//
'block_network' => LG_BLOCK_NETWORK,
'block_lookingglas' => LG_BLOCK_LOOKINGGLAS,
'block_lookingglass' => LG_BLOCK_LOOKINGGLASS,
'block_speedtest' => LG_BLOCK_SPEEDTEST,
'block_custom' => LG_BLOCK_CUSTOM,
'custom_html' => '',

View File

@ -24,7 +24,7 @@ const LG_CUSTOM_HEAD = false;
// Enable or disable blocks/parts of the LG, set false to hide a part;
const LG_BLOCK_NETWORK = true;
const LG_BLOCK_LOOKINGGLAS = true;
const LG_BLOCK_LOOKINGGLASS = true;
const LG_BLOCK_SPEEDTEST = true;
// This enables the custom block, which you can use to add something custom to the LG;
const LG_BLOCK_CUSTOM = false;

View File

@ -26,6 +26,7 @@ const LG_CUSTOM_HEAD = false;
const LG_BLOCK_NETWORK = true;
const LG_BLOCK_LOOKINGGLAS = true;
const LG_BLOCK_SPEEDTEST = true;
const LG_BLOCK_LOOKINGGLASS = true;
// This enables the custom block, which you can use to add something custom to the LG;
define('LG_BLOCK_CUSTOM', getenv('ENABLE_CUSTOM_BLOCK') !== false);

View File

@ -194,7 +194,7 @@ $templateData['csrfToken'] = $_SESSION[LookingGlass::SESSION_CSRF] = bin2hex(ran
</div>
<?php endif ?>
<?php if (LG_BLOCK_LOOKINGGLAS): ?>
<?php if (LG_BLOCK_LOOKINGGLASS): ?>
<div class="row pb-5">
<div class="card shadow-lg">
<div class="card-body p-3">