From bee1f6c96c4b5aaffb0079e408965ff27e279e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Sat, 16 Mar 2024 14:21:57 +0100 Subject: [PATCH] Support for site verification codes --- assets/wordpress-bdp.css | 39 ++++++--- bdp-kompass.php | 5 +- changelog | 13 ++- .../partials}/checkbox-option.php | 0 .../partials}/radio-option.php | 0 components/partials/text-element.php | 19 +++++ includes/action_caller.php | 4 +- includes/frontend-functions.php | 45 +++++------ includes/setup.php | 3 +- includes/spl.php | 10 ++- lang/bdp-kompass-de_DE.mo | Bin 14514 -> 14847 bytes lang/bdp-kompass_de_DE.mo | Bin 14514 -> 0 bytes lang/bdp-kompass_de_DE.po | 15 ++++ .../Controllers/SettingsPage.php | 74 ++++++++++++++++++ modules/KompassSettings/Views/tab-control.php | 13 +++ .../LimitLoginAttempts/Views/text-element.php | 7 -- .../includes/gui_elements.php | 19 ++--- modules/seo/Views/seo-form.php | 28 +++++++ modules/seo/classes/Seo.class.php | 26 ++++++ modules/seo/includes/meta.php | 12 +++ 20 files changed, 271 insertions(+), 61 deletions(-) rename {modules/LimitLoginAttempts/Views => components/partials}/checkbox-option.php (100%) rename {modules/LimitLoginAttempts/Views => components/partials}/radio-option.php (100%) create mode 100644 components/partials/text-element.php delete mode 100644 lang/bdp-kompass_de_DE.mo create mode 100644 modules/KompassSettings/Controllers/SettingsPage.php create mode 100644 modules/KompassSettings/Views/tab-control.php delete mode 100644 modules/LimitLoginAttempts/Views/text-element.php create mode 100644 modules/seo/Views/seo-form.php create mode 100644 modules/seo/includes/meta.php diff --git a/assets/wordpress-bdp.css b/assets/wordpress-bdp.css index a903f3a..8f5d93a 100644 --- a/assets/wordpress-bdp.css +++ b/assets/wordpress-bdp.css @@ -55,15 +55,15 @@ body { } #adminmenu > li a { - color: #1d4899; + color: #020918; } #adminmenu > li div.wp-menu-image:before { - color: #1d4899; + color: #020918; } #adminmenu > li a:hover, #adminmenu > li.menu-top:hover, #adminmenu > li.opensub > a.menu-top, #adminmenu > li > a.menu-top:focus { - color: #1d4899; + color: #020918; } #adminmenu > li.menu-top:hover, #adminmenu > li.opensub > a.menu-top, #adminmenu > li > a.menu-top:focus { @@ -111,7 +111,6 @@ body { #adminmenu > li .wp-submenu .wp-submenu-head { color: #1d4899; - font-weight: bold !important; } .wp-has-current-submenu:hover { @@ -122,13 +121,35 @@ body { padding: 10px 0px 10px 10px; padding-top: 10px !important; padding-bottom: 10px !important; - font-weight: bold; } #collapse-button { display: none; } +.bdp_setting_box { + margin-right: 10px; + background-color: #ffffff; + padding: 15px; + border-style: solid; + border-width: 1px; + border-top-width: 0 !important; + border-color: #1d94cf; +} + +.bdp_setting_box:first-of-type { + border-top-width: 1px !important; +} + +.bdp_setting_box label { + cursor: pointer; +} + +.bdp_setting_box label span { + cursor: pointer; + width: 10pt; + color: #a0a0a0; +} @media screen and (min-width: 783px) { .wp-has-current-submenu li a { @@ -216,13 +237,13 @@ ul#adminmenu a.wp-has-current-submenu::after, ul#adminmenu > li.current > a.curr } #adminmenu div.wp-menu-name { - font-weight: bolder; + } #adminmenu > li .wp-submenu a, #adminmenu > li.wp-has-current-submenu .wp-submenu a, #adminmenu > li a.wp-has-current-submenu:focus + .wp-submenu a, .folded #adminmenu > li.wp-has-current-submenu .wp-submenu a, #adminmenu > li.wp-has-current-submenu.opensub .wp-submenu a { - color: #1d4899; + color: #020918; padding-left: 25px; - font-weight: bold; + } @@ -232,7 +253,7 @@ ul#adminmenu a.wp-has-current-submenu::after, ul#adminmenu > li.current > a.curr } #adminmenu > li .wp-submenu li.current a, #adminmenu > li a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu > li.wp-has-current-submenu.opensub .wp-submenu li.current a { - color: #1d4899; + color: #010a1a; } #adminmenu > li .wp-submenu li.current a:hover, #adminmenu > li .wp-submenu li.current a:focus, #adminmenu > li a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu > li a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu > li.wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu > li.wp-has-current-submenu.opensub .wp-submenu li.current a:focus { diff --git a/bdp-kompass.php b/bdp-kompass.php index e477bfb..b126413 100644 --- a/bdp-kompass.php +++ b/bdp-kompass.php @@ -2,7 +2,7 @@ /** * Plugin Name: BdP Kompass * Description: Wordpress-Plugin zur Unterstützung von Stämmen im Bund der Pfadfinderinnen und Pfadfinder e.V. zur optimalen Verwaltung eurer Webseite - * Version: 4.3.6 + * Version: 4.3.7 * Tags: bdp, utility, helper * Requires at least: 6.0 * Requires PHP: 8.2 @@ -12,6 +12,7 @@ * Text Domain: bdp-kompass */ +use Bdp\Modules\KompassSettings\Controllers\SettingsPage as KomnpassSettings; use Bdp\Modules\LimitLoginAttempts\Controllers\OptionsPage as OptionsPageAlias; use Bdp\Modules\Security\Security; use Bdp\Modules\Seo\Seo; @@ -35,12 +36,14 @@ function bdp_plugin_init() { update_option('kompass_already_installed', true); wp_redirect( 'site-health.php?tab=bdp_enhanced_security'); } + Seo::importVerificationKeys(); } add_action('admin_menu', function () { bdp_kompass_load_plugin_textdomain(); new OptionsPageAlias(); + new KomnpassSettings(); }); diff --git a/changelog b/changelog index e76a2ef..9a9bbb2 100644 --- a/changelog +++ b/changelog @@ -1,8 +1,19 @@ -

Version 4.3.6

+

Version 4.3.8

+ + +

Version 4.3.7

+

Version 4.3.6

+ +

Version 4.3.5