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

133 lines 5.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.11
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 */
16 // No, Direct access Sir !!!
17 if ( !defined( 'ABSPATH' ) ) {
18 exit;
19 }
20 $pxlbsadminify_plugin_data = get_file_data( __FILE__, array(
21 'Version' => 'Version',
22 'Plugin Name' => 'Plugin Name',
23 'Author' => 'Author',
24 'Description' => 'Description',
25 'Plugin URI' => 'Plugin URI',
26 ), false );
27 if ( function_exists( 'jltwp_adminify' ) ) {
28 jltwp_adminify()->set_basename( false, __FILE__ );
29 } elseif ( !function_exists( 'jltwp_adminify' ) ) {
30 // Create a helper function for easy SDK access.
31 function jltwp_adminify() {
32 global $jltwp_adminify;
33 if ( !isset( $jltwp_adminify ) ) {
34 // Activate multisite network integration.
35 if ( !defined( 'WP_FS__PRODUCT_7829_MULTISITE' ) ) {
36 define( 'WP_FS__PRODUCT_7829_MULTISITE', true );
37 }
38 // Include Freemius SDK.
39 require_once __DIR__ . '/Libs/freemius/start.php';
40 $jltadminify_menu = array(
41 'slug' => 'wp-adminify-settings',
42 'first-path' => 'admin.php?page=wp-adminify-settings',
43 'account' => false,
44 'network' => false,
45 'support' => false,
46 'contact' => false,
47 'affiliation' => false,
48 'pricing' => true,
49 'addons' => false,
50 );
51 // WP Adminify
52 $jltwp_adminify = fs_dynamic_init( array(
53 'id' => '7829',
54 'slug' => 'adminify',
55 'premium_slug' => 'adminify-pro',
56 'type' => 'plugin',
57 'public_key' => 'pk_a0ea61beae7126eb845f7e58a03e5',
58 'premium_suffix' => 'Premium',
59 'affiliation' => false,
60 'has_addons' => false,
61 'has_paid_plans' => true,
62 'is_org_compliant' => true,
63 'parallel_activation' => array(
64 'enabled' => true,
65 'premium_version_basename' => 'adminify-pro/adminify.php',
66 ),
67 'menu' => ( function_exists( 'pxlbsadminify_get_menu_params__premium_only' ) ? pxlbsadminify_get_menu_params__premium_only() : $jltadminify_menu ),
68 'is_live' => true,
69 'is_premium' => false,
70 ) );
71 }
72 return $jltwp_adminify;
73 }
74
75 // Init Freemius.
76 jltwp_adminify();
77 jltwp_adminify()->add_filter( 'deactivate_on_activation', '__return_false' );
78 // Signal that SDK was initiated.
79 do_action( 'pxlbsadminify_loaded' );
80 }
81 if ( !defined( 'PXLBSADMINIFY' ) ) {
82 define( 'PXLBSADMINIFY', $pxlbsadminify_plugin_data['Plugin Name'] );
83 }
84 if ( !defined( 'PXLBSADMINIFY_VER' ) ) {
85 define( 'PXLBSADMINIFY_VER', $pxlbsadminify_plugin_data['Version'] );
86 }
87 if ( !defined( 'PXLBSADMINIFY_FILE' ) ) {
88 define( 'PXLBSADMINIFY_FILE', __FILE__ );
89 }
90 if ( !defined( 'PXLBSADMINIFY_SLUG' ) ) {
91 define( 'PXLBSADMINIFY_SLUG', dirname( plugin_basename( __FILE__ ) ) );
92 }
93 if ( !defined( 'PXLBSADMINIFY_BASE' ) ) {
94 define( 'PXLBSADMINIFY_BASE', plugin_basename( __FILE__ ) );
95 }
96 if ( !defined( 'PXLBSADMINIFY_PATH' ) ) {
97 define( 'PXLBSADMINIFY_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
98 }
99 if ( !defined( 'PXLBSADMINIFY_URL' ) ) {
100 define( 'PXLBSADMINIFY_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
101 }
102 if ( !defined( 'PXLBSADMINIFY_ASSETS' ) ) {
103 define( 'PXLBSADMINIFY_ASSETS', PXLBSADMINIFY_URL . 'assets/' );
104 }
105 if ( !defined( 'PXLBSADMINIFY_ASSETS_IMAGE' ) ) {
106 define( 'PXLBSADMINIFY_ASSETS_IMAGE', PXLBSADMINIFY_ASSETS . 'images/' );
107 }
108 if ( !defined( 'PXLBSADMINIFY_ASSET_PATH' ) ) {
109 define( 'PXLBSADMINIFY_ASSET_PATH', wp_upload_dir()['basedir'] . '/wp-adminify' );
110 }
111 if ( !defined( 'PXLBSADMINIFY_ASSET_URL' ) ) {
112 define( 'PXLBSADMINIFY_ASSET_URL', wp_upload_dir()['baseurl'] . '/wp-adminify' );
113 }
114 if ( !defined( 'PXLBSADMINIFY_DESC' ) ) {
115 define( 'PXLBSADMINIFY_DESC', $pxlbsadminify_plugin_data['Description'] );
116 }
117 if ( !defined( 'PXLBSADMINIFY_AUTHOR' ) ) {
118 define( 'PXLBSADMINIFY_AUTHOR', $pxlbsadminify_plugin_data['Author'] );
119 }
120 if ( !defined( 'PXLBSADMINIFY_URI' ) ) {
121 define( 'PXLBSADMINIFY_URI', $pxlbsadminify_plugin_data['Plugin URI'] );
122 }
123 if ( !class_exists( '\\PXLBSAdminify\\WP_Adminify' ) ) {
124 // Autoload Files
125 require_once __DIR__ . '/vendor/autoload.php';
126 // Instantiate WP Adminify Class
127 require_once __DIR__ . '/class-wp-adminify.php';
128 }
129 // Activation and Deactivation hooks
130 if ( class_exists( '\\PXLBSAdminify\\WP_Adminify' ) ) {
131 register_activation_hook( PXLBSADMINIFY_FILE, array('\\PXLBSAdminify\\WP_Adminify', 'pxlbsadminify_activation_hook') );
132 register_deactivation_hook( PXLBSADMINIFY_FILE, array('\\PXLBSAdminify\\WP_Adminify', 'pxlbsadminify_deactivation_hook') );
133 }