-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaster-css.php
42 lines (37 loc) · 1.17 KB
/
master-css.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
<?php
/**
* Master CSS
*
* @link https://oberonlai.blog
* @since 0.0.3
* @package MSC
*
* @wordpress-plugin
* Plugin Name: Master CSS
* Plugin URI: https://oberonlai.blog
* Description: Use the Master CSS right in the WordPress without any build step. Learn more about <a href="https://css.master.co">Master CSS</a>.
* Version: 0.0.1
* Author: Oberon Lai
* Author URI: https://oberonlai.blog
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: msc
* Domain Path: /languages
*/
defined( 'ABSPATH' ) || exit;
define( 'MSC_VERSION', '0.0.3' );
define( 'MSC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'MSC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'MSC_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
/**
* Autoload
*/
require_once MSC_PLUGIN_DIR . 'vendor/autoload.php';
\A7\autoload( MSC_PLUGIN_DIR . 'src' );
/**
* i18n
*/
add_action( 'plugin_loaded', 'msc_load_plugin_i18n' );
function msc_load_plugin_i18n() {
load_plugin_textdomain( 'msc', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
}