PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.0.2.5
Adminify – White Label, Admin Menu Editor, Login Customizer v4.0.2.5
4.3.2 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 All 165 releases
← All changes | Inc/Admin/Options/Productivity.php +75 -128 4.2.254.0.2.5 View file →
@@ -1,13 +1,12 @@
1 1 <?php
2 2
3 -namespace PXLBSAdminify\Inc\Admin\Options;
3 +namespace WPAdminify\Inc\Admin\Options;
4 4
5 -use PXLBSAdminify\Inc\Classes\Helper;
6 -use PXLBSAdminify\Inc\Utils;
7 -use PXLBSAdminify\Inc\Admin\Options\Productivity\Duplicate_Post;
8 -use PXLBSAdminify\Inc\Admin\Options\Productivity\PostTypesOrder;
9 -use PXLBSAdminify\Inc\Admin\AdminSettingsModel;
5 +use WPAdminify\Inc\Utils;
6 +use WPAdminify\Inc\Admin\Options\Productivity\Duplicate_Post;
7 +use WPAdminify\Inc\Admin\Options\Productivity\PostTypesOrder;
8 +use WPAdminify\Inc\Admin\AdminSettingsModel;
10 9
11 10
12 11 if (!defined('ABSPATH')) {
13 12 die;
@@ -34,11 +33,9 @@
34 33 ],
35 34
36 35 'media_attachments' => [
37 36 'enable_media' => false,
38 - 'media_ininite_scroll' => false,
39 - 'media_replace' => false,
40 - 'media_replace_backup_limit' => 1,
37 + // 'media_ininite_scroll' => false,
41 38 'thumbnails_rss_feed' => false,
42 39 // 'allowed_upload_files' => [],
43 40 // 'convert_to_webp' => false,
44 41 // 'featured_to_post' => false,
@@ -90,14 +87,14 @@
90 87 {
91 88 $fields[] = [
92 89 'id' => 'productivity_sub_heading',
93 90 'type' => 'subheading',
94 - 'content' => Utils::help_urls(
95 - '<span></span>',
96 - 'https://wpadminify.com/docs/adminify/productivity/hide-admin-notices',
97 - 'https://www.youtube.com/watch?v=49Cd3dYzYHs',
91 + 'content' => Utils::adminfiy_help_urls(
92 + __('<span></span>', 'adminify'),
93 + 'https://wpadminify.com/kb/productivity/',
94 + '',
98 95 'https://www.facebook.com/groups/jeweltheme',
99 - \PXLBSAdminify\Inc\Admin\AdminSettings::support_url()
96 + \WPAdminify\Inc\Admin\AdminSettings::support_url()
100 97 ),
101 98 ];
102 99
103 100 $fields[] = [
@@ -102,10 +99,9 @@
102 99
103 100 $fields[] = [
104 101 'id' => 'hide_notices',
105 102 'type' => 'switcher',
106 - /* translators: %s: PRO badge label */
107 - 'title' => sprintf(__('Hide "Admin Notices"? %s', 'adminify'), Utils::upgrade_pro_badge()),
103 + 'title' => sprintf(__('Hide "Admin Notices"? %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
108 104 'subtitle' => __('Hide Admin Notices to make your Dashboard Clean. ', 'adminify'),
109 105 'class' => 'adminify-pro-fieldset adminify-pro-notice',
110 106 'text_on' => __('Yes', 'adminify'),
111 107 'text_off' => __('No', 'adminify'),
@@ -114,10 +110,9 @@
114 110 ];
115 111 $fields[] = [
116 112 'id' => 'hide_notices_non_admin',
117 113 'type' => 'checkbox',
118 - /* translators: %s: PRO upgrade notice markup */
119 - 'label' => sprintf(__('Also, Hide for Non-Admin Users? %s', 'adminify'), Utils::upgrade_pro_class()),
114 + 'label' => sprintf(__('Also, Hide for Non-Admin Users? %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
120 115 'title' => ' ',
121 116 'default' => $this->get_default_field('hide_notices_non_admin'),
122 117 'dependency' => ['hide_notices', '==', 'true', 'true'],
123 118 ];
@@ -122,27 +117,20 @@
122 117 'dependency' => ['hide_notices', '==', 'true', 'true'],
123 118 ];
124 119
125 120 $other_notices_data = [
126 - /* translators: %s: PRO upgrade notice markup */
127 - 'welcome_panel' => sprintf(__('Remove Welcome Panel %s', 'adminify'), Utils::upgrade_pro_class()),
128 - /* translators: %s: PRO upgrade notice markup */
129 - 'php_nag' => sprintf(__('Remove "PHP Update Required" Notice %s', 'adminify'), Utils::upgrade_pro_class()),
130 - /* translators: %s: PRO upgrade notice markup */
131 - 'core_update_notice' => sprintf(__('Hide Core Update Notice %s', 'adminify'), Utils::upgrade_pro_class()),
132 - /* translators: %s: PRO upgrade notice markup */
133 - 'plugin_update_notice' => sprintf(__('Hide Plugin Update Notice %s', 'adminify'), Utils::upgrade_pro_class()),
134 - /* translators: %s: PRO upgrade notice markup */
135 - 'theme_update_notice' => sprintf(__('Hide Theme Update Notice %s', 'adminify'), Utils::upgrade_pro_class()),
136 - /* translators: %s: PRO upgrade notice markup */
137 - 'site_health' => sprintf(__('Disable Site Health checks %s', 'adminify'), Utils::upgrade_pro_class()),
121 + 'welcome_panel' => sprintf(__('Remove Welcome Panel %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
122 + 'php_nag' => sprintf(__('Remove "PHP Update Required" Notice %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
123 + 'core_update_notice' => sprintf(__('Hide Core Update Notice %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
124 + 'plugin_update_notice' => sprintf(__('Hide Plugin Update Notice %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
125 + 'theme_update_notice' => sprintf(__('Hide Theme Update Notice %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
126 + 'site_health' => sprintf(__('Disable Site Health checks %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
138 127 ];
139 128
140 129 $fields[] = [
141 130 'id' => 'other_notices',
142 131 'type' => 'checkbox',
143 - /* translators: %s: PRO badge label */
144 - 'title' => sprintf(__('Other Notices %s', 'adminify'), Utils::upgrade_pro_badge()),
132 + 'title' => sprintf(__('Other Notices %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
145 133 'subtitle' => __('Show/Remove Dashboard Welcome Panel, Hide WordPress Themes,Plugins,Core Update Notices', 'adminify'),
146 134 'options' => $other_notices_data,
147 135 'default' => $this->get_default_field('other_notices'),
148 136 'dependency' => ['hide_notices', '==', 'true', 'true'],
@@ -155,18 +143,15 @@
155 143 */
156 144 public function screen_options(&$fields)
157 145 {
158 146 $screen_options_settings = [
159 - /* translators: %s: PRO upgrade notice markup */
160 - 'hide_screen_options' => sprintf(__('Hide Screen Options %s', 'adminify'), Utils::upgrade_pro_class()),
161 - /* translators: %s: PRO upgrade notice markup */
162 - 'hide_help_tab' => sprintf(__('Hide Help Tab %s', 'adminify'), Utils::upgrade_pro_class()),
147 + 'hide_screen_options' => sprintf(__('Hide Screen Options %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
148 + 'hide_help_tab' => sprintf(__('Hide Help Tab %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
163 149 ];
164 150
165 151 $fields[] = [
166 152 'id' => 'screen_help_tab',
167 - /* translators: %s: PRO badge label */
168 - 'title' => sprintf(__('Screen Options and Help Tab %s', 'adminify'), Utils::upgrade_pro_badge()),
153 + 'title' => sprintf(__('Screen Options and Help Tab %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
169 154 'subtitle' => __('Screen Options and Help Tab', 'adminify'),
170 155 'type' => 'fieldset',
171 156 'fields' => [
172 157 [
@@ -171,9 +156,9 @@
171 156 'fields' => [
172 157 [
173 158 'id' => 'enable_for_screen',
174 159 'type' => 'switcher',
175 - 'title' => '',
160 + 'title' => __('', 'adminify'),
176 161 'class' => 'adminify-pl-0 adminify-pt-0 adminify-pro-feature',
177 162 'text_on' => __('Show', 'adminify'),
178 163 'text_off' => __('Hide', 'adminify'),
179 164 'text_width' => 80,
@@ -182,9 +167,9 @@
182 167 [
183 168 'id' => 'screen_help_data',
184 169 'type' => 'checkbox',
185 170 'class' => 'adminify-one-col',
186 - 'title' => '',
171 + 'title' => __('', 'adminify'),
187 172 'options' => $screen_options_settings,
188 173 'default' => $this->get_default_field('screen_help_tab')['screen_help_data'],
189 174 'dependency' => ['enable_for_screen', '==', 'true', 'true']
190 175 ]
@@ -207,9 +192,9 @@
207 192 'fields' => [
208 193 [
209 194 'id' => 'enable_folders',
210 195 'type' => 'switcher',
211 - 'title' => '',
196 + 'title' => __('', 'adminify'),
212 197 'class' => 'adminify-pl-0',
213 198 'text_on' => __('Show', 'adminify'),
214 199 'text_off' => __('Hide', 'adminify'),
215 200 'text_width' => 80,
@@ -219,9 +204,9 @@
219 204 'id' => 'enable_for',
220 205 'type' => 'checkbox',
221 206 'title' => __('Enable for', 'adminify'),
222 207 'subtitle' => __('Select Post Types for enabling Folders', 'adminify'),
223 - 'options' => 'PXLBSAdminify\Inc\Admin\Options\Productivity::get_all_post_types',
208 + 'options' => 'WPAdminify\Inc\Admin\Options\Productivity::get_all_post_types',
224 209 'default' => $this->get_default_field('folders')['enable_for'],
225 210 'dependency' => ['enable_folders', '==', 'true', 'true']
226 211 ],
227 212 [
@@ -241,10 +226,9 @@
241 226
242 227 $fields[] = [
243 228 'id' => 'admin_pages',
244 229 'type' => 'switcher',
245 - /* translators: %s: PRO badge label */
246 - 'title' => sprintf(__('Admin Pages %s', 'adminify'), Utils::upgrade_pro_badge()),
230 + 'title' => sprintf(__('Admin Pages %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
247 231 'class' => 'adminify-pro-notice adminify-pro-fieldset',
248 232 'text_on' => __('Yes', 'adminify'),
249 233 'text_off' => __('No', 'adminify'),
250 234 'text_width' => 80,
@@ -263,9 +247,9 @@
263 247 $post_types_order_fieldset= [];
264 248
265 249 $post_types_order_fieldset[] = [
266 250 'id' => 'enable_pto',
267 - 'title' => '',
251 + 'title' => __('', 'adminify'),
268 252 'class' => 'adminify-pl-0',
269 253 'type' => 'switcher',
270 254 'text_on' => __('Show', 'adminify'),
271 255 'text_off' => __('Hide', 'adminify'),
@@ -277,9 +261,9 @@
277 261 'id' => 'pto_posts',
278 262 'type' => 'checkbox',
279 263 'title' => __( 'Sortable Post Types', 'adminify' ),
280 264 'subtitle' => __( 'Select Post Types for sorting', 'adminify' ),
281 - 'options' => 'PXLBSAdminify\Inc\Admin\Options\Productivity::get_all_post_types',
265 + 'options' => 'WPAdminify\Inc\Admin\Options\Productivity::get_all_post_types',
282 266 'default' => $this->get_default_field('post_types_order')['pto_posts'],
283 267 'dependency' => ['enable_pto', '==', 'true', 'true'],
284 268 ];
285 269
@@ -297,12 +281,11 @@
297 281
298 282 $post_types_order_fieldset[] = [
299 283 'id' => 'pto_taxonomies',
300 284 'type' => 'checkbox',
301 - /* translators: %s: PRO badge label */
302 - 'title' => sprintf(__('Sortable Taxonomies %s', 'adminify'), Utils::upgrade_pro_badge()),
285 + 'title' => sprintf(__('Sortable Taxonomies %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
303 286 'subtitle' => __('Select for Sortable Taxonomies', 'adminify'),
304 - 'options' => 'PXLBSAdminify\Inc\Admin\Options\Productivity::get_all_taxonomies',
287 + 'options' => 'WPAdminify\Inc\Admin\Options\Productivity::get_all_taxonomies',
305 288 'query_args' => [
306 289 'orderby' => 'post_title',
307 290 'order' => 'ASC',
308 291 ],
@@ -350,12 +333,12 @@
350 333 if($post_type->name === 'post' || $post_type->name === 'page' ){
351 334 $post_type_names[$post_type->name] = $post_type->label;
352 335 } else {
353 336 $is_pro = false;
354 - if(class_exists('\\PXLBSAdminify\\Pro\\Adminify_Pro')){
355 - $is_pro = \PXLBSAdminify\Pro\Adminify_Pro::is_premium();
337 + if(class_exists('\\WPAdminify\\Pro\\Adminify_Pro')){
338 + $is_pro = \WPAdminify\Pro\Adminify_Pro::is_premium();
356 339 }
357 - $pro_notice = empty($is_pro) ? Utils::upgrade_pro_class() : '';
340 + $pro_notice = empty($is_pro) ? Utils::adminify_upgrade_pro_class() : '';
358 341 $post_type_names[$post_type->name] = $post_type->label . $pro_notice;
359 342 }
360 343 }
361 344 return $post_type_names;
@@ -374,12 +357,12 @@
374 357 continue;
375 358 }
376 359
377 360 $is_pro = false;
378 - if (class_exists('\\PXLBSAdminify\\Pro\\Adminify_Pro')) {
379 - $is_pro = \PXLBSAdminify\Pro\Adminify_Pro::is_premium();
361 + if (class_exists('\\WPAdminify\\Pro\\Adminify_Pro')) {
362 + $is_pro = \WPAdminify\Pro\Adminify_Pro::is_premium();
380 363 }
381 - $pro_notice = empty($is_pro) ? Utils::upgrade_pro_class() : '';
364 + $pro_notice = empty($is_pro) ? Utils::adminify_upgrade_pro_class() : '';
382 365 $taxonomy_names[ $taxonomy->name ] = $taxonomy->label . $pro_notice;
383 366
384 367 }
385 368 return $taxonomy_names;
@@ -412,9 +395,9 @@
412 395 'fields' => [
413 396 [
414 397 'id' => 'enable_post_duplicator',
415 398 'type' => 'switcher',
416 - 'title' => '',
399 + 'title' => __('', 'adminify'),
417 400 'class' => 'adminify-pl-0',
418 401 'text_on' => __('Show', 'adminify'),
419 402 'text_off' => __('Hide', 'adminify'),
420 403 'text_width' => 80,
@@ -424,9 +407,9 @@
424 407 'id' => 'post_types',
425 408 'type' => 'checkbox',
426 409 'title' => __('Enable for Post Types', 'adminify'),
427 410 'subtitle' => __('Select Post Types for Enabling Duplicate feature', 'adminify'),
428 - 'options' => 'PXLBSAdminify\Inc\Admin\Options\Productivity::get_all_post_types',
411 + 'options' => 'WPAdminify\Inc\Admin\Options\Productivity::get_all_post_types',
429 412 'default' => $this->get_default_field('post_duplicator')['post_types'],
430 413 'dependency' => ['enable_post_duplicator', '==', 'true', 'true'],
431 414 ],
432 415 [
@@ -431,12 +414,11 @@
431 414 ],
432 415 [
433 416 'id' => 'taxonomies',
434 417 'type' => 'checkbox',
435 - /* translators: %s: PRO badge label */
436 - 'title' => sprintf(__('Enable for Taxonomies %s', 'adminify'), Utils::upgrade_pro_badge()),
418 + 'title' => sprintf(__('Enable for Taxonomies %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
437 419 'subtitle' => __('Enable for Taxonomies', 'adminify'),
438 - 'options' => 'PXLBSAdminify\Inc\Admin\Options\Productivity::get_all_taxonomies',
420 + 'options' => 'WPAdminify\Inc\Admin\Options\Productivity::get_all_taxonomies',
439 421 'query_args' => [
440 422 'orderby' => 'post_title',
441 423 'order' => 'ASC',
442 424 ],
@@ -465,9 +447,9 @@
465 447 [
466 448 'id' => 'enable',
467 449 'type' => 'switcher',
468 450 'class' => 'adminify-pl-0',
469 - 'title' => '',
451 + 'title' => __('', 'adminify'),
470 452 'text_on' => __('Show', 'adminify'),
471 453 'text_off' => __('Hide', 'adminify'),
472 454 'text_width' => 80,
473 455 'default' => $this->get_default_field('custom_admin_columns')['enable'],
@@ -475,17 +457,14 @@
475 457 [
476 458 'id' => 'columns_data',
477 459 'type' => 'checkbox',
478 460 'class' => 'adminify-one-col',
479 - 'title' => '',
461 + 'title' => __('', 'adminify'),
480 462 'options' => [
481 - /* translators: %s: PRO upgrade notice markup */
482 - 'post_thumb_column' => sprintf(__('Show Post Thumbnails Column? %s', 'adminify'), Utils::upgrade_pro_class()),
483 - /* translators: %s: PRO upgrade notice markup */
484 - 'post_page_id_column' => sprintf(__('Show Post/Page ID Column. Display "ID" column for post and page table lists. %s', 'adminify'), Utils::upgrade_pro_class()),
463 + 'post_thumb_column' => sprintf(__('Show Post Thumbnails Column? %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
464 + 'post_page_id_column' => sprintf(__('Show Post/Page ID Column. Display "ID" column for post and page table lists. %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
485 465 'comment_id_column' => __('Show "Comment ID" Column for Comment, Also show "Parent ID"', 'adminify'),
486 - /* translators: %s: PRO upgrade notice markup */
487 - 'last_login_column' => sprintf(__('Show "Last Login" Column for Users %s', 'adminify'), Utils::upgrade_pro_class()),
466 + 'last_login_column' => sprintf(__('Show "Last Login" Column for Users %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
488 467 'taxonomy_id_column' => __('Show "Taxonomy ID" Column for all possible types of taxonomies', 'adminify'),
489 468 'posts_slug_column' => __('Show "URL Path" Column for Post Types', 'adminify'),
490 469 ],
491 470 'default' => $this->get_default_field('custom_admin_columns')['columns_data'],
@@ -507,9 +486,9 @@
507 486 'id' => 'slug_column_post_types',
508 487 'type' => 'checkbox',
509 488 'title' => __('"URL Path" Column for Post Types', 'adminify'),
510 489 'subtitle' => __('Select Post Types for Enabling "URL Path" Column Slug', 'adminify'),
511 - 'options' => 'PXLBSAdminify\Inc\Admin\Options\Productivity::get_all_post_types',
490 + 'options' => 'WPAdminify\Inc\Admin\Options\Productivity::get_all_post_types',
512 491 'default' => $this->get_default_field('custom_admin_columns')['slug_column_post_types'],
513 492 'dependency' => array('columns_data', 'any', 'posts_slug_column', 'true'),
514 493 ],
515 494 ]
@@ -544,9 +523,9 @@
544 523 ],
545 524 [
546 525 'id' => 'disable_gutenberg_editor',
547 526 'type' => 'switcher',
548 - 'label' => sprintf('<h4>%s</h4>', __('Disable Gutenberg Editor for Widgets', 'adminify')),
527 + 'label' => sprintf(__('<h4>%s</h4>', 'adminify'), __('Disable Gutenberg Editor for Widgets', 'adminify')),
549 528 'class' => 'adminify-pl-0 adminify-col-fit',
550 529 'text_on' => __('Yes', 'adminify'),
551 530 'text_off' => __('No', 'adminify'),
552 531 'text_width' => 80,
@@ -556,10 +535,10 @@
556 535 [
557 536 'id' => 'sidebar_widgets_list',
558 537 'type' => 'checkbox',
559 538 'class' => 'adminify-one-col',
560 - 'title' => '',
561 - 'options' => '\PXLBSAdminify\Inc\Classes\Sidebar_Widgets::render_sidebar_checkboxes',
539 + 'title' => __('', 'adminify'),
540 + 'options' => '\WPAdminify\Inc\Classes\Sidebar_Widgets::render_sidebar_checkboxes',
562 541 'default' => $this->get_default_field('remove_widgets')['sidebar_widgets_list'],
563 542 'dependency' => ['remove_widgets_type|disable_gutenberg_editor', '==|==', 'sidebar|true', true],
564 543 ],
565 544 [
@@ -565,10 +544,10 @@
565 544 [
566 545 'id' => 'dashboard_widgets_list',
567 546 'type' => 'checkbox',
568 547 'class' => "adminify-one-col",
569 - 'title' => '',
570 - 'options' => '\PXLBSAdminify\Inc\Classes\Remove_DashboardWidgets::render_dashboard_checkboxes',
548 + 'title' => __('', 'adminify'),
549 + 'options' => '\WPAdminify\Inc\Classes\Remove_DashboardWidgets::render_dashboard_checkboxes',
571 550 'default' => $this->get_default_field('remove_widgets')['dashboard_widgets_list'],
572 551 'dependency' => ['remove_widgets_type', '==', 'dashboard', true],
573 552 ],
574 553 ]
@@ -584,16 +563,12 @@
584 563 public function productivity_attachment_fields(&$attachment_fields)
585 564 {
586 565
587 566 $allowed_upload_files_type = [
588 - /* translators: %s: PRO upgrade notice markup */
589 - 'svg' => sprintf(__('SVG Files %s', 'adminify'), Utils::upgrade_pro_class()),
590 - /* translators: %s: PRO upgrade notice markup */
591 - 'avif' => sprintf(__('AVIF Files %s', 'adminify'), Utils::upgrade_pro_class()),
592 - /* translators: %s: PRO upgrade notice markup */
593 - 'ico' => sprintf(__('ICO Files %s', 'adminify'), Utils::upgrade_pro_class()),
594 - /* translators: %s: PRO upgrade notice markup */
595 - 'webp' => sprintf(__('WEBP Files %s', 'adminify'), Utils::upgrade_pro_class()),
567 + 'svg' => sprintf(__('SVG Files %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
568 + 'avif' => sprintf(__('AVIF Files %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
569 + 'ico' => sprintf(__('ICO Files %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
570 + 'webp' => sprintf(__('WEBP Files %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
596 571 ];
597 572
598 573 $attachment_fields_data = [
599 574 [
@@ -598,9 +573,9 @@
598 573 $attachment_fields_data = [
599 574 [
600 575 'id' => 'enable_media',
601 576 'type' => 'switcher',
602 - 'title' => '',
577 + 'title' => __('', 'adminify'),
603 578 'class' => 'adminify-pl-0',
604 579 'text_on' => __('Show', 'adminify'),
605 580 'text_off' => __('Hide', 'adminify'),
606 581 'text_width' => 80,
@@ -605,49 +580,21 @@
605 580 'text_off' => __('Hide', 'adminify'),
606 581 'text_width' => 80,
607 582 'default' => $this->get_default_field('media_attachments')['enable_media'],
608 583 ],
584 + // [
585 + // 'id' => 'media_ininite_scroll',
586 + // 'type' => 'switcher',
587 + // 'title' => sprintf(__('Infinite Scroll for Media Library? %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
588 + // 'class' => 'adminify-pl-0 adminify-pt-0 adminify-pro-fieldset adminify-pro-notice',
589 + // 'text_on' => __('Yes', 'adminify'),
590 + // 'text_off' => __('No', 'adminify'),
591 + // 'text_width' => 80,
592 + // 'subtitle' => __('Re-enable infinite scrolling in the media library\'s grid view to ease navigation through a large collection.', 'adminify'),
593 + // 'default' => $this->get_default_field('media_attachments')['media_ininite_scroll'],
594 + // 'dependency' => ['enable_media', '==', 'true', true],
595 + // ],
609 596 [
610 - 'id' => 'media_ininite_scroll',
611 - 'type' => 'switcher',
612 - /* translators: %s: PRO badge label */
613 - 'title' => sprintf(__('Infinite Scroll for Media Library? %s', 'adminify'), Utils::upgrade_pro_badge()),
614 - 'class' => 'adminify-pl-0 adminify-pt-0 adminify-pro-fieldset adminify-pro-notice',
615 - 'text_on' => __('Yes', 'adminify'),
616 - 'text_off' => __('No', 'adminify'),
617 - 'text_width' => 80,
618 - 'subtitle' => __('Re-enable infinite scrolling in the media library\'s grid view to ease navigation through a large collection.', 'adminify'),
619 - 'default' => $this->get_default_field('media_attachments')['media_ininite_scroll'],
620 - 'dependency' => ['enable_media', '==', 'true', true],
621 - ],
622 - [
623 - 'id' => 'media_replace',
624 - 'type' => 'switcher',
625 - /* translators: %s: PRO badge label */
626 - 'title' => sprintf(__('Media Replace %s', 'adminify'), Utils::upgrade_pro_badge()),
627 - 'class' => 'adminify-pl-0 adminify-pt-0 adminify-pro-fieldset adminify-pro-notice',
628 - 'text_on' => __('Yes', 'adminify'),
629 - 'text_off' => __('No', 'adminify'),
630 - 'text_width' => 80,
631 - 'subtitle' => __('Swap any media file with new one. URL & metadata stay same. All existing links keep working.', 'adminify'),
632 - 'default' => $this->get_default_field('media_attachments')['media_replace'],
633 - 'dependency' => ['enable_media', '==', 'true', true],
634 - ],
635 - [
636 - 'id' => 'media_replace_backup_limit',
637 - 'type' => 'number',
638 - /* translators: %s: PRO badge label */
639 - 'title' => sprintf(__('Backup Restore Limit %s', 'adminify'), Utils::upgrade_pro_badge()),
640 - 'class' => 'adminify-pl-0 adminify-pro-feature adminify-pro-notice',
641 - 'subtitle' => __('Set how many backups to store per file. (Default: 1)', 'adminify'),
642 - 'min' => 1,
643 - 'default' => $this->get_default_field('media_attachments')['media_replace_backup_limit'],
644 - 'dependency' => [
645 - ['enable_media', '==', 'true', true],
646 - ['media_replace', '==', 'true', true],
647 - ],
648 - ],
649 - [
650 597 'id' => 'thumbnails_rss_feed',
651 598 'type' => 'switcher',
652 599 'title' => __('Post Thumbnails on RSS', 'adminify'),
653 600 'class' => 'adminify-pl-0',
@@ -661,9 +608,9 @@
661 608 // [
662 609 // 'id' => 'allowed_upload_files',
663 610 // 'type' => 'checkbox',
664 611 // 'class' => 'adminify-pl-0',
665 - // 'title' => sprintf(__('Allowed Files Uploads %s', 'adminify'), Utils::upgrade_pro_badge()),
612 + // 'title' => sprintf(__('Allowed Files Uploads %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
666 613 // 'subtitle' => __('Allow SVG/JPEG/WEBP/ICO/AVIF Files Upload', 'adminify'),
667 614 // 'options' => $allowed_upload_files_type,
668 615 // 'default' => $this->get_default_field('media_attachments')['allowed_upload_files'],
669 616 // 'dependency' => ['enable_media', '==', 'true', true],
@@ -675,9 +622,9 @@
675 622 // 'text_on' => __('Yes', 'adminify'),
676 623 // 'text_off' => __('No', 'adminify'),
677 624 // 'text_width' => 80,
678 625 // 'class' => 'adminify-pl-0',
679 - // 'title' => sprintf(__('Convert to WEBP %s', 'adminify'), Utils::upgrade_pro_badge()),
626 + // 'title' => sprintf(__('Convert to WEBP %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
680 627 // 'subtitle' => __('Convert Uploaded image to WEBP', 'adminify'),
681 628 // 'default' => $this->get_default_field('media_attachments')['convert_to_webp'],
682 629 // 'dependency' => ['enable_media', '==', 'true', true],
683 630 // ],
@@ -688,9 +635,9 @@
688 635 // 'text_on' => __('Yes', 'adminify'),
689 636 // 'text_off' => __('No', 'adminify'),
690 637 // 'text_width' => 80,
691 638 // 'class' => 'adminify-pl-0',
692 - // 'title' => sprintf(__('Link Featured Images to Post %s', 'adminify'), Utils::upgrade_pro_badge()),
639 + // 'title' => sprintf(__('Link Featured Images to Post %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
693 640 // 'subtitle' => __('Wrap featured images in your theme in links to posts.', 'adminify'),
694 641 // 'default' => $this->get_default_field('media_attachments')['featured_to_post'],
695 642 // 'dependency' => ['enable_media', '==', 'true', true],
696 643 // ],
@@ -696,9 +643,9 @@
696 643 // ],
697 644 // [
698 645 // 'id' => 'media_lowercase',
699 646 // 'type' => 'switcher',
700 - // 'title' => sprintf(__('Lowercase Filenames for Uploads %s', 'adminify'), Utils::upgrade_pro_badge()),
647 + // 'title' => sprintf(__('Lowercase Filenames for Uploads %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
701 648 // 'subtitle' => __('Make all the filenames of new uploads to lowercase', 'adminify'),
702 649 // 'class' => 'adminify-pl-0',
703 650 // 'text_on' => __('Yes', 'adminify'),
704 651 // 'text_off' => __('No', 'adminify'),
@@ -753,9 +700,9 @@
753 700 $this->productivity_attachment_fields($fields);
754 701
755 702 $this->gutenberg_settings($fields);
756 703
757 - $fields = apply_filters('pxlbsadminify_settings/productivity', $fields, $this);
704 + $fields = apply_filters('adminify_settings/productivity', $fields, $this);
758 705
759 706 // Productivity Section
760 707 \ADMINIFY::createSection(
761 708 $this->prefix,