1 | <?php |
||
23 | final class Black_Studio_TinyMCE_Compatibility_Plugins { |
||
24 | |||
25 | /** |
||
26 | * The single instance of the class |
||
27 | * |
||
28 | * @var object |
||
29 | * @since 2.0.0 |
||
30 | * @deprecated 3.0.0 |
||
31 | */ |
||
32 | protected static $_instance = null; |
||
33 | |||
34 | /** |
||
35 | * Return the single class instance |
||
36 | * |
||
37 | * @return object |
||
38 | * @since 2.0.0 |
||
39 | * @deprecated 3.0.0 |
||
40 | */ |
||
41 | public static function instance() { |
||
48 | |||
49 | /** |
||
50 | * Class constructor |
||
51 | * |
||
52 | * @since 2.0.0 |
||
53 | * @deprecated 3.0.0 |
||
54 | */ |
||
55 | protected function __construct() { |
||
58 | |||
59 | /** |
||
60 | * Prevent the class from being cloned |
||
61 | * |
||
62 | * @return void |
||
63 | * @since 2.0.0 |
||
64 | * @deprecated 3.0.0 |
||
65 | */ |
||
66 | protected function __clone() { |
||
70 | |||
71 | /** |
||
72 | * Compatibility with WPML |
||
73 | * |
||
74 | * @return void |
||
75 | * @since 2.0.0 |
||
76 | * @deprecated 3.0.0 |
||
77 | */ |
||
78 | public function wpml() { |
||
81 | |||
82 | /** |
||
83 | * Add widget text to WPML String translation |
||
84 | * |
||
85 | * @param mixed[] $instance Widget instance. |
||
86 | * @return mixed[] |
||
87 | * @since 2.0.0 |
||
88 | * @deprecated 3.0.0 |
||
89 | */ |
||
90 | public function wpml_widget_update( $instance ) { |
||
94 | |||
95 | /** |
||
96 | * Translate widget text |
||
97 | * |
||
98 | * @param string $text Widget text. |
||
99 | * @param mixed[]|null $instance Widget instance. |
||
100 | * @param object|null $widget Widget object. |
||
101 | * @return string |
||
102 | * @since 2.0.0 |
||
103 | * @deprecated 3.0.0 |
||
104 | */ |
||
105 | public function wpml_widget_text( $text, $instance = null, $widget = null ) { |
||
109 | |||
110 | /** |
||
111 | * Compatibility for WP Page Widget plugin |
||
112 | * |
||
113 | * @return void |
||
114 | * @since 2.0.0 |
||
115 | * @deprecated 3.0.0 |
||
116 | */ |
||
117 | public function wp_page_widget() { |
||
120 | |||
121 | /** |
||
122 | * Initialize compatibility for WP Page Widget plugin (only for WordPress 3.3+) |
||
123 | * |
||
124 | * @return void |
||
125 | * @since 2.0.0 |
||
126 | * @deprecated 3.0.0 |
||
127 | */ |
||
128 | public function wp_page_widget_admin_init() { |
||
131 | |||
132 | /** |
||
133 | * Enable filter for WP Page Widget plugin |
||
134 | * |
||
135 | * @param string[] $pages Array of pages. |
||
136 | * @return string[] |
||
137 | * @since 2.0.0 |
||
138 | * @deprecated 3.0.0 |
||
139 | */ |
||
140 | public function wp_page_widget_enable_pages( $pages ) { |
||
144 | |||
145 | /** |
||
146 | * Enqueue script for WP Page Widget plugin |
||
147 | * |
||
148 | * @return void |
||
149 | * @since 2.0.0 |
||
150 | * @deprecated 3.0.0 |
||
151 | */ |
||
152 | public function wp_page_widget_enqueue_script() { |
||
155 | |||
156 | /** |
||
157 | * Compatibility with Page Builder (SiteOrigin Panels) |
||
158 | * |
||
159 | * @return void |
||
160 | * @since 2.0.0 |
||
161 | * @deprecated 3.0.0 |
||
162 | */ |
||
163 | public function siteorigin_panels() { |
||
166 | |||
167 | /** |
||
168 | * Initialize compatibility for Page Builder (SiteOrigin Panels) |
||
169 | * |
||
170 | * @return void |
||
171 | * @since 2.0.0 |
||
172 | * @deprecated 3.0.0 |
||
173 | */ |
||
174 | public function siteorigin_panels_admin_init() { |
||
177 | |||
178 | /** |
||
179 | * Remove widget number to prevent translation when using Page Builder (SiteOrigin Panels) + WPML String Translation |
||
180 | * |
||
181 | * @param object $widget Widget object. |
||
182 | * @return object |
||
183 | * @since 2.0.0 |
||
184 | * @deprecated 3.0.0 |
||
185 | */ |
||
186 | public function siteorigin_panels_widget_object( $widget ) { |
||
190 | |||
191 | /** |
||
192 | * Add selector for widget detection for Page Builder (SiteOrigin Panels) |
||
193 | * |
||
194 | * @param string[] $selectors Array of selectors. |
||
195 | * @return string[] |
||
196 | * @since 2.0.0 |
||
197 | * @deprecated 3.0.0 |
||
198 | */ |
||
199 | public function siteorigin_panels_container_selectors( $selectors ) { |
||
203 | |||
204 | /** |
||
205 | * Add activate events for Page Builder (SiteOrigin Panels) |
||
206 | * |
||
207 | * @param string[] $events Array of events. |
||
208 | * @return string[] |
||
209 | * @since 2.0.0 |
||
210 | * @deprecated 3.0.0 |
||
211 | */ |
||
212 | public function siteorigin_panels_activate_events( $events ) { |
||
216 | |||
217 | /** |
||
218 | * Add deactivate events for Page Builder (SiteOrigin Panels) |
||
219 | * |
||
220 | * @param string[] $events Array of events. |
||
221 | * @return string[] |
||
222 | * @since 2.0.0 |
||
223 | * @deprecated 3.0.0 |
||
224 | */ |
||
225 | public function siteorigin_panels_deactivate_events( $events ) { |
||
229 | |||
230 | /** |
||
231 | * Add pages filter to enable editor for Page Builder (SiteOrigin Panels) |
||
232 | * |
||
233 | * @param string[] $pages Array of pages. |
||
234 | * @return string[] |
||
235 | * @since 2.0.0 |
||
236 | * @deprecated 3.0.0 |
||
237 | */ |
||
238 | public function siteorigin_panels_enable_pages( $pages ) { |
||
242 | |||
243 | /** |
||
244 | * Add widget field for Page Builder (SiteOrigin Panels) |
||
245 | * |
||
246 | * @param string[] $fields Array of fields. |
||
247 | * @return string[] |
||
248 | * @since 2.6.0 |
||
249 | * @deprecated 3.0.0 |
||
250 | */ |
||
251 | public function siteorigin_panels_additional_fields( $fields ) { |
||
255 | |||
256 | /** |
||
257 | * Disable old compatibility code provided by Page Builder (SiteOrigin Panels) |
||
258 | * |
||
259 | * @return void |
||
260 | * @since 2.0.0 |
||
261 | * @deprecated 3.0.0 |
||
262 | */ |
||
263 | public function siteorigin_panels_disable_compat() { |
||
266 | |||
267 | /** |
||
268 | * Compatibility with Jetpack After the deadline |
||
269 | * |
||
270 | * @return void |
||
271 | * @since 2.0.0 |
||
272 | * @deprecated 3.0.0 |
||
273 | */ |
||
274 | public function jetpack_after_the_deadline() { |
||
277 | |||
278 | /** |
||
279 | * Load Jetpack After the deadline scripts |
||
280 | * |
||
281 | * @return void |
||
282 | * @since 2.0.0 |
||
283 | * @deprecated 3.0.0 |
||
284 | */ |
||
285 | public function jetpack_after_the_deadline_load() { |
||
288 | |||
289 | } // END class Black_Studio_TinyMCE_Compatibility_Plugins |
||
290 | |||
292 |