-
Notifications
You must be signed in to change notification settings - Fork 0
/
the-2nd-toolbar.php
41 lines (37 loc) · 1.1 KB
/
the-2nd-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
<?php
/**
* Plugin Name: The 2nd toolbar
* Plugin URI: https://wp.tekapo.com/the-2nd-toobar/
* Description: A WordPress plugin that shows the 2nd toolbar just below the default toolbar.
* Author: JOTAKI, Taisuke
* Author URI: https://tekapo.com/
* Text Domain: the-2nd-toolbar
* Domain Path: /languages
* Version: 0.1.0
*
* @package Tne_2nd_Toolbar
*
* @todo
*
* Create the default settings like where am I now.
*
* Done
*
* Create the settings page, class-settings-page.php
* Change the file name, class-output-notice-msg.php to class-output-the-2nd-toolbar.php
*
*/
require_once( __DIR__ . '/includes/class-options-page.php' );
require_once( __DIR__ . '/includes/class-output-the-2nd-toolbar.php' );
define( 'WP_T2T_PLUGIN_DIR_URL', plugins_url( '', __FILE__ ) );
define( 'WP_T2T_PLUGIN_DIR_PATH', __DIR__ );
define( 'WP_T2T_PLUGIN_FILE_PATH', __FILE__ );
load_plugin_textdomain(
'the-2nd-toolbar',
false,
dirname( plugin_basename( __FILE__ ) ) . '/languages/'
);
if ( is_admin() ) {
new Class_Options_Page();
}
new Output_The_2nd_Toolbar();