PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution / 1.2.1
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution v1.2.1
4.9.1 4.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.0 2.5.1 3.0.0 3.1.0 3.1.1 4.0.0 4.0.1 4.1.0 4.1.1 4.2.0 4.2.1 4.3.0 4.3.1 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.6.9 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.7.8 4.7.9 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.8.9 trunk 0.1.2-beta 0.1.3-beta 0.1.4-beta 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.5.0 1.5.1 1.6.0 1.6.1 1.7.0 1.8.0 1.8.1 1.9.0
shopengine / shopengine.php
shopengine Last commit date
assets 4 years ago base 4 years ago compatibility 4 years ago core 4 years ago languages 4 years ago libs 4 years ago modules 4 years ago traits 5 years ago utils 4 years ago widgets 4 years ago autoloader.php 5 years ago plugin.php 4 years ago readme.txt 4 years ago shopengine.php 4 years ago
shopengine.php
306 lines
1 <?php
2
3 /**
4 * Plugin Name: ShopEngine
5 * Plugin URI: https://wpmet.com/plugin/shopengine
6 * Description: ShopEngine is the most-complete WooCommerce template builder for Elementor. It helps you build and customize the single product page, cart page, archive page, checkout page, order page, my account page, and thank-you page from scratch. It also packed with product comparison, wishlist, quick view, and variation swatches etc.
7 * Version: 1.2.1
8 * Author: Wpmet
9 * Author URI: https://wpmet.com
10 * Text Domain: shopengine
11 * Domain Path: /languages
12 * License: GPLv3
13 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
14 */
15
16
17 defined('ABSPATH') || exit;
18
19
20 require_once __DIR__ . '/autoloader.php';
21
22
23 final class ShopEngine {
24
25 const SHOPENGINE_PREFIX = 'shopengine-builder';
26
27 /**
28 * Plugin Version
29 *
30 * @return string
31 * @since 1.0.0
32 *
33 */
34 public static function version() {
35 return '1.2.1';
36 }
37
38
39 /**
40 * Package type
41 *
42 * @return string
43 * @since 1.0.0
44 *
45 */
46 public static function package_type() {
47 return apply_filters('shopengine/core/package_type', 'free');
48 }
49
50
51 static function license_status() {
52
53 if(!class_exists('ShopEngine_Pro')) {
54 return 'invalid';
55 }
56
57 if(ShopEngine\Libs\License\Helper::instance()->status() != 'valid') {
58 return 'invalid';
59 }
60
61 return 'valid';
62 }
63
64 public static function license_data() {
65 if(!class_exists('\ElementsKit_Lite\Libs\Framework\Classes\Utils')) {
66 return [
67 'key' => '',
68 'checksum' => '',
69 'plugin_package' => self::package_type(),
70 ];
71 }
72
73 return array_merge(
74 ShopEngine\Libs\License\Helper::instance()->get_license(),
75 ['plugin_package' => self::package_type()]
76 );
77 }
78
79
80 /**
81 * Product ID
82 *
83 * @return string
84 * @since 1.0.0
85 *
86 */
87 static function product_id() {
88 return '0';
89 }
90
91
92 /**
93 * Plugin Author Name
94 *
95 * @return string
96 * @since 1.0.0
97 *
98 */
99 static function author_name() {
100 return 'Wpmet';
101 }
102
103 public static function store_name() {
104 return 'wpmet';
105 }
106
107
108 /**
109 * Minimum Elementor Version required to run the plugin.
110 *
111 * @return string
112 * @since 1.0.0
113 *
114 */
115 public static function min_el_version() {
116 return '3.0.0';
117 }
118
119
120 /**
121 * Minimum PHP Version required to run the plugin
122 *
123 * @return string
124 * @since 1.0.0
125 *
126 */
127 public static function min_php_version() {
128 return '7.0';
129 }
130
131
132 /**
133 * Minimum Woocommerce version required to run the plugin.
134 *
135 * @return string
136 * @since 1.0.0
137 *
138 */
139 public static function min_woo_version() {
140 return '4.1';
141 }
142
143
144 /**
145 * Plugin file plugins's root file.
146 *
147 * @return string
148 * @since 1.0.0
149 *
150 */
151 public static function plugin_file() {
152 return __FILE__;
153 }
154
155
156 /**
157 * Plugin url
158 *
159 * @return mixed
160 * @since 1.0.0
161 */
162 public static function plugin_url() {
163 return trailingslashit(plugin_dir_url(__FILE__));
164 }
165
166
167 /**
168 * Plugin dir
169 *
170 * @return mixed
171 * @since 1.0.0
172 */
173 public static function plugin_dir() {
174 return trailingslashit(plugin_dir_path(__FILE__));
175 }
176
177
178 /**
179 * Plugin's widget directory.
180 *
181 * @return string
182 * @since 1.0.0
183 */
184 public static function widget_dir() {
185 return self::plugin_dir() . 'widgets/';
186 }
187
188
189 /**
190 * Plugin's widget url.
191 *
192 * @return string
193 * @since 1.0.0
194 */
195 public static function widget_url() {
196 return self::plugin_url() . 'widgets/';
197 }
198
199 /**
200 * Plugin's widget directory.
201 *
202 * @return string
203 * @since 1.0.0
204 */
205 public static function module_dir() {
206 return self::plugin_dir() . 'modules/';
207 }
208
209
210 /**
211 * Plugin's widget url.
212 *
213 * @return string
214 * @since 1.0.0
215 */
216 public static function module_url() {
217 return self::plugin_url() . 'modules/';
218 }
219
220
221 /**
222 * Plugin core directory
223 *
224 * @return string
225 * @since 1.0.0
226 */
227 public static function core_dir() {
228 return self::plugin_dir() . 'core/';
229 }
230
231 /**
232 * Plugin core url
233 *
234 * @return string
235 * @since 1.0.0
236 */
237 public static function core_url() {
238 return self::plugin_url() . 'core/';
239 }
240
241
242 /**
243 *
244 * @return string
245 * @since 1.0.0
246 */
247 public static function views_dir() {
248 return self::plugin_dir() . 'views/';
249 }
250
251
252 /**
253 * Constructor
254 *
255 * @since 1.0.0
256 * @access public
257 */
258 public function __construct() {
259 add_action('init', [$this, 'i18n']);
260 add_action('plugins_loaded', [$this, 'init'], 100);
261 }
262
263
264 /**
265 * Load text domain
266 *
267 * Load plugin localization files.
268 * Fired by `init` action hook.
269 *
270 * @since 1.0.0
271 * @access public
272 */
273 public function i18n() {
274
275 load_plugin_textdomain('shopengine', false, self::plugin_dir() . 'languages/');
276 }
277
278
279 public function init() {
280 do_action('shopengine/before_loaded');
281 ShopEngine\Plugin::instance()->init();
282 do_action('shopengine/after_loaded');
283 }
284 }
285
286
287 new ShopEngine();
288
289
290 function activate_shopengine() {
291
292 \ShopEngine\Core\Template_Cpt::instance()->init();
293
294 flush_rewrite_rules();
295 }
296
297
298 function deactivate_shopengine() {
299
300 }
301
302 register_activation_hook(__FILE__, 'activate_shopengine');
303
304 register_deactivation_hook(__FILE__, 'deactivate_shopengine');
305
306