PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution / 3.1.1
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution v3.1.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 3 years ago base 3 years ago compatibility 3 years ago core 3 years ago languages 3 years ago libs 3 years ago modules 3 years ago traits 3 years ago utils 3 years ago widgets 3 years ago autoloader.php 3 years ago phpcs.xml 3 years ago plugin.php 3 years ago readme.txt 3 years ago shopengine.php 3 years ago
shopengine.php
310 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: 3.1.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 require_once __DIR__ . '/utils/global-helper.php';
22
23
24 final class ShopEngine {
25
26 const SHOPENGINE_PREFIX = 'shopengine-builder';
27
28 /**
29 * Plugin Version
30 *
31 * @return string
32 * @since 1.0.0
33 *
34 */
35 public static function version() {
36 return '3.1.1';
37 }
38
39
40 /**
41 * Package type
42 *
43 * @return string
44 * @since 1.0.0
45 *
46 */
47 public static function package_type() {
48 return apply_filters('shopengine/core/package_type', 'free');
49 }
50
51 public static function landing_page($part = 'pricing') {
52 $site = trailingslashit('https://wpmet.com/plugin/shopengine/' . $part);
53
54 return $site;
55 }
56
57
58 static function license_status() {
59
60 if(!class_exists('ShopEngine_Pro')) {
61 return 'invalid';
62 }
63
64 if(ShopEngine\Libs\License\Helper::instance()->status() != 'valid') {
65 return 'invalid';
66 }
67
68 return 'valid';
69 }
70
71 public static function license_data() {
72 if(!class_exists('\ElementsKit_Lite\Libs\Framework\Classes\Utils')) {
73 return [
74 'key' => '',
75 'checksum' => '',
76 'plugin_package' => self::package_type(),
77 ];
78 }
79
80 return array_merge(
81 ShopEngine\Libs\License\Helper::instance()->get_license(),
82 ['plugin_package' => self::package_type()]
83 );
84 }
85
86
87 /**
88 * Product ID
89 *
90 * @return string
91 * @since 1.0.0
92 *
93 */
94 static function product_id() {
95 return '0';
96 }
97
98
99 /**
100 * Plugin Author Name
101 *
102 * @return string
103 * @since 1.0.0
104 *
105 */
106 static function author_name() {
107 return 'Wpmet';
108 }
109
110 public static function store_name() {
111 return 'wpmet';
112 }
113
114
115 /**
116 * Minimum Elementor Version required to run the plugin.
117 *
118 * @return string
119 * @since 1.0.0
120 *
121 */
122 public static function min_el_version() {
123 return '3.0.0';
124 }
125
126
127 /**
128 * Minimum PHP Version required to run the plugin
129 *
130 * @return string
131 * @since 1.0.0
132 *
133 */
134 public static function min_php_version() {
135 return '7.0';
136 }
137
138
139 /**
140 * Minimum Woocommerce version required to run the plugin.
141 *
142 * @return string
143 * @since 1.0.0
144 *
145 */
146 public static function min_woo_version() {
147 return '4.1';
148 }
149
150
151 /**
152 * Plugin file plugins's root file.
153 *
154 * @return string
155 * @since 1.0.0
156 *
157 */
158 public static function plugin_file() {
159 return __FILE__;
160 }
161
162
163 /**
164 * Plugin url
165 *
166 * @return mixed
167 * @since 1.0.0
168 */
169 public static function plugin_url() {
170 return trailingslashit(plugin_dir_url(__FILE__));
171 }
172
173
174 /**
175 * Plugin dir
176 *
177 * @return mixed
178 * @since 1.0.0
179 */
180 public static function plugin_dir() {
181 return trailingslashit(plugin_dir_path(__FILE__));
182 }
183
184
185 /**
186 * Plugin's widget directory.
187 *
188 * @return string
189 * @since 1.0.0
190 */
191 public static function widget_dir() {
192 return self::plugin_dir() . 'widgets/';
193 }
194
195
196 /**
197 * Plugin's widget url.
198 *
199 * @return string
200 * @since 1.0.0
201 */
202 public static function widget_url() {
203 return self::plugin_url() . 'widgets/';
204 }
205
206 /**
207 * Plugin's widget directory.
208 *
209 * @return string
210 * @since 1.0.0
211 */
212 public static function module_dir() {
213 return self::plugin_dir() . 'modules/';
214 }
215
216
217 /**
218 * Plugin's widget url.
219 *
220 * @return string
221 * @since 1.0.0
222 */
223 public static function module_url() {
224 return self::plugin_url() . 'modules/';
225 }
226
227
228 /**
229 * Plugin core directory
230 *
231 * @return string
232 * @since 1.0.0
233 */
234 public static function core_dir() {
235 return self::plugin_dir() . 'core/';
236 }
237
238 /**
239 * Plugin core url
240 *
241 * @return string
242 * @since 1.0.0
243 */
244 public static function core_url() {
245 return self::plugin_url() . 'core/';
246 }
247
248
249 /**
250 *
251 * @return string
252 * @since 1.0.0
253 */
254 public static function views_dir() {
255 return self::plugin_dir() . 'views/';
256 }
257
258
259 /**
260 * Constructor
261 *
262 * @since 1.0.0
263 * @access public
264 */
265 public function __construct() {
266 add_action('init', [$this, 'i18n']);
267 add_action('plugins_loaded', [$this, 'init'], 100);
268 }
269
270
271 /**
272 * Load text domain
273 *
274 * Load plugin localization files.
275 * Fired by `init` action hook.
276 *
277 * @since 1.0.0
278 * @access public
279 */
280 public function i18n() {
281
282 load_plugin_textdomain('shopengine', false, self::plugin_dir() . 'languages/');
283 }
284
285
286 public function init() {
287 do_action('shopengine/before_loaded');
288 ShopEngine\Plugin::instance()->init();
289 do_action('shopengine/after_loaded');
290 }
291 }
292
293
294 new ShopEngine();
295
296 function activate_shopengine() {
297
298 \ShopEngine\Core\Template_Cpt::instance()->init();
299
300 flush_rewrite_rules();
301 }
302
303
304 function deactivate_shopengine() {}
305
306 register_activation_hook(__FILE__, 'activate_shopengine');
307
308 register_deactivation_hook(__FILE__, 'deactivate_shopengine');
309
310