PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.2.3
Adminify – White Label, Admin Menu Editor, Login Customizer v4.2.3
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 / adminify.php

adminify.php in Adminify – White Label, Admin Menu Editor, Login Customizer 4.2.3, at adminify.php

207 lines 6.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: Adminify – White Label, Admin Menu Editor, Login Customizer
5 * Description: Customize the WordPress admin area with white-label branding, a drag-and-drop menu editor, login customizer, media folders, and security tools.
6 * Plugin URI: https://wpadminify.com
7 * Version: 4.2.3
8 * Author: Pixar Labs
9 * Author URI: https://pixarlabs.com
10 * License: GPLv3 or later
11 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
12 * Text Domain: adminify
13 * Domain Path: /languages
14 *
15 * @fs_premium_only /Pro/, /Inc/Modules/AdminPages/, /assets/vendors/circle-menu/, class-wp-adminify-pro.php, classmaps-pro.php, autoloader-pro.php
16 * @fs_free_only class-wp-adminify.php, /vendor/, /assets/, /Inc/, /Libs/adminify-framework/, /Libs/Addons.php, /Libs/Featured.php
17 */
18
19 // No, Direct access Sir !!!
20 if (!defined('ABSPATH')) {
21 exit;
22 }
23
24 $pxlbsadminify_plugin_data = get_file_data(
25 __FILE__,
26 array(
27 'Version' => 'Version',
28 'Plugin Name' => 'Plugin Name',
29 'Author' => 'Author',
30 'Description' => 'Description',
31 'Plugin URI' => 'Plugin URI',
32 ),
33 false
34 );
35
36
37 function pxlbsadminify_get_menu_params__premium_only()
38 {
39 return array(
40 'slug' => 'wp-adminify-settings', // need in pro
41 'first-path' => 'admin.php?page=wp-adminify-settings', // need in pro
42 'account' => true,
43 'network' => true,
44 'support' => false,
45 'contact' => false,
46 'affiliation' => false,
47 'pricing' => false,
48 'addons' => false,
49 );
50 }
51
52 if (function_exists('jltwp_adminify')) {
53 jltwp_adminify()->set_basename(true, __FILE__);
54 } elseif (!function_exists('jltwp_adminify')) {
55 // Create a helper function for easy SDK access.
56 function jltwp_adminify()
57 {
58 global $jltwp_adminify;
59
60 if (!isset($jltwp_adminify)) {
61 // Activate multisite network integration.
62 if (!defined('WP_FS__PRODUCT_7829_MULTISITE')) {
63 define('WP_FS__PRODUCT_7829_MULTISITE', true);
64 }
65
66 // Include Freemius SDK.
67 require_once __DIR__ . '/Libs/freemius/start.php';
68
69 $jltadminify_menu = array(
70 'slug' => 'wp-adminify-settings', // no need in pro
71 'first-path' => 'admin.php?page=wp-adminify-settings', // no need in pro
72 'account' => false,
73 'network' => false,
74 'support' => false,
75 'contact' => false,
76 'affiliation' => false,
77 'pricing' => true,
78 'addons' => false,
79 );
80
81 // WP Adminify
82 $jltwp_adminify = fs_dynamic_init(
83 array(
84 'id' => '7829',
85 'slug' => 'adminify',
86 'premium_slug' => 'adminify-pro',
87 'type' => 'plugin',
88 'public_key' => 'pk_a0ea61beae7126eb845f7e58a03e5',
89 'premium_suffix' => 'Premium',
90 'has_premium_version' => true,
91 'affiliation' => false,
92 // 'has_affiliation' => 'selected',
93 'has_addons' => false,
94 'has_paid_plans' => true,
95 'is_org_compliant' => true,
96 'parallel_activation' => array(
97 'enabled' => true,
98 'premium_version_basename' => 'adminify-pro/adminify.php',
99 ),
100 'menu' => (function_exists('pxlbsadminify_get_menu_params__premium_only') ? pxlbsadminify_get_menu_params__premium_only() : $jltadminify_menu),
101 'is_premium' => false,
102 )
103 );
104 }
105
106 return $jltwp_adminify;
107 }
108
109 // Init Freemius.
110 jltwp_adminify();
111
112 jltwp_adminify()->add_filter('deactivate_on_activation', '__return_false');
113
114 // Signal that SDK was initiated.
115 do_action('pxlbsadminify_loaded');
116 }
117
118
119 // Define Constants
120 if ( !jltwp_adminify()->is__premium_only()) {
121 if (!defined('PXLBSADMINIFY')) {
122 define('PXLBSADMINIFY', $pxlbsadminify_plugin_data['Plugin Name']);
123 }
124 if (!defined('PXLBSADMINIFY_VER')) {
125 define('PXLBSADMINIFY_VER', $pxlbsadminify_plugin_data['Version']);
126 }
127 if (!defined('PXLBSADMINIFY_FILE')) {
128 define('PXLBSADMINIFY_FILE', __FILE__);
129 }
130 if (!defined('PXLBSADMINIFY_SLUG')) {
131 define('PXLBSADMINIFY_SLUG', dirname(plugin_basename(__FILE__)));
132 }
133 if (!defined('PXLBSADMINIFY_BASE')) {
134 define('PXLBSADMINIFY_BASE', plugin_basename(__FILE__));
135 }
136 if (!defined('PXLBSADMINIFY_PATH')) {
137 define('PXLBSADMINIFY_PATH', trailingslashit(plugin_dir_path(__FILE__)));
138 }
139 if (!defined('PXLBSADMINIFY_URL')) {
140 define('PXLBSADMINIFY_URL', trailingslashit(plugins_url('/', __FILE__)));
141 }
142 if (!defined('PXLBSADMINIFY_ASSETS')) {
143 define('PXLBSADMINIFY_ASSETS', PXLBSADMINIFY_URL . 'assets/');
144 }
145 if (!defined('PXLBSADMINIFY_ASSETS_IMAGE')) {
146 define('PXLBSADMINIFY_ASSETS_IMAGE', PXLBSADMINIFY_ASSETS . 'images/');
147 }
148 if (!defined('PXLBSADMINIFY_ASSET_PATH')) {
149 define('PXLBSADMINIFY_ASSET_PATH', wp_upload_dir()['basedir'] . '/wp-adminify');
150 }
151 if (!defined('PXLBSADMINIFY_ASSET_URL')) {
152 define('PXLBSADMINIFY_ASSET_URL', wp_upload_dir()['baseurl'] . '/wp-adminify');
153 }
154 if (!defined('PXLBSADMINIFY_DESC')) {
155 define('PXLBSADMINIFY_DESC', $pxlbsadminify_plugin_data['Description']);
156 }
157 if (!defined('PXLBSADMINIFY_AUTHOR')) {
158 define('PXLBSADMINIFY_AUTHOR', $pxlbsadminify_plugin_data['Author']);
159 }
160 if (!defined('PXLBSADMINIFY_URI')) {
161 define('PXLBSADMINIFY_URI', $pxlbsadminify_plugin_data['Plugin URI']);
162 }
163 }
164
165
166 if ( jltwp_adminify()->is__premium_only()) {
167 if (!defined('PXLBSADMINIFY_DIR')) {
168 define('PXLBSADMINIFY_DIR', plugin_dir_path(__FILE__));
169 }
170 if (!defined('PXLBSADMINIFY_PRO_FILE')) {
171 define('PXLBSADMINIFY_PRO_FILE', __FILE__);
172 }
173
174 if (!defined('PXLBSADMINIFY_PRO_URL')) {
175 define('PXLBSADMINIFY_PRO_URL', trailingslashit(plugins_url('/', __FILE__)) . 'Pro/assets');
176 }
177 }
178
179
180 if ( !jltwp_adminify()->is__premium_only()) {
181 if (!class_exists('\\PXLBSAdminify\\WP_Adminify')) {
182 // Autoload Files
183 require_once __DIR__ . '/vendor/autoload.php';
184
185 // Instantiate WP Adminify Class
186 require_once __DIR__ . '/class-wp-adminify.php';
187 }
188
189 // Activation and Deactivation hooks
190 if (class_exists('\\PXLBSAdminify\\WP_Adminify')) {
191 register_activation_hook(PXLBSADMINIFY_FILE, array('\\PXLBSAdminify\\WP_Adminify', 'pxlbsadminify_activation_hook'));
192 register_deactivation_hook(PXLBSADMINIFY_FILE, array('\\PXLBSAdminify\\WP_Adminify', 'pxlbsadminify_deactivation_hook'));
193 }
194
195 }
196
197 if ( jltwp_adminify()->is__premium_only()) {
198 if (jltwp_adminify()->can_use_premium_code()) {
199 require_once __DIR__ . '/autoloader-pro.php';
200 // Instantiate WP Adminify Pro Class
201 if (!class_exists('\\PXLBSAdminify\\Pro\\Adminify_Pro')) {
202 require_once __DIR__ . '/class-wp-adminify-pro.php';
203 }
204 register_activation_hook(PXLBSADMINIFY_PRO_FILE, ['\\PXLBSAdminify\\Pro\\Adminify_Pro', 'pxlbsadminify_pro_activation_hook']);
205 }
206 }
207