PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution / 4.7.2
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution v4.7.2
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 2 years ago
widget-list.php
412 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 'product-rating' => [
182 'slug' => 'product-rating',
183 'title' => esc_html__('Rating', 'shopengine'),
184 'package' => 'free',
185 ],
186 'related' => [
187 'slug' => 'related',
188 'title' => esc_html__('Related Product', 'shopengine'),
189 'package' => 'free',
190 ],
191 'return-to-shop' => [
192 'slug' => 'return-to-shop',
193 'title' => esc_html__('Return To Shop', 'shopengine'),
194 'package' => 'free',
195 ],
196 'up-sells' => [
197 'slug' => 'up-sells',
198 'title' => esc_html__('Upsell', 'shopengine'),
199 'package' => 'free',
200 ],
201 'advanced-search' => [
202 'slug' => 'advanced-search',
203 'title' => esc_html__('Advanced Search', 'shopengine'),
204 'package' => 'free',
205 ],
206 'deal-products' => [
207 'slug' => 'deal-products',
208 'title' => esc_html__('Deal Products', 'shopengine'),
209 'package' => 'free',
210 ],
211 'empty-cart-message' => [
212 'slug' => 'empty-cart-message',
213 'title' => esc_html__('Empty Cart Message', 'shopengine'),
214 'package' => 'free',
215 ],
216 'filterable-product-list' => [
217 'slug' => 'filterable-product-list',
218 'title' => esc_html__('Filterable Product List', 'shopengine'),
219 'package' => 'free',
220 ],
221 'product-category-lists' => [
222 'slug' => 'product-category-lists',
223 'title' => esc_html__('Product Category List', 'shopengine'),
224 'package' => 'free',
225 ],
226 'product-list' => [
227 'slug' => 'product-list',
228 'title' => esc_html__('Product List', 'shopengine'),
229 'package' => 'free',
230 ],
231 'recently-viewed-products' => [
232 'slug' => 'recently-viewed-products',
233 'title' => esc_html__('Recently Viewed Products', 'shopengine'),
234 'package' => 'free',
235 ],
236 'view-single-product' => [
237 'slug' => 'view-single-product',
238 'title' => esc_html__('View Single Product', 'shopengine'),
239 'package' => 'free',
240 ],
241 'notice' => [
242 'slug' => 'notice',
243 'title' => esc_html__('Notice', 'shopengine'),
244 'package' => 'free',
245 ],
246 'checkout-form-login' => [
247 'slug' => 'checkout-form-login',
248 'title' => esc_html__('Checkout Form Login', 'shopengine'),
249 'package' => 'free'
250 ]
251 ],
252 $this->pro_list_for_free()
253 );
254 }
255
256
257 private function pro_list_for_free(){
258
259 if( class_exists('ShopEngine_Pro') ){
260 return [];
261 }
262
263 return [
264
265 'account-dashboard' => [
266 'slug' => 'account-dashboard',
267 'title' => esc_html__( 'Account Dashboard', 'shopengine' ),
268 'package' => 'pro-disabled',
269 'categories' => ['shopengine-my_account'],
270 ],
271 'account-address' => [
272 'slug' => 'account-address',
273 'title' => esc_html__( 'Account Address', 'shopengine' ),
274 'package' => 'pro-disabled',
275 'categories' => ['shopengine-my_account'],
276 ],
277 'account-details' => [
278 'slug' => 'account-details',
279 'title' => esc_html__( 'Account Details', 'shopengine' ),
280 'package' => 'pro-disabled',
281 'categories' => ['shopengine-my_account'],
282 ],
283 'account-downloads' => [
284 'slug' => 'account-downloads',
285 'title' => esc_html__( 'Account Downloads', 'shopengine' ),
286 'package' => 'pro-disabled',
287 'categories' => ['shopengine-my_account'],
288 ],
289 'account-form-login' => [
290 'slug' => 'account-form-login',
291 'title' => esc_html__( 'Account Form - Login', 'shopengine' ),
292 'package' => 'pro-disabled',
293 'categories' => ['shopengine-my_account'],
294 ],
295 'account-form-register' => [
296 'slug' => 'account-form-register',
297 'title' => esc_html__( 'Account Form - Register', 'shopengine' ),
298 'package' => 'pro-disabled',
299 'categories' => ['shopengine-my_account'],
300 ],
301 'account-logout' => [
302 'slug' => 'account-logout',
303 'title' => esc_html__( 'Account Logout', 'shopengine' ),
304 'package' => 'pro-disabled',
305 'categories' => ['shopengine-my_account'],
306 ],
307 'account-navigation' => [
308 'slug' => 'account-navigation',
309 'title' => esc_html__( 'Account Navigation', 'shopengine' ),
310 'package' => 'pro-disabled',
311 'categories' => ['shopengine-my_account'],
312 ],
313 'account-order-details' => [
314 'slug' => 'account-order-details',
315 'title' => esc_html__( 'Account Order - Details', 'shopengine' ),
316 'package' => 'pro-disabled',
317 'categories' => ['shopengine-my_account'],
318 ],
319 'account-orders' => [
320 'slug' => 'account-orders',
321 'title' => esc_html__( 'Account Orders', 'shopengine' ),
322 'package' => 'pro-disabled',
323 'categories' => ['shopengine-my_account'],
324 ],
325 'categories' => [
326 'slug' => 'categories',
327 'title' => esc_html__( 'Categories', 'shopengine' ),
328 'package' => 'pro-disabled',
329 'categories' => ['shopengine-general'],
330 ],
331 'product-filters' => [
332 'slug' => 'product-filters',
333 'title' => esc_html__( 'Product Filters', 'shopengine' ),
334 'package' => 'pro-disabled',
335 'categories' => ['shopengine-archive'],
336 ],
337 'thankyou-address-details' => [
338 'slug' => 'thankyou-address-details',
339 'title' => esc_html__( 'Thank You Address Details', 'shopengine' ),
340 'package' => 'pro-disabled',
341 'categories' => ['shopengine-order'],
342 ],
343 'thankyou-order-confirm' => [
344 'slug' => 'thankyou-order-confirm',
345 'title' => esc_html__( 'Order Confirm', 'shopengine' ),
346 'package' => 'pro-disabled',
347 'categories' => ['shopengine-order'],
348 ],
349 'thankyou-order-details' => [
350 'slug' => 'thankyou-order-details',
351 'title' => esc_html__( 'Order Details', 'shopengine' ),
352 'package' => 'pro-disabled',
353 'categories' => ['shopengine-order'],
354 ],
355 'thankyou-thankyou' => [
356 'slug' => 'thankyou-thankyou',
357 'title' => esc_html__( 'Order Thank You', 'shopengine' ),
358 'package' => 'pro-disabled',
359 'categories' => ['shopengine-order'],
360 ],
361 'currency-switcher' => [
362 'slug' => 'currency-switcher',
363 'title' => esc_html__('Currency Switcher', 'shopengine'),
364 'package' => 'pro-disabled',
365 'categories' => ['shopengine-general'],
366 ],
367 'flash-sale-products' => [
368 'slug' => 'flash-sale-products',
369 'title' => esc_html__('Flash Sale Products', 'shopengine'),
370 'package' => 'pro-disabled',
371 'categories' => ['shopengine-general'],
372 ],
373 'best-selling-product' => [
374 'slug' => 'best-selling-product',
375 'title' => esc_html__('Best Selling Product', 'shopengine'),
376 'package' => 'pro-disabled',
377 'categories' => ['shopengine-general'],
378 ],
379 'comparison-button' => [
380 'slug' => 'comparison-button',
381 'title' => esc_html__('Comparison Button', 'shopengine'),
382 'package' => 'pro-disabled',
383 'categories' => ['shopengine-general'],
384 ],
385 'product-size-charts' => [
386 'slug' => 'product-size-charts',
387 'title' => esc_html__('Product Size Chart', 'shopengine'),
388 'package' => 'pro-disabled',
389 'categories' => ['shopengine-single']
390 ],
391 'vacation' => [
392 'slug' => 'vacation',
393 'title' => esc_html__('Vacation', 'shopengine'),
394 'package' => 'pro-disabled',
395 'categories' => ['shopengine-general']
396 ],
397 'advanced-coupon' => [
398 'slug' => 'advanced-coupon',
399 'title' => esc_html__('Advanced Coupon', 'shopengine'),
400 'package' => 'pro-disabled',
401 'categories' => ['shopengine-general']
402 ],
403 'product-carousel' => [
404 'slug' => 'product-carousel',
405 'title' => esc_html__('Product Carousel', 'shopengine'),
406 'package' => 'pro-disabled',
407 'categories' => ['shopengine-general']
408 ]
409 ];
410 }
411 }
412