PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution / trunk
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution vtrunk
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 / core / register / widget-list.php
shopengine / core / register Last commit date
base.php 4 years ago model.php 4 years ago module-list.php 3 years ago widget-list.php 1 day ago
widget-list.php
434 lines
1 <?php
2
3 namespace ShopEngine\Core\Register;
4
5 defined('ABSPATH') || exit;
6
7 class Widget_List extends \ShopEngine\Base\List_Model {
8
9 use \ShopEngine\Traits\Singleton;
10
11 protected $list_type = 'widgets';
12 protected $generate_base_class = true;
13
14 protected function raw_list() {
15 return array_merge( [
16 'additional-information' => [
17 'slug' => 'additional-information',
18 'title' => esc_html__('Additional Information', 'shopengine'),
19 'package' => 'free',
20 ],
21 'add-to-cart' => [
22 'slug' => 'add-to-cart',
23 'title' => esc_html__('Add To Cart', 'shopengine'),
24 'package' => 'free',
25 ],
26 'archive-description' => [
27 'slug' => 'archive-description',
28 'title' => esc_html__('Archive Description', 'shopengine'),
29 'package' => 'free',
30 ],
31 'archive-products' => [
32 'slug' => 'archive-products',
33 'title' => esc_html__('Archive Products', 'shopengine'),
34 'package' => 'free',
35 ],
36 'archive-title' => [
37 'slug' => 'archive-title',
38 'title' => esc_html__('Archive Title', 'shopengine'),
39 'package' => 'free',
40 ],
41 'archive-result-count' => [
42 'slug' => 'archive-result-count',
43 'title' => esc_html__('Archive Result Count', 'shopengine'),
44 'package' => 'free',
45 ],
46 'archive-view-mode' => [
47 'slug' => 'archive-view-mode',
48 'title' => esc_html__('Archive View Mode', 'shopengine'),
49 'package' => 'free',
50 ],
51 'filter-orderby' => [
52 'slug' => 'filter-orderby',
53 'title' => esc_html__('Order By Filter', 'shopengine'),
54 'package' => 'free',
55 ],
56 'filter-products-per-page' => [
57 'slug' => 'filter-products-per-page',
58 'title' => esc_html__('Products Per Page Filter', 'shopengine'),
59 'package' => 'free',
60 ],
61 'breadcrumbs' => [
62 'slug' => 'breadcrumbs',
63 'title' => esc_html__('Breadcrumbs', 'shopengine'),
64 'package' => 'free',
65 ],
66 'cart-table' => [
67 'slug' => 'cart-table',
68 'title' => esc_html__('Cart Table', 'shopengine'),
69 'package' => 'free',
70 ],
71 'cart-totals' => [
72 'slug' => 'cart-totals',
73 'title' => esc_html__('Cart Total', 'shopengine'),
74 'package' => 'free',
75 ],
76 'checkout-coupon-form' => [
77 'slug' => 'checkout-coupon-form',
78 'title' => esc_html__('Checkout Form-Coupon', 'shopengine'),
79 'package' => 'free',
80 ],
81 'checkout-form-additional' => [
82 'slug' => 'checkout-form-additional',
83 'title' => esc_html__('Checkout Form - Additional', 'shopengine'),
84 'package' => 'free',
85 ],
86 'checkout-form-billing' => [
87 'slug' => 'checkout-form-billing',
88 'title' => esc_html__('Checkout Form - Billing', 'shopengine'),
89 'package' => 'free',
90 ],
91 'checkout-form-shipping' => [
92 'slug' => 'checkout-form-shipping',
93 'title' => esc_html__('Checkout Form - Shipping', 'shopengine'),
94 'package' => 'free',
95 ],
96 'checkout-payment' => [
97 'slug' => 'checkout-payment',
98 'title' => esc_html__('Checkout Payment', 'shopengine'),
99 'package' => 'free',
100 ],
101 'checkout-review-order' => [
102 'slug' => 'checkout-review-order',
103 'title' => esc_html__('Order Review', 'shopengine'),
104 'package' => 'free',
105 ],
106 'checkout-shipping-methods' => [
107 'slug' => 'checkout-shipping-methods',
108 'title' => esc_html__('Checkout Shipping Methods', 'shopengine'),
109 'package' => 'free',
110 ],
111 'cross-sells' => [
112 'slug' => 'cross-sells',
113 'title' => esc_html__('Cross-Sell', 'shopengine'),
114 'package' => 'free',
115 ],
116 'product-categories' => [
117 'slug' => 'product-categories',
118 'title' => esc_html__('Product Categories', 'shopengine'),
119 'package' => 'free',
120 ],
121 'product-description' => [
122 'slug' => 'product-description',
123 'title' => esc_html__('Product Description', 'shopengine'),
124 'package' => 'free',
125 ],
126 'product-excerpt' => [
127 'slug' => 'product-excerpt',
128 'title' => esc_html__('Product Excerpt', 'shopengine'),
129 'package' => 'free',
130 ],
131 'product-image' => [
132 'slug' => 'product-image',
133 'title' => esc_html__('Product Image', 'shopengine'),
134 'package' => 'free',
135 ],
136 'product-meta' => [
137 'slug' => 'product-meta',
138 'title' => esc_html__('Product Meta', 'shopengine'),
139 'package' => 'free',
140 ],
141 'product-price' => [
142 'slug' => 'product-price',
143 'title' => esc_html__('Product Price', 'shopengine'),
144 'package' => 'free',
145 ],
146 'product-review' => [
147 'slug' => 'product-review',
148 'title' => esc_html__('Product Review', 'shopengine'),
149 'package' => 'free',
150 ],
151 'product-share' => [
152 'slug' => 'product-share',
153 'title' => esc_html__('Product Share', 'shopengine'),
154 'package' => 'free',
155 ],
156 'product-sku' => [
157 'slug' => 'product-sku',
158 'title' => esc_html__('Product SKU', 'shopengine'),
159 'package' => 'free',
160 ],
161 'product-stock' => [
162 'slug' => 'product-stock',
163 'title' => esc_html__('Product Stock', 'shopengine'),
164 'package' => 'free',
165 ],
166 'product-tabs' => [
167 'slug' => 'product-tabs',
168 'title' => esc_html__('Product Tabs', 'shopengine'),
169 'package' => 'free',
170 ],
171 'product-tags' => [
172 'slug' => 'product-tags',
173 'title' => esc_html__('Product Tags', 'shopengine'),
174 'package' => 'free',
175 ],
176 'product-title' => [
177 'slug' => 'product-title',
178 'title' => esc_html__('Product Title', 'shopengine'),
179 'package' => 'free',
180 ],
181 'call-for-price' => [
182 'slug' => 'call-for-price',
183 'title' => esc_html__('Call for Price', 'shopengine'),
184 'package' => 'free',
185 ],
186 'qr-code' => [
187 'slug' => 'qr-code',
188 'title' => esc_html__('QR Code', 'shopengine'),
189 'package' => 'free',
190 ],
191 'product-rating' => [
192 'slug' => 'product-rating',
193 'title' => esc_html__('Rating', 'shopengine'),
194 'package' => 'free',
195 ],
196 'related' => [
197 'slug' => 'related',
198 'title' => esc_html__('Related Product', 'shopengine'),
199 'package' => 'free',
200 ],
201 'return-to-shop' => [
202 'slug' => 'return-to-shop',
203 'title' => esc_html__('Return To Shop', 'shopengine'),
204 'package' => 'free',
205 ],
206 'up-sells' => [
207 'slug' => 'up-sells',
208 'title' => esc_html__('Upsell', 'shopengine'),
209 'package' => 'free',
210 ],
211 'advanced-search' => [
212 'slug' => 'advanced-search',
213 'title' => esc_html__('Advanced Search', 'shopengine'),
214 'package' => 'free',
215 ],
216 'deal-products' => [
217 'slug' => 'deal-products',
218 'title' => esc_html__('Deal Products', 'shopengine'),
219 'package' => 'free',
220 ],
221 'empty-cart-message' => [
222 'slug' => 'empty-cart-message',
223 'title' => esc_html__('Empty Cart Message', 'shopengine'),
224 'package' => 'free',
225 ],
226 'filterable-product-list' => [
227 'slug' => 'filterable-product-list',
228 'title' => esc_html__('Filterable Product List', 'shopengine'),
229 'package' => 'free',
230 ],
231 'product-category-lists' => [
232 'slug' => 'product-category-lists',
233 'title' => esc_html__('Product Category List', 'shopengine'),
234 'package' => 'free',
235 ],
236 'product-list' => [
237 'slug' => 'product-list',
238 'title' => esc_html__('Product List', 'shopengine'),
239 'package' => 'free',
240 ],
241 'recently-viewed-products' => [
242 'slug' => 'recently-viewed-products',
243 'title' => esc_html__('Recently Viewed Products', 'shopengine'),
244 'package' => 'free',
245 ],
246 'view-single-product' => [
247 'slug' => 'view-single-product',
248 'title' => esc_html__('View Single Product', 'shopengine'),
249 'package' => 'free',
250 ],
251 'notice' => [
252 'slug' => 'notice',
253 'title' => esc_html__('Notice', 'shopengine'),
254 'package' => 'free',
255 ],
256 'checkout-form-login' => [
257 'slug' => 'checkout-form-login',
258 'title' => esc_html__('Checkout Form Login', 'shopengine'),
259 'package' => 'free'
260 ]
261 ],
262 $this->pro_list_for_free()
263 );
264 }
265
266
267 private function pro_list_for_free(){
268
269 if( class_exists('ShopEngine_Pro') ){
270 return [];
271 }
272
273 return [
274
275 'account-dashboard' => [
276 'slug' => 'account-dashboard',
277 'title' => esc_html__( 'Account Dashboard', 'shopengine' ),
278 'package' => 'pro-disabled',
279 'categories' => ['shopengine-my_account'],
280 ],
281 'account-address' => [
282 'slug' => 'account-address',
283 'title' => esc_html__( 'Account Address', 'shopengine' ),
284 'package' => 'pro-disabled',
285 'categories' => ['shopengine-my_account'],
286 ],
287 'account-details' => [
288 'slug' => 'account-details',
289 'title' => esc_html__( 'Account Details', 'shopengine' ),
290 'package' => 'pro-disabled',
291 'categories' => ['shopengine-my_account'],
292 ],
293 'account-downloads' => [
294 'slug' => 'account-downloads',
295 'title' => esc_html__( 'Account Downloads', 'shopengine' ),
296 'package' => 'pro-disabled',
297 'categories' => ['shopengine-my_account'],
298 ],
299 'account-form-login' => [
300 'slug' => 'account-form-login',
301 'title' => esc_html__( 'Account Form - Login', 'shopengine' ),
302 'package' => 'pro-disabled',
303 'categories' => ['shopengine-my_account'],
304 ],
305 'account-form-register' => [
306 'slug' => 'account-form-register',
307 'title' => esc_html__( 'Account Form - Register', 'shopengine' ),
308 'package' => 'pro-disabled',
309 'categories' => ['shopengine-my_account'],
310 ],
311 'account-logout' => [
312 'slug' => 'account-logout',
313 'title' => esc_html__( 'Account Logout', 'shopengine' ),
314 'package' => 'pro-disabled',
315 'categories' => ['shopengine-my_account'],
316 ],
317 'account-navigation' => [
318 'slug' => 'account-navigation',
319 'title' => esc_html__( 'Account Navigation', 'shopengine' ),
320 'package' => 'pro-disabled',
321 'categories' => ['shopengine-my_account'],
322 ],
323 'account-order-details' => [
324 'slug' => 'account-order-details',
325 'title' => esc_html__( 'Account Order - Details', 'shopengine' ),
326 'package' => 'pro-disabled',
327 'categories' => ['shopengine-my_account'],
328 ],
329 'account-orders' => [
330 'slug' => 'account-orders',
331 'title' => esc_html__( 'Account Orders', 'shopengine' ),
332 'package' => 'pro-disabled',
333 'categories' => ['shopengine-my_account'],
334 ],
335 'account-wishlist' => [
336 'slug' => 'account-wishlist',
337 'title' => esc_html__( 'Account Wishlist', 'shopengine' ),
338 'package' => 'pro-disabled',
339 'categories' => ['shopengine-my_account'],
340 ],
341 'account-payment-methods' => [
342 'slug' => 'account-payment-methods',
343 'title' => esc_html__( 'Account Payment Methods', 'shopengine' ),
344 'package' => 'pro-disabled',
345 'categories' => ['shopengine-my_account'],
346 ],
347 'categories' => [
348 'slug' => 'categories',
349 'title' => esc_html__( 'Categories', 'shopengine' ),
350 'package' => 'pro-disabled',
351 'categories' => ['shopengine-general'],
352 ],
353 'product-filters' => [
354 'slug' => 'product-filters',
355 'title' => esc_html__( 'Product Filters', 'shopengine' ),
356 'package' => 'pro-disabled',
357 'categories' => ['shopengine-archive'],
358 ],
359 'thankyou-address-details' => [
360 'slug' => 'thankyou-address-details',
361 'title' => esc_html__( 'Thank You Address Details', 'shopengine' ),
362 'package' => 'pro-disabled',
363 'categories' => ['shopengine-order'],
364 ],
365 'thankyou-order-confirm' => [
366 'slug' => 'thankyou-order-confirm',
367 'title' => esc_html__( 'Order Confirm', 'shopengine' ),
368 'package' => 'pro-disabled',
369 'categories' => ['shopengine-order'],
370 ],
371 'thankyou-order-details' => [
372 'slug' => 'thankyou-order-details',
373 'title' => esc_html__( 'Order Details', 'shopengine' ),
374 'package' => 'pro-disabled',
375 'categories' => ['shopengine-order'],
376 ],
377 'thankyou-thankyou' => [
378 'slug' => 'thankyou-thankyou',
379 'title' => esc_html__( 'Order Thank You', 'shopengine' ),
380 'package' => 'pro-disabled',
381 'categories' => ['shopengine-order'],
382 ],
383 'currency-switcher' => [
384 'slug' => 'currency-switcher',
385 'title' => esc_html__('Currency Switcher', 'shopengine'),
386 'package' => 'pro-disabled',
387 'categories' => ['shopengine-general'],
388 ],
389 'flash-sale-products' => [
390 'slug' => 'flash-sale-products',
391 'title' => esc_html__('Flash Sale Products', 'shopengine'),
392 'package' => 'pro-disabled',
393 'categories' => ['shopengine-general'],
394 ],
395 'best-selling-product' => [
396 'slug' => 'best-selling-product',
397 'title' => esc_html__('Best Selling Product', 'shopengine'),
398 'package' => 'pro-disabled',
399 'categories' => ['shopengine-general'],
400 ],
401 'comparison-button' => [
402 'slug' => 'comparison-button',
403 'title' => esc_html__('Comparison Button', 'shopengine'),
404 'package' => 'pro-disabled',
405 'categories' => ['shopengine-general'],
406 ],
407 'product-size-charts' => [
408 'slug' => 'product-size-charts',
409 'title' => esc_html__('Product Size Chart', 'shopengine'),
410 'package' => 'pro-disabled',
411 'categories' => ['shopengine-single']
412 ],
413 'vacation' => [
414 'slug' => 'vacation',
415 'title' => esc_html__('Vacation', 'shopengine'),
416 'package' => 'pro-disabled',
417 'categories' => ['shopengine-general']
418 ],
419 'advanced-coupon' => [
420 'slug' => 'advanced-coupon',
421 'title' => esc_html__('Advanced Coupon', 'shopengine'),
422 'package' => 'pro-disabled',
423 'categories' => ['shopengine-general']
424 ],
425 'product-carousel' => [
426 'slug' => 'product-carousel',
427 'title' => esc_html__('Product Carousel', 'shopengine'),
428 'package' => 'pro-disabled',
429 'categories' => ['shopengine-general']
430 ]
431 ];
432 }
433 }
434