-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaione-app-builder.php
128 lines (112 loc) · 3.39 KB
/
aione-app-builder.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
/**
*
* @link www.oxosolutions.com
* @since 1.0.2
* @package Aione_App_Builder
*
* @wordpress-plugin
* Plugin Name: Aione App Builder
* Plugin URI: http://oxosolutions.com/products/wordpress-plugins/aione-app-builder/
* Description: Easily create custom post types and taxonomy and connect everything together.
* Version: 2.1.0.0
* Author: OXO Solutions®
* Author URI: https://oxosolutions.com/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: aione-app-builder
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/oxosolutions/aione-app-builder
* GitHub Branch: master
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Currently plugin version.
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
if ( ! defined( 'AIONE_PLUGIN_NAME' ) ) {
define( 'AIONE_PLUGIN_NAME', 'Aione App Builder' );
}
if ( ! defined( 'AIONE_VERSION' ) ) {
define( 'AIONE_VERSION', '2.1.0.0' );
}
/*
* Path Constants
*/
if ( ! defined( 'AIONE_DIR_PATH' ) ) {
define( 'AIONE_DIR_PATH', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'AIONE_DIR_URL' ) ) {
define( 'AIONE_DIR_URL', plugin_dir_url( __FILE__ ) );
}
if ( ! defined( 'AIONE_FILE' ) ) {
define( 'AIONE_FILE', plugin_basename( __FILE__ ) );
}
if ( ! defined( 'AIONE_ABSPATH' ) ) {
define( 'AIONE_ABSPATH', dirname( __FILE__ ) );
}
/**
* last edit flag
*/
if ( !defined('AIONE_EDIT_LAST' )){
define( 'AIONE_EDIT_LAST', '_aione_edit_last');
}
/**
* last author
*/
if ( !defined('AIONE_AUTHOR' )){
define( 'AIONE_AUTHOR', '_aione_author_id');
}
/*
*
* Forced priority
*/
if ( !defined( 'AIONE_INIT_PRIORITY' ) ) {
// Early start ( some plugins use 'init' with priority 0 ).
define( 'AIONE_INIT_PRIORITY', -1 );
}
if ( !defined( 'AIONE_API_KEY' ) ) {
define( 'AIONE_API_KEY', 'AIzaSyAjyDspiPfzEfjRSS5fQzm-3jHFjHxeXB4' );
}
/**
* The code that runs during plugin activation.
* This action is documented in includes/class-aione-app-builder-activator.php
*/
function activate_aione_app_builder() {
require_once AIONE_DIR_PATH. 'includes/class-aione-app-builder-activator.php';
Aione_App_Builder_Activator::activate();
}
/**
* The code that runs during plugin deactivation.
* This action is documented in includes/class-aione-app-builder-deactivator.php
*/
function deactivate_aione_app_builder() {
require_once AIONE_DIR_PATH . 'includes/class-aione-app-builder-deactivator.php';
Aione_App_Builder_Deactivator::deactivate();
}
register_activation_hook( __FILE__, 'activate_aione_app_builder' );
register_deactivation_hook( __FILE__, 'deactivate_aione_app_builder' );
/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-aione-app-builder.php';
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*
* @since 1.0.0
*/
function run_aione_app_builder() {
$plugin = new Aione_App_Builder();
$plugin->run();
$GLOBALS['aione'] = new stdClass();
}
run_aione_app_builder();