PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 2.0.4
Adminify – White Label, Admin Menu Editor, Login Customizer v2.0.4
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
adminify / Inc / Admin / Options / White_Label.php

White_Label.php in Adminify – White Label, Admin Menu Editor, Login Customizer 2.0.4, at Inc/Admin/Options/White_Label.php

164 lines 7.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPAdminify\Inc\Admin\Options;
4
5 use WPAdminify\Inc\Utils ;
6 use WPAdminify\Inc\Admin\AdminSettingsModel ;
7 if ( !defined( 'ABSPATH' ) ) {
8 die;
9 }
10 // Cannot access directly.
11 class White_Label extends AdminSettingsModel
12 {
13 public function __construct()
14 {
15 $this->white_label_settings();
16 }
17
18 public function get_defaults()
19 {
20 return [
21 'jltwp_adminify_wl_plugin_logo' => '',
22 'jltwp_adminify_wl_plugin_name' => 'WP Adminify',
23 'jltwp_adminify_wl_plugin_desc' => 'Supercharge your WordPress Adminify with <a href="https://wpadminify.com">WP Adminify</a> plugin. It has Professional & Clean UI, White Label, Analytics, Charts, Menu UI, WP Dark Theme, User Roles management, Multisite Support and many more to get amazed.',
24 'jltwp_adminify_wl_plugin_author_name' => 'Jewel Theme',
25 'jltwp_adminify_wl_plugin_menu_label' => 'WP Adminify',
26 'jltwp_adminify_wl_plugin_url' => 'https://wpadminify.com',
27 'jltwp_adminify_wl_plugin_row_links' => false,
28 'jltwp_adminify_wl_plugin_tab_system_info' => false,
29 'jltwp_adminify_wl_plugin_option' => false,
30 'jltwp_adminify_remove_action_links' => [],
31 ];
32 }
33
34 /**
35 * Tweaks: Performance Fields
36 *
37 * @param [type] $white_label
38 *
39 * @return void
40 */
41 public function white_label_fields( &$white_label )
42 {
43 $white_label_class = '';
44 $white_label_class = 'adminify-depend-visible adminify-depend-on';
45 $white_label[] = array(
46 'type' => 'subheading',
47 'content' => Utils::adminfiy_help_urls(
48 __( 'White Label Settings', WP_ADMINIFY_TD ),
49 'https://wpadminify.com/kb/adminify-white-label/',
50 'https://www.youtube.com/playlist?list=PLqpMw0NsHXV-EKj9Xm1DMGa6FGniHHly8',
51 'https://www.facebook.com/groups/jeweltheme',
52 'https://wpadminify.com/support/'
53 ),
54 );
55 $white_label[] = array(
56 'id' => 'jltwp_adminify_wl_plugin_logo',
57 'type' => 'media',
58 'class' => $white_label_class,
59 'title' => __( 'Logo Image', WP_ADMINIFY_TD ),
60 'library' => 'image',
61 'preview_size' => 'thumbnail',
62 'button_title' => __( 'Add Logo Image', WP_ADMINIFY_TD ),
63 'remove_title' => __( 'Remove Logo Image', WP_ADMINIFY_TD ),
64 'default' => $this->get_default_field( 'jltwp_adminify_wl_plugin_logo' ),
65 );
66 $white_label[] = array(
67 'id' => 'jltwp_adminify_wl_plugin_name',
68 'type' => 'text',
69 'class' => $white_label_class,
70 'title' => __( 'Plugin Name', WP_ADMINIFY_TD ),
71 'default' => $this->get_default_field( 'jltwp_adminify_wl_plugin_name' ),
72 );
73 $white_label[] = array(
74 'id' => 'jltwp_adminify_wl_plugin_desc',
75 'type' => 'textarea',
76 'class' => $white_label_class,
77 'title' => __( 'Plugin Description', WP_ADMINIFY_TD ),
78 'default' => $this->get_default_field( 'jltwp_adminify_wl_plugin_desc' ),
79 );
80 $white_label[] = array(
81 'id' => 'jltwp_adminify_wl_plugin_author_name',
82 'type' => 'text',
83 'class' => $white_label_class,
84 'title' => __( 'Developer/Agency Name', WP_ADMINIFY_TD ),
85 'default' => $this->get_default_field( 'jltwp_adminify_wl_plugin_author_name' ),
86 );
87 $white_label[] = array(
88 'id' => 'jltwp_adminify_wl_plugin_menu_label',
89 'type' => 'text',
90 'class' => $white_label_class,
91 'title' => __( 'Menu Label', WP_ADMINIFY_TD ),
92 'default' => $this->get_default_field( 'jltwp_adminify_wl_plugin_menu_label' ),
93 );
94 $white_label[] = array(
95 'id' => 'jltwp_adminify_wl_plugin_url',
96 'type' => 'text',
97 'class' => $white_label_class,
98 'title' => __( 'Plugin URL', WP_ADMINIFY_TD ),
99 'default' => $this->get_default_field( 'jltwp_adminify_wl_plugin_url' ),
100 );
101 $white_label[] = array(
102 'type' => 'subheading',
103 'class' => $white_label_class,
104 'content' => __( 'White Label WP Adminify', WP_ADMINIFY_TD ),
105 );
106 // $white_label[] = array(
107 // 'id' => 'jltwp_adminify_wl_plugin_tab_system_info',
108 // 'type' => 'checkbox',
109 // 'label' => __('Hide System Info Menu', WP_ADMINIFY_TD),
110 // 'default' => $this->get_default_field('jltwp_adminify_wl_plugin_tab_system_info')
111 // );
112 $white_label[] = array(
113 'id' => 'jltwp_adminify_wl_plugin_row_links',
114 'type' => 'checkbox',
115 'class' => $white_label_class,
116 'label' => __( 'Hide Plugin Row Meta Links', WP_ADMINIFY_TD ),
117 'default' => $this->get_default_field( 'jltwp_adminify_wl_plugin_row_links' ),
118 );
119 $white_label[] = array(
120 'type' => 'callback',
121 'class' => 'wp-adminify-white-label-notice',
122 'function' => 'WPAdminify\\Inc\\Utils::jltwp_adminify_white_label_upgrade',
123 );
124 $white_label[] = array(
125 'id' => 'jltwp_adminify_remove_action_links',
126 'type' => 'checkbox',
127 'class' => 'aminify-title-width-40',
128 'title' => __( 'Remove Action Links', WP_ADMINIFY_TD ),
129 'options' => [
130 'upgrade' => __( 'Upgrade', WP_ADMINIFY_TD ),
131 'activate-license' => __( 'Activate/Change License', WP_ADMINIFY_TD ),
132 'opt-in-or-opt-out' => __( 'Opt In/Out', WP_ADMINIFY_TD ),
133 'adminify-plugin-settings' => __( 'Settings', WP_ADMINIFY_TD ),
134 ],
135 );
136 $white_label[] = array(
137 'id' => 'jltwp_adminify_wl_plugin_option',
138 'type' => 'checkbox',
139 'class' => $white_label_class,
140 'class' => 'adminify-full-width-field adminify-hightlight-field',
141 'label' => __( 'Enable Force Disable "White Label" Options: If you enable this option, White Label option will be completely hidden. If you want it back, You have to deactivate and activate plugin to make it work again.', WP_ADMINIFY_TD ),
142 'default' => $this->get_default_field( 'jltwp_adminify_wl_plugin_option' ),
143 );
144 }
145
146 /*
147 White Label Settings
148 */
149 public function white_label_settings()
150 {
151 if ( !class_exists( 'ADMINIFY' ) ) {
152 return;
153 }
154 $white_label = [];
155 $this->white_label_fields( $white_label );
156 \ADMINIFY::createSection( $this->prefix, array(
157 'title' => __( 'White Label', WP_ADMINIFY_TD ),
158 'icon' => 'far fa-copyright',
159 'class' => 'wp-adminify-two-columns ',
160 'fields' => $white_label,
161 ) );
162 }
163
164 }