From 8c14e6ea41d040981b82e9ecb0e2ac79260a24e4 Mon Sep 17 00:00:00 2001 From: Gudule Lapointe Date: Mon, 30 Dec 2024 12:03:26 -0400 Subject: [PATCH] disable setlocale warning --- addons/gloebit.php | 2 +- css/guide.css | 104 ++++++++++++++++++++--------------------- includes/functions.php | 2 +- 3 files changed, 54 insertions(+), 54 deletions(-) diff --git a/addons/gloebit.php b/addons/gloebit.php index a002196..7e0a16b 100644 --- a/addons/gloebit.php +++ b/addons/gloebit.php @@ -13,7 +13,7 @@ */ if ( CURRENCY_PROVIDER != 'gloebit' ) { - die(); + die(); } /** * Set to true to activate sandbox mode, during initial installation and tests. diff --git a/css/guide.css b/css/guide.css index 185c292..79b88ec 100644 --- a/css/guide.css +++ b/css/guide.css @@ -10,107 +10,107 @@ */ :root { - --guide-color-green: #61c909; - --guide-color-orange: #ff7f00; - --guide-color-text: white; + --guide-color-green: #61c909; + --guide-color-orange: #ff7f00; + --guide-color-text: white; } body { } body.destination-guide { - padding: 0; - margin: 0; - /* background: var(--guide-color-orange); */ - height: 100vh; /* Set the height of the body to the full viewport height */ - display: flex; - justify-content: center; /* Center the #guide div horizontally */ - align-items: center; /* Center #guide both horizontally and vertically */ - overflow: hidden; /* Hide any content that overflows outside #guide */ + padding: 0; + margin: 0; + /* background: var(--guide-color-orange); */ + height: 100vh; /* Set the height of the body to the full viewport height */ + display: flex; + justify-content: center; /* Center the #guide div horizontally */ + align-items: center; /* Center #guide both horizontally and vertically */ + overflow: hidden; /* Hide any content that overflows outside #guide */ } #guide { - font-family: "Liberation Sans", Arial, Roboto, "Helvetica", sans-serif; - background: var(--guide-color-orange); - color: var(--guide-color-text); - padding: 10px; - width: 100%; /* Allow #guide to fill the entire width of the viewport */ - height: 100vh; /* Set the height of #guide to the full viewport height */ - overflow: hidden; /* Hide any content that overflows outside #guide */ - display: flex; /* Add this line to use flexbox layout */ - flex-direction: column; /* Add this line to set the flex direction to column */ + font-family: "Liberation Sans", Arial, Roboto, "Helvetica", sans-serif; + background: var(--guide-color-orange); + color: var(--guide-color-text); + padding: 10px; + width: 100%; /* Allow #guide to fill the entire width of the viewport */ + height: 100vh; /* Set the height of #guide to the full viewport height */ + overflow: hidden; /* Hide any content that overflows outside #guide */ + display: flex; /* Add this line to use flexbox layout */ + flex-direction: column; /* Add this line to set the flex direction to column */ } #guide .header { - padding-top: 10px; + padding-top: 10px; } #guide a { - color: var(--guide-color-text); - text-decoration: none; + color: var(--guide-color-text); + text-decoration: none; } #guide .list > a { - height: 160px; + height: 160px; } #guide .item:hover, #guide a:hover { - color: black; + color: black; } #guide .item:hover { - background: var(--guide-color-green); - /* transform: scale(0.95); /* Slight scale-up effect on hover */ */ + background: var(--guide-color-green); + /* transform: scale(0.95); /* Slight scale-up effect on hover */ */ } #guide h1, #guide h2 { - margin: 0; - font-size: 1.25rem; - padding: 0 10px 5px; - display: inline-block; + margin: 0; + font-size: 1.25rem; + padding: 0 10px 5px; + display: inline-block; } #guide .disclaimer { - float: right; - font-size: 0.85rem; - opacity: 0.7; + float: right; + font-size: 0.85rem; + opacity: 0.7; } #guide a.back { - font-size: 0.9rem; + font-size: 0.9rem; } #guide .list { - display: flex; - overflow-x: auto; /* Enable horizontal scrolling */ - overflow-y: hidden; /* Hide vertical scrolling */ + display: flex; + overflow-x: auto; /* Enable horizontal scrolling */ + overflow-y: hidden; /* Hide vertical scrolling */ flex-grow: 1; /* Allow .list to grow and fill the remaining height */ - padding-bottom: 10px; + padding-bottom: 10px; } #guide .item, #guide .error { - padding: 10px; - box-sizing: border-box; + padding: 10px; + box-sizing: border-box; } #guide .item { - width: 160px; - transition: background-color 0.3s ease; /* Add a smooth transition effect for background color */ + width: 160px; + transition: background-color 0.3s ease; /* Add a smooth transition effect for background color */ } #guide img.thumbnail { - width: 140px; - height: 105px; - object-fit: cover; /* Crop the image to fit without stretching */ + width: 140px; + height: 105px; + object-fit: cover; /* Crop the image to fit without stretching */ } #guide .name { - font-size: 0.85rem; - font-weight: bold; - white-space: nowrap; /* Prevent the name from wrapping */ - overflow: hidden; /* Hide overflowing content */ - text-overflow: ellipsis; /* Add an ellipsis (...) to indicate content is hidden */ + font-size: 0.85rem; + font-weight: bold; + white-space: nowrap; /* Prevent the name from wrapping */ + overflow: hidden; /* Hide overflowing content */ + text-overflow: ellipsis; /* Add an ellipsis (...) to indicate content is hidden */ } #guide .data { - font-size: 0.8rem; + font-size: 0.8rem; } diff --git a/includes/functions.php b/includes/functions.php index 2e76353..d4860f0 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -508,7 +508,7 @@ function set_helpers_locale( $locale = null, $domain = 'messages' ) { $variants = array_unique( $variants ); if ( ! setlocale( LC_ALL, $variants ) ) { - error_log( "setlocale() failed: none of '" . join( ', ', $variants ) . "' does exist in this environment or setlocale() is not available on this platform" ); + // error_log( "setlocale() failed: none of '" . join( ', ', $variants ) . "' does exist in this environment or setlocale() is not available on this platform" ); setlocale( LC_ALL, 0 ); return 0; }