PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.0
Adminify – White Label, Admin Menu Editor, Login Customizer v4.0
4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 4.1.17 All 164 releases
← All changes | Inc/Admin/Options/Performance.php +31 -32 4.2.104.0 View file →
@@ -1,10 +1,10 @@
1 1 <?php
2 2
3 -namespace PXLBSAdminify\Inc\Admin\Options;
3 +namespace WPAdminify\Inc\Admin\Options;
4 4
5 -use PXLBSAdminify\Inc\Utils;
6 -use PXLBSAdminify\Inc\Admin\AdminSettingsModel;
5 +use WPAdminify\Inc\Utils;
6 +use WPAdminify\Inc\Admin\AdminSettingsModel;
7 7
8 8
9 9 if (!defined('ABSPATH')) {
10 10 die;
@@ -74,21 +74,21 @@
74 74 [
75 75 'id' => 'disable_gutenberg_enable',
76 76 'type' => 'switcher',
77 77 'class' => 'adminify-pl-0 adminify-pt-0',
78 - 'title' => '',
78 + 'title' => __('', 'adminify'),
79 79 'text_on' => __('Show', 'adminify'),
80 80 'text_off' => __('Hide', 'adminify'),
81 81 'text_width' => 80,
82 - // 'default' => $this->get_default_field('disable_gutenberg')['disable_gutenberg_enable'],
82 + 'default' => $this->get_default_field('disable_gutenberg')['disable_gutenberg_enable'],
83 83 ],
84 84 [
85 85 'id' => 'disable_for',
86 86 'type' => 'checkbox',
87 - 'title' => '',
87 + 'title' => __('', 'adminify'),
88 88 'class' => 'adminify-one-col',
89 89 'options' => $disable_gutenberg_for,
90 - // 'default' => $this->get_default_field('disable_gutenberg')['disable_for'],
90 + 'default' => $this->get_default_field('disable_gutenberg')['disable_for'],
91 91 'dependency' => ['disable_gutenberg_enable', '==', 'true', true],
92 92 ]
93 93 ];
94 94
@@ -108,9 +108,9 @@
108 108 */
109 109 public function performances(&$fields)
110 110 {
111 111 $performance_data = [
112 - 'dashicons' => __('Remove Dashicons from front-end for Public Visitors', 'adminify'),
112 + 'dashicons' => __('Remove Dashicons from front-end for Public Visitons', 'adminify'),
113 113 'version_strings' => __('Remove Versions from Styles/Scripts', 'adminify'),
114 114 'gravatar_query_strings' => __('Remove Gravatar Query Strings', 'adminify'),
115 115 'emoji' => __('Remove All Emoji styles and scripts from head section', 'adminify'),
116 116 'jquery_migrate_front' => __('Remove front end jQuery Migrate script.', 'adminify'),
@@ -123,19 +123,21 @@
123 123 [
124 124 'id' => 'performance_enable',
125 125 'type' => 'switcher',
126 126 'class' => 'adminify-pl-0 adminify-pt-0',
127 - 'title' => '',
127 + 'title' => __('', 'adminify'),
128 128 'text_on' => __('Show', 'adminify'),
129 129 'text_off' => __('Hide', 'adminify'),
130 - 'text_width' => 80
130 + 'text_width' => 80,
131 + 'default' => $this->get_default_field('performance')['performance_enable'],
131 132 ],
132 133 [
133 134 'id' => 'performance_data',
134 135 'type' => 'checkbox',
135 - 'title' => '',
136 + 'title' => __('', 'adminify'),
136 137 'class' => 'adminify-one-col',
137 138 'options' => $performance_data,
139 + 'default' => $this->get_default_field('performance')['performance_data'],
138 140 'dependency' => ['performance_enable', '==', 'true', true],
139 141 ]
140 142 ];
141 143
@@ -161,25 +163,24 @@
161 163 */
162 164 public function disable_embeds(&$disable_embeds)
163 165 {
164 166 $disable_embeds[] = [
165 - 'id' => 'performance_subheading',
167 + 'id' => 'performance_subheading',
166 168 'type' => 'subheading',
167 - 'content' => Utils::help_urls(
168 - '<span></span>',
169 - 'https://wpadminify.com/docs/adminify/performance/disable-embeds',
170 - 'https://www.youtube.com/watch?v=xALg4WWZ_bE',
169 + 'content' => Utils::adminfiy_help_urls(
170 + __('<span></span>', 'adminify'),
171 + 'https://wpadminify.com/kb/performance/',
172 + '',
171 173 'https://www.facebook.com/groups/jeweltheme',
172 - \PXLBSAdminify\Inc\Admin\AdminSettings::support_url()
174 + 'https://wpadminify.com/support/'
173 175 ),
174 - ];
176 + ];
175 177
176 178 $disable_embeds[] = [
177 179 'id' => 'disable_embeds',
178 180 'type' => 'switcher',
179 181 'class' => 'adminify-pro-fieldset adminify-pro-notice',
180 - /* translators: %s: pro upgrade badge HTML */
181 - 'title' => sprintf(__('Disable Embeds %s', 'adminify'), Utils::upgrade_pro_badge()),
182 + 'title' => sprintf(__('Disable Embeds %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
182 183 'subtitle' => __('Disable all Embeds from everywhere like - REST API, Head Tag, Tinymce Editor, Remote results etc.', 'adminify'),
183 184 'text_on' => __('Yes', 'adminify'),
184 185 'text_off' => __('No', 'adminify'),
185 186 'text_width' => 80,
@@ -191,9 +192,9 @@
191 192 $fields[] = [
192 193 'id' => 'enabled',
193 194 'type' => 'switcher',
194 195 'class' => 'adminify-pt-0 adminify-pl-0',
195 - 'title' => '',
196 + 'title' => __('', 'adminify'),
196 197 'text_on' => __('Show', 'adminify'),
197 198 'text_off' => __('Hide', 'adminify'),
198 199 'text_width' => 80,
199 200 'default' => $this->get_default_field('heartbeat_api')['enabled'],
@@ -201,9 +202,9 @@
201 202 $fields[] = [
202 203 'id' => 'backend',
203 204 'type' => 'radio',
204 205 'inline' => true,
205 - 'class' => Utils::upgrade_pro_notice_class(),
206 + 'class' => Utils::upgrade_pro_class(),
206 207 'title' => __('WordPress Dashboard', 'adminify'),
207 208 'subtitle' => __('Backend Post Types', 'adminify'),
208 209 'options' => [
209 210 'default' => __('Default', 'adminify'),
@@ -233,9 +234,9 @@
233 234
234 235 $fields[] = [
235 236 'id' => 'on_post_create',
236 237 'type' => 'radio',
237 - 'class' => Utils::upgrade_pro_notice_class(),
238 + 'class' => Utils::upgrade_pro_class(),
238 239 'inline' => true,
239 240 'title' => __('Create Post Editor', 'adminify'),
240 241 'subtitle' => __('On post creation and edit screens', 'adminify'),
241 242 'options' => [
@@ -267,9 +268,9 @@
267 268
268 269 $fields[] = [
269 270 'id' => 'on_frontend',
270 271 'type' => 'radio',
271 - 'class' => Utils::upgrade_pro_notice_class(),
272 + 'class' => Utils::upgrade_pro_class(),
272 273 'inline' => true,
273 274 'title' => __('Frontend', 'adminify'),
274 275 'subtitle' => __('Frontend Heartbits', 'adminify'),
275 276 'options' => [
@@ -311,10 +312,9 @@
311 312 $fields[] = array(
312 313 'id' => 'heartbeat_api',
313 314 'type' => 'fieldset',
314 315 'class' => 'adminify-nopadding',
315 - /* translators: %s: pro upgrade badge HTML */
316 - 'title' => sprintf(__('Control Heartbeat API %s', 'adminify'), Utils::upgrade_pro_badge()),
316 + 'title' => sprintf(__('Control Heartbeat API %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
317 317 'class' => 'adminify-pro-fieldset',
318 318 'subtitle' => __('Modify the interval of the WordPress Heartbeat API or disable it on admin pages, post creation/edit screens, and the frontend to reduce CPU load on the server', 'adminify'),
319 319 'fields' => $heartbeat_settings
320 320 );
@@ -330,9 +330,9 @@
330 330 $revisions_settings[] = [
331 331 'id' => 'revisions_enable',
332 332 'type' => 'switcher',
333 333 'class' => 'adminify-p-0 adminify-pro-feature',
334 - 'title' => '',
334 + 'title' => __('', 'adminify'),
335 335 'text_on' => __('Show', 'adminify'),
336 336 'text_off' => __('Hide', 'adminify'),
337 337 'text_width' => 80,
338 338
@@ -353,9 +353,9 @@
353 353 'type' => 'checkbox',
354 354 'title' => __('Apply for Post Types', 'adminify'),
355 355 'class' => 'adminify-pro-feature adminify-pro-notice',
356 356 'subtitle' => __('Disable all Embeds from everywhere like - REST API, Head Tag, Tinymce Editor, Remote results etc.', 'adminify'),
357 - 'options' => 'PXLBSAdminify\Inc\Admin\Options\Productivity::get_all_post_types',
357 + 'options' => 'WPAdminify\Inc\Admin\Options\Productivity::get_all_post_types',
358 358 'default' => $this->get_default_field('revisions')['post_types'],
359 359 'dependency' => ['revisions_enable', '==', 'true', 'true'],
360 360 ];
361 361
@@ -370,10 +370,9 @@
370 370
371 371 $fields[] = array(
372 372 'id' => 'revisions',
373 373 'type' => 'fieldset',
374 - /* translators: %s: pro upgrade badge HTML */
375 - 'title' => sprintf(__('Control Revisions %s', 'adminify'), Utils::upgrade_pro_badge()),
374 + 'title' => sprintf(__('Control Revisions %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
376 375 'subtitle' => __('Limit the number of revisions kept for post types supporting revisions to prevent database bloat.', 'adminify'),
377 376 'fields' => $revisions_settings,
378 377 'default' => $this->get_default_field('revisions'),
379 378 );
@@ -388,15 +387,15 @@
388 387
389 388 $fields = [];
390 389
391 390 $this->disable_embeds( $fields );
392 - $this->control_heartbit_api( $fields );
391 + // $this->control_heartbit_api( $fields );
393 392 // $this->control_revisions( $fields );
394 393 $this->performances( $fields );
395 394 $this->gutenberg_settings($fields);
396 395
397 396
398 - $fields = apply_filters('pxlbsadminify_settings/performance', $fields, $this);
397 + $fields = apply_filters('adminify_settings/performance', $fields, $this);
399 398
400 399 // Optimization Section
401 400 \ADMINIFY::createSection(
402 401 $this->prefix,