PluginProbe
Admin Bar Editor – Toolbar Customization with User Role based access & Custom menus / 1.0.2.8
Admin Bar Editor – Toolbar Customization with User Role based access & Custom menus v1.0.2.8
1.1.10 1.1.9 1.1.8 1.1.7 trunk 1.0 1.0.1 1.0.2.1 1.0.2.2 1.0.2.3 1.0.2.4 1.0.2.5 1.0.2.6 1.0.2.7 1.0.2.8 1.0.2.9 1.0.3.0 1.0.4.0 1.1.0 1.1.2 1.1.2.0 1.1.2.1 1.1.2.2 1.1.3 1.1.4 All 27 releases
admin-bar / admin-bar.php

admin-bar.php in Admin Bar Editor – Toolbar Customization with User Role based access & Custom menus 1.0.2.8, at admin-bar.php

106 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Admin Bar Editor
4 * Plugin URI: https://jeweltheme.com
5 * Description: This plugin turns on or off Admin Bar in front end, for all users and customize backend admin bar.
6 * Version: 1.0.2.7
7 * Author: Jewel Theme
8 * Author URI: https://jeweltheme.com/admin-bar-editor
9 * Text Domain: admin-bar
10 * Domain Path: languages/
11 * License: GPLv3 or later
12 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
13 *
14 * @package admin-bar
15 */
16
17 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
18
19 $jlt_admin_bar_editor_plugin_data = get_file_data(
20 __FILE__,
21 array(
22 'Version' => 'Version',
23 'Plugin Name' => 'Plugin Name',
24 'Author' => 'Author',
25 'Description' => 'Description',
26 'Plugin URI' => 'Plugin URI',
27 ),
28 false
29 );
30
31 // Define Constants.
32 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR' ) ) {
33 define( 'JLT_ADMIN_BAR_EDITOR', $jlt_admin_bar_editor_plugin_data['Plugin Name'] );
34 }
35
36 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_VER' ) ) {
37 define( 'JLT_ADMIN_BAR_EDITOR_VER', $jlt_admin_bar_editor_plugin_data['Version'] );
38 }
39
40 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_AUTHOR' ) ) {
41 define( 'JLT_ADMIN_BAR_EDITOR_AUTHOR', $jlt_admin_bar_editor_plugin_data['Author'] );
42 }
43
44 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_DESC' ) ) {
45 define( 'JLT_ADMIN_BAR_EDITOR_DESC', $jlt_admin_bar_editor_plugin_data['Author'] );
46 }
47
48 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_URI' ) ) {
49 define( 'JLT_ADMIN_BAR_EDITOR_URI', $jlt_admin_bar_editor_plugin_data['Plugin URI'] );
50 }
51
52 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_DIR' ) ) {
53 define( 'JLT_ADMIN_BAR_EDITOR_DIR', __DIR__ );
54 }
55
56 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_FILE' ) ) {
57 define( 'JLT_ADMIN_BAR_EDITOR_FILE', __FILE__ );
58 }
59
60 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_SLUG' ) ) {
61 define( 'JLT_ADMIN_BAR_EDITOR_SLUG', dirname( plugin_basename( __FILE__ ) ) );
62 }
63
64 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_BASE' ) ) {
65 define( 'JLT_ADMIN_BAR_EDITOR_BASE', plugin_basename( __FILE__ ) );
66 }
67
68 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_PATH' ) ) {
69 define( 'JLT_ADMIN_BAR_EDITOR_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
70 }
71
72 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_URL' ) ) {
73 define( 'JLT_ADMIN_BAR_EDITOR_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
74 }
75
76 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_INC' ) ) {
77 define( 'JLT_ADMIN_BAR_EDITOR_INC', JLT_ADMIN_BAR_EDITOR_PATH . '/Inc/' );
78 }
79
80 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_LIBS' ) ) {
81 define( 'JLT_ADMIN_BAR_EDITOR_LIBS', JLT_ADMIN_BAR_EDITOR_PATH . 'Libs' );
82 }
83
84 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_ASSETS' ) ) {
85 define( 'JLT_ADMIN_BAR_EDITOR_ASSETS', JLT_ADMIN_BAR_EDITOR_URL . 'assets/' );
86 }
87
88 if ( ! defined( 'JLT_ADMIN_BAR_EDITOR_IMAGES' ) ) {
89 define( 'JLT_ADMIN_BAR_EDITOR_IMAGES', JLT_ADMIN_BAR_EDITOR_ASSETS . 'images/' );
90 }
91
92 if ( ! class_exists( '\\JewelTheme\AdminBarEditor\\AdminBarEditor' ) ) {
93 // Autoload Files.
94 include_once JLT_ADMIN_BAR_EDITOR_DIR . '/vendor/autoload.php';
95 // Instantiate AdminBarEditor Class.
96 include_once JLT_ADMIN_BAR_EDITOR_DIR . '/class-admin-bar.php';
97 }
98
99 // Activation and Deactivation hooks.
100 if ( class_exists( '\\JewelTheme\AdminBarEditor\\AdminBarEditor' ) ) {
101 register_activation_hook( JLT_ADMIN_BAR_EDITOR_FILE, array( '\\JewelTheme\AdminBarEditor\\AdminBarEditor', 'jlt_admin_bar_editor_activation_hook' ) );
102 // register_deactivation_hook( JLT_ADMIN_BAR_EDITOR_FILE, array( '\\JewelTheme\AdminBarEditor\\AdminBarEditor', 'jlt_admin_bar_editor_deactivation_hook' ) );
103 }
104
105 // Maybe Load the Plugin
106 include_once JLT_ADMIN_BAR_EDITOR_DIR . '/loader.php';