-
Notifications
You must be signed in to change notification settings - Fork 0
/
low-key-toolbar.php
54 lines (48 loc) · 1.33 KB
/
low-key-toolbar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Plugin Name: Low-Key Toolbar
* Description: This plugin add translucent option to block editor toolbar.
* Requires at least: 5.7
* Requires PHP: 7.4
* Version: 1.1.1
* Author: Makoto Nakao
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: low-key-toolbar
* Domain Path /languages
*
* @package create-block
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Define constant value.
*/
define( 'LOW_KEY_TOOLBAR_VERSION', '1.1.1' );
define( 'LOW_KEY_TOOLBAR_OPACITY', 0.4 );
define( 'LOW_KEY_TOOLBAR_SCALE', 0.6 );
define( 'LOW_KEY_TOOLBAR_MARGIN', 0 ); // default margin
define( 'LOW_KEY_TOOLBAR_ON_FLG', false );
define( 'LOW_KEY_TOOLBAR_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
/**
* The code that runs during plugin activation.
*/
function activate_low_key_toolbar() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-low-key-toolbar-activator.php';
Low_Key_Toolbar_Activator::activate();
}
/**
* The core plugin class
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-low-key-toolbar.php';
/**
* Begins execution of the plugin.
*
* @since 1.0.0
*/
function run_low_key_toolbar() {
$plugin = new Low_Key_Toolbar();
$plugin->run();
}
run_low_key_toolbar();