-
Notifications
You must be signed in to change notification settings - Fork 0
/
ramphor-central-stock.php
executable file
·100 lines (81 loc) · 2.56 KB
/
ramphor-central-stock.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
<?php
/**
* ATUM Inventory Management for WooCommerce
*
* @link https://www.stockmanagementlabs.com/
* @since 0.0.1
* @package Atum
*
* @wordpress-plugin
* Plugin Name: Ramphor Central Stock
* Plugin URI: https://www.stockmanagementlabs.com/
* Description: The ultimate stock management plugin for serious WooCommerce sellers
* Version: 1.9.1
* Author: Stock Management Labs™
* Author URI: https://www.stockmanagementlabs.com/
* Contributors: Be Rebel Studio - https://berebel.io
* Requires at least: 5.0
* Tested up to: 5.7.2
* Requires PHP: 5.6
* WC requires at least: 3.6.0
* WC tested up to: 5.4.1
* Text Domain: ramphor-central-stock
* Domain Path: /languages
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
defined( 'ABSPATH' ) || die;
if ( ! defined( 'ATUM_VERSION' ) ) {
define( 'ATUM_VERSION', '1.9.1' );
}
if ( ! defined( 'ATUM_WC_MINIMUM_VERSION' ) ) {
define( 'ATUM_WC_MINIMUM_VERSION', '3.6.0' );
}
if ( ! defined( 'ATUM_WP_MINIMUM_VERSION' ) ) {
define( 'ATUM_WP_MINIMUM_VERSION', '5.0.0' );
}
if ( ! defined( 'ATUM_PHP_MINIMUM_VERSION' ) ) {
define( 'ATUM_PHP_MINIMUM_VERSION', '5.6' );
}
if ( ! defined( 'ATUM_PATH' ) ) {
define( 'ATUM_PATH', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'ATUM_URL' ) ) {
define( 'ATUM_URL', plugin_dir_url( __FILE__ ) );
}
if ( ! defined( 'ATUM_BASENAME' ) ) {
define( 'ATUM_BASENAME', plugin_basename( __FILE__ ) );
}
if ( ! defined( 'ATUM_TEXT_DOMAIN' ) ) {
define( 'ATUM_TEXT_DOMAIN', 'atum-stock-manager-for-woocommerce' );
}
if ( ! defined( 'ATUM_SHORT_NAME' ) ) {
define( 'ATUM_SHORT_NAME', 'atum' );
}
if ( ! defined( 'ATUM_PREFIX' ) ) {
define( 'ATUM_PREFIX', 'atum_' );
}
if ( ! defined( 'ATUM_DEBUG' ) ) {
define( 'ATUM_DEBUG', FALSE );
}
// Check minimum PHP version required.
if ( version_compare( phpversion(), ATUM_PHP_MINIMUM_VERSION, '<' ) ) {
add_action( 'admin_notices', function() {
?>
<div class="error fade">
<p>
<strong>
<?php
/* translators: the minimum PHP version */
echo esc_html( sprintf( __( 'ATUM requires PHP version %s or greater. Please, update or contact your hosting provider.', ATUM_TEXT_DOMAIN ), ATUM_PHP_MINIMUM_VERSION ) ); ?>
</strong>
</p>
</div>
<?php
} );
}
else {
// Use Composer's autoloader and PSR4 for naming convention.
require ATUM_PATH . 'vendor/autoload.php';
\Atum\Bootstrap::get_instance();
}