File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 99[data-maintenance = "custom" ] {
1010 color : # d75452 ;
1111}
12+
13+ /* Purple label for domain-based maintenance */
14+ .label-purple {
15+ background-color : # 9b59b6 ;
16+ }
Original file line number Diff line number Diff line change @@ -398,13 +398,14 @@ public static function setIndicators(): void
398398 $ page ['icon ' ] .= ' fa-toggle-on block_frontend ' ;
399399
400400 // Check for domain-based maintenance - nur wenn Frontend-Wartung aktiv
401+ // Badge nur für einzelne Domains, nicht wenn alle gesperrt sind
401402 $ domainStatus = (array ) self ::getConfig ('domain_status ' , []);
402403 $ allDomainsLocked = (bool ) self ::getConfig ('all_domains_locked ' , false );
403404 $ activeDomains = array_filter ($ domainStatus );
404405
405- if ($ allDomainsLocked || !empty ($ activeDomains )) {
406- $ count = $ allDomainsLocked ? ' All ' : count ($ activeDomains );
407- $ page ['title ' ] .= ' <span class="label label-warning pull-right" title="Domain-Wartung aktiv">D: ' . $ count . '</span> ' ;
406+ if (! $ allDomainsLocked && !empty ($ activeDomains )) {
407+ $ count = count ($ activeDomains );
408+ $ page ['title ' ] .= ' <span class="label label-purple pull-right" title="Domain-Wartung aktiv">D: ' . $ count . '</span> ' ;
408409 $ page ['icon ' ] .= ' fa-sitemap ' ;
409410 }
410411 }
You can’t perform that action at this time.
0 commit comments