PluginProbe
JetStyleManager for Gutenberg / trunk
JetStyleManager for Gutenberg vtrunk
trunk 1.1.4 1.2.0 1.3.0 1.3.1 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9
jet-style-manager / jet-style-manager.php

jet-style-manager.php in JetStyleManager for Gutenberg trunk, at jet-style-manager.php

51 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: JetStyleManager
4 * Plugin URI: https://crocoblock.com
5 * Description: Style manager for Crocoblock plugins
6 * Version: 1.3.9
7 * Author: Crocoblock
8 * Author URI: https://crocoblock.com
9 * Text Domain: jet-styles-manager
10 * License: GPL-3.0+
11 * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
12 * Domain Path: /languages
13 */
14
15 // If this file is called directly, abort.
16 if ( ! defined( 'WPINC' ) ) {
17 die();
18 }
19
20 define( 'JET_SM_VERSION', '1.3.9' );
21 define( 'JET_SM__FILE__', __FILE__ );
22 define( 'JET_SM_PLUGIN_BASE', plugin_basename( JET_SM__FILE__ ) );
23 define( 'JET_SM_PATH', plugin_dir_path( JET_SM__FILE__ ) );
24 define( 'JET_SM_URL', plugins_url( '/', JET_SM__FILE__ ) );
25
26 add_action( 'plugins_loaded', 'jet_styles_manager_init' );
27 register_activation_hook( JET_SM__FILE__, 'jet_styles_manager_install' );
28
29 /**
30 * Returns plugin instance
31 *
32 * @return [type] [description]
33 */
34 function jet_styles_manager() {
35 return JET_SM\Plugin::instance();
36 }
37
38 function jet_styles_manager_init() {
39 require JET_SM_PATH . 'includes/plugin.php';
40 jet_styles_manager();
41 }
42
43 /**
44 * Install DB table
45 * @return [type] [description]
46 */
47 function jet_styles_manager_install() {
48 require JET_SM_PATH . 'includes/db.php';
49 JET_SM\DB::create_db_table();
50 }
51