PluginProbe
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) / 1.2.3
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) v1.2.3
2.1.2 2.1.1 2.1.0 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 trunk 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 All 56 releases
darkify / includes / DarkifyExternalSupport.php

DarkifyExternalSupport.php in Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) 1.2.3, at includes/DarkifyExternalSupport.php

111 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 if ( ! class_exists( 'DarkifyExternalSupport' ) ) {
5 class DarkifyExternalSupport
6 {
7
8 public $base_admin;
9 public function __construct($base_admin)
10 {
11 $this->base_admin = $base_admin;
12 }
13
14 /* =============== Default Darkify Ignore =============== */
15 public function getDisallowedElementsByDarkify(){
16 return array(
17 ".darkify_ignore",
18 ".darkify_ignore *",
19 ".darkify_switch",
20 ".darkify_switch *",
21 );
22 }
23
24 /* =============== Logged-in as Admin =============== */
25 public function getDisallowedElementsByAdminLogin(){
26 return array(
27 "#wpadminbar",
28 "#wpadminbar *",
29 );
30 }
31
32 /* =============== Is in Admin Panel =============== */
33 public function getDisallowedElementsByAdminPanel(){
34 return array(
35 "#adminmenumain",
36 "#adminmenumain *",
37 ".wp-core-ui .button-primary",
38 ".wp-core-ui .button-primary *",
39 ".post-com-count-approved",
40 ".post-com-count-approved *",
41 ".drk_lite--switcher",
42 ".drk_lite--switcher *",
43 ".CodeMirror",
44 ".CodeMirror *",
45 ".wp-picker-container",
46 ".wp-picker-container *",
47 ".drk_lite--sibling.drk_lite--image",
48 ".drk_lite--sibling.drk_lite--image *",
49 ".button",
50 );
51 }
52
53
54 /* =============== Elementor =============== */
55 public function getDisallowedElementsByElementor(){
56 return array(
57 ".elementor-background-overlay",
58 ".elementor-element-overlay",
59 ".elementor-button-link",
60 ".elementor-button-link *",
61 ".elementor-widget-spacer",
62 ".elementor-widget-spacer *",
63 );
64 }
65
66
67
68 /* =============== Beaver Builder =============== */
69 public function getDisallowedElementsByBeaver(){
70 return array(
71 ".uabb-button",
72 ".uabb-button *",
73 );
74 }
75
76
77 /* =============== Block Editor =============== */
78 public function getDisallowedElementsByBlockEditor(){
79 return array(
80 ".wp-block-button__link",
81 ".wp-block-button__link *",
82 );
83 }
84
85 /* =============== Slider Revolution =============== */
86 public function getDisallowedElementsByRevSlider(){
87 return array(
88 "rs-fullwidth-wrap",
89 "rs-fullwidth-wrap *",
90 );
91 }
92
93 /* =============== OneSignal Push Notifications =============== */
94 public function getDisallowedElementsByOneSignal(){
95 return array(
96 ".onesignal-slidedown-dialog",
97 ".onesignal-slidedown-dialog *",
98 );
99 }
100
101 /* =============== Read Meter =============== */
102 public function getDisallowedElementsByReadMeter(){
103 return array(
104 "#bsf_rt_progress_bar_container",
105 "#bsf_rt_progress_bar_container *",
106 );
107 }
108
109 }
110 }
111