From ad0585180ef9c6b1f8aa1e19044fb17a638836b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Thu, 31 Oct 2024 12:53:26 +0100 Subject: [PATCH] Updated messages for deployment of new version --- assets/wordpress-bdp.css | 542 ++++++++++++------ includes/frontend-functions.php | 4 +- .../Controllers/class-main.php | 7 +- 3 files changed, 364 insertions(+), 189 deletions(-) diff --git a/assets/wordpress-bdp.css b/assets/wordpress-bdp.css index daaec96..d10e3e7 100644 --- a/assets/wordpress-bdp.css +++ b/assets/wordpress-bdp.css @@ -1,232 +1,406 @@ -/* Hintergrund des gesamten Dashboards */ -#wpwrap { - background-color: #ecf0f1; /* Hellgrauer Hintergrund, wie auf der Webseite */ - display: flex; - justify-content: center; - align-items: flex-start; - min-height: 100vh; /* Gesamte Höhe des Bildschirms */ - width: 1600px; - margin: 0 auto; - overflow: hidden; - box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Schatten für 3D-Effekt */ - +#adminmenuback, #adminmenuwrap, #adminmenu, #adminmenu .wp-has-current-submenu > .wp-submenu { + width: 250px; } -/* Der zentrale Inhaltsbereich (die App) wird in die Box integriert */ -/* Hauptinhaltsbereich anpassen */ -#wpcontent { - margin-top: 100px; - background-color: #ffffff; /* Weißer Hintergrund für den Inhaltsbereich */ - border-radius: 0px 10px 0 0; /* Leichte Rundung der Ecken */ - height: calc(100vh - 100px); /* Höhe anpassen: 100vh minus Höhe von Header und Navbar */ - width: 1280px; - max-width: 1500px; /* Maximale Breite wie auf der Vorlage */ - padding: 20px; /* Innenabstand */ - padding-left: 60px; - overflow: hidden; + +#wpcontent, #wpfooter { + margin-left: 230px; + background-color: #ffffff !important; + padding-left: 40px; } -#wpbody { - overflow: hidden; - height: calc(100vh - 200px); - +#adminmenu .wp-submenu { + left: 210px; } -#wpbody-content { - height: calc(100vh - 200px); - overflow-y: auto; +#adminmenu .wp-not-current-submenu .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .ame-has-deep-submenu:not(.ame-has-highlighted-item) > .wp-submenu { + width: 30px; } -/* Sicherstellen, dass der Body den gesamten Bildschirm ausfüllt */ - body { - overflow: hidden; - margin: 0; /* Entfernt Standardmargen */ - height: 100vh; /* Setzt die Höhe des Bodys auf 100vh */ + --ame-ms-menu-width: 250px; } -/* Gelber Header im Dashboard */ -#wpadminbar { - position: absolute; - background-color: #f1c40f; /* Gelber Header wie auf der Webseite */ - height: 200px; - width: 1280px; +@media screen and (min-width: 783px) { + body:not(.folded) #widgets-editor .interface-interface-skeleton { + left: 250px; + } + + + #adminmenu .wp-not-current-submenu .wp-submenu { + display: none !important; + } - margin: auto !important; - align-items: center; - justify-content: space-between; - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Leichter Schatten für den Header */ } + +@media screen and (max-width: 960px) and (min-width: 783px) { + body.auto-fold #widgets-editor .interface-interface-skeleton { + left: var(--ame-ms-collapsed-menu-width, 36px); + } + +} +#wpwrap { + background-color: #ffffff; +} +#adminmenuback { + box-shadow: none; +} + +#adminmenu .wp-submenu a { + font-weight: 200; +} +#adminmenu > li { + padding: 10px 5px; + font-weight: bolder; +} + +#adminmenu > li a { + color: #020918; +} + +#adminmenu > li div.wp-menu-image:before { + color: #020918; +} + +#adminmenu > li a:hover, #adminmenu > li.menu-top:hover, #adminmenu > li.opensub > a.menu-top, #adminmenu > li > a.menu-top:focus { + color: #020918; +} + +#adminmenu > li.menu-top:hover, #adminmenu > li.opensub > a.menu-top, #adminmenu > li > a.menu-top:focus { + background-color: rgb(240, 244, 247); + color: #1d4899 !important; +} + +#adminmenu > li.menu-top:hover div.wp-menu-image:before, #adminmenu > li.menu-top > a:focus div.wp-menu-image:before, #adminmenu > li.opensub > a.menu-top div.wp-menu-image:before { + color: #1d4899; +} + +#adminmenu > li .wp-submenu, #adminmenu > li.wp-has-current-submenu .wp-submenu, #adminmenu > li.wp-has-current-submenu.opensub .wp-submenu, .folded #adminmenu > li.wp-has-current-submenu .wp-submenu a.wp-has-current-submenu:focus + .wp-submenu { + background: #ffcb04; +} + + + +.nav-tab { + border-color: rgb(128, 159, 245); + background-color: rgba(185, 203, 255, 0.84); + border-radius: 5px 5px 0 0; +} + +/* Active tabs use a bottom border color that matches the page background color. */ +.about-wrap .nav-tab-active, +.nav-tab-active, +.nav-tab-active:hover { + border-style: none; + background-color: #F0F4F7; + border-bottom-color: #fff; + box-shadow: 2px 2px 5px #c0c0c0; +} + + +.button-primary { + border-style: none; + background-color: #F0F4F7 !important; + color: #404040 !important; + box-shadow: 2px 2px 5px #c0c0c0; +} + +#adminmenu > li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { + border-right-color: #ffcb04; +} + +#adminmenu > li .wp-submenu .wp-submenu-head { + color: #1d4899; +} + +.wp-has-current-submenu:hover { + background-color: #fafafa !important; +} + +.wp-submenu li a { + padding: 10px 0px 10px 10px; + padding-top: 10px !important; + padding-bottom: 10px !important; +} + +#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 { + width: 210px !important; + } + +} + +.wp-submenu li a:hover { + background-color: rgb(240, 244, 247) !important; + color: #1d4899 !important; +} + +.current .menu-top .wp-menu-name, +.wp-has-current-submenu .wp-menu-name { + background-color: #ffcb04 !important; + border-style: none !important; + width: 202px; +} + +.wp-has-submenu:after { + border-right-color: #ffcb04 !important; +} + +@media screen and (min-width: 783px) { + .wp-submenu, .wp-submenu-wrap { + background-color: #fafafa !important; + width: 220px !important; + } + + #adminmenu .current .menu-top .wp-menu-name { + padding: 10px; + width: 225px !important; + } +} + + +ul#adminmenu a.wp-has-current-submenu::after, ul#adminmenu > li.current > a.current::after, +.auto-fold ul#adminmenu a.wp-has-current-submenu::after, .auto-fold ul#adminmenu > li.current > a.current::after { + display: none !important; +} + +#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head, #adminmenu .wp-menu-arrow, #adminmenu .wp-menu-arrow div, #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu +{ + background-color: #fafafa; +} + @media screen and (max-width: 782px) { + + #adminmenu > li.menu-top:hover, #adminmenu > li.opensub > a.menu-top, #adminmenu > li > a.menu-top:focus { + background-color: #fafafa; + color: #1d4899 !important; + width: 285px !important; + } + + #adminmenu .current .menu-top{ + width: 280px; + } + + #adminmenu .current .menu-top .wp-menu-name { + width: 245px !important; + } + + #adminmenu > li .wp-submenu, #adminmenu > li.wp-has-current-submenu .wp-submenu, #adminmenu > li.wp-has-current-submenu.opensub .wp-submenu, .folded #adminmenu > li.wp-has-current-submenu .wp-submenu a.wp-has-current-submenu:focus + .wp-submenu { + width: 285px !important; + } + + + .wp-submenu:hover, + .wp-submenu .wp-submenu-wrap:hover, + .nav-tab-active:hover { + border-style: none; + background-color: #fafafa !important; + } + + + #adminmenuback, #adminmenuwrap, #adminmenu, #adminmenu .wp-has-current-submenu > .wp-submenu { + width: 300px !important; + } + .wp-submenu, + .wp-submenu .wp-submenu-wrap li, .auto-fold #adminmenu li.menu-top .wp-submenu > li > a { - color: #7f8c8d !important - } -} - -@media screen and (min-width: 1024px) { - /* Schatten für den gesamten Admin-Menü-Bereich */ - /* Abstand zwischen dem oberen Header und der Admin-Menüleiste */ - #adminmenuwrap { - margin-top: 100px; /* Setzt das Menü 50px unter den Header */ + background-color: #fafafa !important; + width: 285px !important; } - #wpadminbar { - width: 1600px; - padding-top: 10px; - height: 100px; + #wp-admin-bar-comments, + #wp-admin-bar-new-content { + display: none !important; + } + #wp-admin-bar-kompass_gruppen { + display: block !important; } - #wp-toolbar { - width: 1500px; + #wp-admin-bar-kompass_events { + display: block !important; } + + } -#wpadminbar .ab-item, #wpadminbar a.ab-item { - color: #ffffff; /* Weiße Schrift im gelben Header */ - font-weight: bold; +#adminmenu div.wp-menu-name { + } -/* Admin-Menüleiste in die weiße Box integrieren */ -#adminmenu { - background-color: #ffffff; /* Weißer Hintergrund für die Menüleiste */ - width: 300px; /* Breite der Menüleiste */ - border-right: 1px solid #ecf0f1; /* Leichte Trennung zwischen Menü und Inhalt */ -} +#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: #020918; + padding-left: 25px; -/* Menüelemente anpassen */ -#adminmenu a { - color: #7f8c8d; /* Graue Schrift für die Menüelemente */ - background-color: #ffffff; /* Weißer Hintergrund für die Menüelemente */ - padding: 6px 20px !important; /* Innenabstand für bessere Lesbarkeit */ - display: block; - text-decoration: none; - line-height: 1.6 !important; /* Erhöhe den Zeilenabstand */ -} - -/* Hover-Effekt für Menüelemente */ -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - background-color: #f0f0f0; /* Hellgrauer Hover-Hintergrund */ - color: #2c3e50; /* Dunklere Schrift bei Hover */ -} - -/* Aktives Menüelement */ -#adminmenu .wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.current a.menu-top { - background-color: #ffffff; /* Weißer Hintergrund für das aktive Menüelement */ - color: #2c3e50; /* Dunklere Schrift für aktives Menüelement */ - font-weight: bold; /* Fettgedruckt */ } +#adminmenu > li .wp-submenu a:focus, #adminmenu > li .wp-submenu a:hover, #adminmenu > li.wp-has-current-submenu .wp-submenu a:focus, #adminmenu > li.wp-has-current-submenu .wp-submenu a:hover, #adminmenu > li a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu > li a.wp-has-current-submenu:focus + .wp-submenu a:hover, .folded #adminmenu > li.wp-has-current-submenu .wp-submenu a, #adminmenu > li.wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu > li.wp-has-current-submenu.opensub .wp-submenu a:hover { + color: #ffcb04; + background-color: #ffffff; +} + +#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: #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 { + color: #ffcb04; + background-color: #ffffff; +} + +#adminmenu > li.current a.menu-top, #adminmenu > li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu > li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu > li.current.menu-top { + color: #1d4899; +} + +#adminmenu > li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu > li.current div.wp-menu-image::before, #adminmenu > li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu > li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu > li:hover div.wp-menu-image:before, #adminmenu > li a:focus div.wp-menu-image:before, #adminmenu > li.opensub div.wp-menu-image:before, .ie8 #adminmenu > li.opensub div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before { + color: #ffffff; +} + +#adminmenu > li .awaiting-mod, #adminmenu > li .update-plugins { + background: #ffcb04 !important; + color: #1d4899; +} + +#adminmenu > li .current a .awaiting-mod, #adminmenu > li a.wp-has-current-submenu .update-plugins, #adminmenu > li:hover a .awaiting-mod, #adminmenu > li.menu-top:hover > a .update-plugins { + color: #1d4899; + background: #ffcb04; +} + +#adminmenuback, #adminmenuwrap, #adminmenu { + background-color: #fafafa; + +} #adminmenuback { - margin-top: 250px; -} -/* Breite der Admin-Menüleiste beibehalten */ -#adminmenu, #adminmenu .wp-submenu, #adminmenuback, #adminmenuwrap { - - width: 350px; /* Breite der Sidebar */ - background-color: #ffffff; /* Weißer Hintergrund */ - border-right: 1px solid #ecf0f1; /* Leichte Trennung zwischen Menü und Inhalt */ - border-radius: 10px 0 0 10px; + box-shadow: 10px 10px 5px rgb(240, 244, 247); } -/* Inhaltsbereich anpassen, um Platz für die Sidebar zu lassen */ -#wpcontent, #wpfooter { - margin-left: 350px; /* Inhaltsbereich entsprechend der Sidebar verschieben */ -} +@media screen and (min-width: 783px) { -/* Menü-Elemente richtig anpassen: Hintergrund Weiß, Schrift Grau */ -#adminmenu a { - color: #7f8c8d; /* Graue Schrift für Menüelemente */ - background-color: #ffffff; /* Weißer Hintergrund für Menüelemente */ - padding-left: 20px; -} - -/* Aktives Menüelement */ -#adminmenu .wp-has-current-submenu a.wp-has-current-submenu, -#adminmenu li.current a.menu-top { - background-color: #ffffff; /* Weißer Hintergrund für das aktive Menüelement */ - color: #2c3e50; /* Dunkelgraue Schrift für das aktive Menüelement */ - font-weight: bold; -} - -/* Hover-Effekt: Hintergrund hellgrau, Schrift dunkler */ -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top, -#adminmenu li > a.menu-top:focus { - background-color: #f0f0f0; /* Hellgrauer Hover-Hintergrund */ - color: #2c3e50; /* Dunklere Schrift beim Hover */ -} - -/* Dunklere Icons für das Admin-Menü */ -#adminmenu .wp-menu-image { - filter: brightness(0) invert(0.5); /* Dunkler machen durch Anpassung der Helligkeit */ -} - -/* Optional: Anpassung für Hover-Zustand der Icons */ -#adminmenu li.menu-top:hover .wp-menu-image, -#adminmenu li.opensub > a.menu-top .wp-menu-image { - filter: brightness(0) invert(0.7); /* Dunkler im Hover-Zustand */ -} -/* Versteckt die Hover-Submenüs */ -#adminmenu .wp-submenu { - display: none; /* Submenüs standardmäßig ausblenden */ -} - -/* Submenü beim Klicken anzeigen */ -#adminmenu li.wp-has-submenu.wp-has-current-submenu > .wp-submenu { - display: block; /* Submenü anzeigen, wenn das Hauptmenü angeklickt wurde */ -} - -/* Keine Hover-Effekte für das Hauptmenü */ -#adminmenu li.wp-has-submenu:hover > .wp-submenu { } -/* Submenüs */ -#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu a:hover, #adminmenu li.menu-top > a:focus, -#adminmenu .opensub .wp-submenu li.current a, #adminmenu .wp-submenu li.current, #adminmenu .wp-submenu li.current a, #adminmenu .wp-submenu li.current a:focus, #adminmenu .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, -#adminmenu .wp-has-current-submenu ul > li > a, .folded #adminmenu li.menu-top .wp-submenu > li > a -{ - padding: 10px 30px !important; - color: #7f8c8d !important; -} -#adminmenu .wp-has-current-submenu ul > li > a, .folded #adminmenu li.menu-top .wp-submenu > li > a { - padding: 10px 60px !important; +#wpadminbar { + background-color: rgb(240, 244, 247); + color: #1d4899; + } - -/* Hover-Effekt für die Menüelemente in der Sidebar */ -#adminmenu a:hover { - background-color: #f1c40f; /* Gelber Hintergrund */ - color: #2c3e50; /* Graue Schrift */ +#wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { + color: #1d4899; } -/* Aktives Menüelement anpassen, um den Hover-Effekt zu unterstützen */ -#adminmenu li.current a.menu-top { - background-color: #ffffff; /* Weißer Hintergrund für aktive Elemente */ - color: #2c3e50; /* Dunkelgraue Schrift für aktive Elemente */ +#wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { + color: #1d4899; } -/* Hover-Effekt für die Menüelemente in der Sidebar */ -#adminmenu a:hover { - background-color: #f1c40f !important; /* Gelber Hintergrund */ - color: #2c3e50; /* Graue Schrift */ +#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { + background-color: #ffffff; + color: #ffcb04; } -/* Verhindert, dass graue Hintergründe angewendet werden */ -#adminmenu li.menu-top:hover, -#adminmenu li.opensub > a.menu-top:hover { - background-color: #f1c40f !important; /* Sicherstellen, dass gelber Hintergrund bleibt */ - color: #2c3e50; /* Graue Schrift */ +#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label, #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { + color: #ffcb04; + background-color: #ffffff; } -/* Aktives Menüelement anpassen */ -#adminmenu li.current a.menu-top { - background-color: #ffffff; /* Weißer Hintergrund für aktive Elemente */ - color: #2c3e50; /* Dunkelgraue Schrift für aktive Elemente */ +#wpadminbar .menupop .ab-sub-wrapper { + background-color: #ffffff; +} + +#wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { + background-color: #ffffff; +} + +#wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { + color: #1d4899; +} + +#wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { + color: #f3f3f1; +} + +#wpadminbar .quicklinks .menupop ul li a { + padding: 10px; +} + +#wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before, #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { + color: #1d4899; + background-color: rgb(240, 244, 247); +} + +#wpadminbar #wp-admin-bar-user-info .display-name { + color: #1d4899; +} + +#wpadminbar #wp-admin-bar-user-info a:hover .display-name { + color: #ffcb04; + background-color: #ffffff; +} + +#wpadminbar #wp-admin-bar-user-info .username { + color: #1d4899; +} + +#wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before, #wpadminbar #adminbarsearch:before { + color: #f3f3f1; +} + + + +li.wp-has-submenu.wp-not-current-submenu.opensub:after, +li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, + +.wp-menu-name:after { + display: none !important; +} + +#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { + display: none; +} + +#adminmenu .wp-menu-arrow div { + display: none !important; + background-color: #FFFFFF !important; +} + +.bdp-newplugin-button:hover { + color: #ffffff !important; + background-color: #1d4899 !important; +} + +.bdp-newplugin-button { + background-color: #ffffff !important; + padding: 5px 20px !important; + cursor: pointer !important; + color: #1d4899 !important; } diff --git a/includes/frontend-functions.php b/includes/frontend-functions.php index 985dd9b..689bf07 100644 --- a/includes/frontend-functions.php +++ b/includes/frontend-functions.php @@ -13,9 +13,9 @@ function bdp_update_login_style() { function bdp_update_dashboard_style() { if (true === (bool)get_option( 'use_mareike_theme', false )) { #wp_enqueue_style( 'custom-dashboard-styles', BDP_LV_PLUGIN_URL . '/assets/mareike.css' ); - #wp_enqueue_style( 'custom-dashboard-styles', BDP_LV_PLUGIN_URL . '/assets/wordpress-bdp.css' ); + wp_enqueue_style( 'custom-dashboard-styles', BDP_LV_PLUGIN_URL . '/assets/wordpress-bdp.css' ); } else { - #wp_enqueue_style( 'custom-dashboard-styles', BDP_LV_PLUGIN_URL . '/assets/wordpress-bdp.css' ); + wp_enqueue_style( 'custom-dashboard-styles', BDP_LV_PLUGIN_URL . '/assets/wordpress-bdp.css' ); } wp_enqueue_style('custom-calendar-styles', BDP_LV_PLUGIN_URL . '/assets/calendar.css'); wp_enqueue_style('custom-security-styles', BDP_LV_PLUGIN_URL . '/assets/security.css'); diff --git a/modules/event-participants/Controllers/class-main.php b/modules/event-participants/Controllers/class-main.php index c668719..38ec6dc 100644 --- a/modules/event-participants/Controllers/class-main.php +++ b/modules/event-participants/Controllers/class-main.php @@ -55,10 +55,11 @@ class MainController } } - if ( !$no_events ) { - - + wp_admin_notice( + 'Mit dem kommenden Update von BdP Kompass ist der Zugriff auf Legacy-Veranstaltungen nicht mehr möglich.
' . + 'Das Update wird voraussichtlich am 06.01.2025 bereitgestellt werden.

' . + 'Insofern du weiterhin Zugriff auf diese Veranstaltungen benötigst, kontaktiere den LB IT.', ['type' => 'warning']); add_menu_page( __( 'Events (legacy)', BDP_LV_PLUGIN_SLUG ),