PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 1.1.4
ShopBuilder – WooCommerce Builder For Elementor v1.1.4
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Models/ElementList.php +795 -1239 2.1.31.1.4 View file →
@@ -1,1239 +1,795 @@
1 -<?php
2 -
3 -namespace RadiusTheme\SB\Models;
4 -
5 -// Do not allow directly accessing this file.
6 -if ( ! defined( 'ABSPATH' ) ) {
7 - exit( 'This script cannot be accessed directly.' );
8 -}
9 -
10 -use RadiusTheme\SB\Elementor\Widgets\Archive;
11 -use RadiusTheme\SB\Elementor\Widgets\Cart;
12 -use RadiusTheme\SB\Elementor\Widgets\Checkout;
13 -use RadiusTheme\SB\Elementor\Widgets\General;
14 -use RadiusTheme\SB\Elementor\Widgets\Single;
15 -use RadiusTheme\SB\Models\Base\ListModel;
16 -use RadiusTheme\SB\Traits\SingletonTrait;
17 -use RadiusTheme\SBPRO\Elementor\Widgets\Checkout as CheckoutPro;
18 -
19 -/**
20 - * Elementor Element List
21 - */
22 -class ElementList extends ListModel {
23 - /**
24 - * Singleton
25 - */
26 - use SingletonTrait;
27 -
28 - /**
29 - * List id
30 - *
31 - * @var string
32 - */
33 - protected $list_id = 'elements';
34 -
35 - /**
36 - * Elementor Elements
37 - */
38 - public function __construct() {
39 - parent::__construct();
40 - $this->title = esc_html__( 'Elementor Widgets', 'shopbuilder' );
41 - $this->short_title = esc_html__( 'Elements', 'shopbuilder' );
42 - $this->description = esc_html__( 'Here you can find the list of all Elementor widgets. You can individually enable or disable the elements. Or you can do that by one click.', 'shopbuilder' );
43 - $this->categories = apply_filters(
44 - 'rtsb/elements/list/categories',
45 - [
46 - 'general' => [
47 - 'title' => esc_html__( 'General', 'shopbuilder' ),
48 - ],
49 - 'shop' => [
50 - 'title' => esc_html__( 'Shop / Archive', 'shopbuilder' ),
51 - ],
52 - 'product' => [
53 - 'title' => esc_html__( 'Single', 'shopbuilder' ),
54 - ],
55 - 'cart' => [
56 - 'title' => esc_html__( 'Cart', 'shopbuilder' ),
57 - ],
58 - 'checkout' => [
59 - 'title' => esc_html__( 'Checkout', 'shopbuilder' ),
60 - ],
61 - 'thank_you' => [
62 - 'title' => esc_html__( 'Order Received', 'shopbuilder' ),
63 - ],
64 - 'myaccount_dashboard' => [
65 - 'title' => esc_html__( 'My Account', 'shopbuilder' ),
66 - ],
67 - 'others_widget' => [
68 - 'title' => esc_html__( 'Others', 'shopbuilder' ),
69 - ],
70 - ]
71 - );
72 - }
73 -
74 -
75 - /**
76 - * Widget List.
77 - *
78 - * @return array
79 - */
80 - protected function raw_list() {
81 - $list = $this->product_page_widget_list()
82 - + $this->general_widget_list()
83 - + $this->shop_archive_page_widget_list()
84 - + $this->cart_page_widget_list()
85 - + $this->checkout_page_widget_list()
86 - + $this->thankyou_page_widget_list()
87 - + $this->my_account_page_widget_list()
88 - + $this->myaccount_auth_page_widget_list();
89 -
90 - return apply_filters( 'rtsb/core/elements/raw_list', $list );
91 - }
92 -
93 - /**
94 - * GLobal Widget List.
95 - *
96 - * @return array
97 - */
98 - protected function general_widget_list() {
99 - $list = [
100 - 'products_grid' => apply_filters(
101 - 'rtsb/elements/products_grid/options',
102 - [
103 - 'id' => 'products_grid',
104 - 'title' => esc_html__( 'Products - Grid Layouts', 'shopbuilder' ),
105 - 'base_class' => General\ProductsGrid::class,
106 - 'category' => 'general',
107 - 'active' => 'on',
108 - 'package' => 'free',
109 - 'fields' => [],
110 - ]
111 - ),
112 - 'products_list' => apply_filters(
113 - 'rtsb/elements/products_list/options',
114 - [
115 - 'id' => 'products_list',
116 - 'title' => esc_html__( 'Products - List Layouts', 'shopbuilder' ),
117 - 'base_class' => General\ProductsList::class,
118 - 'category' => 'general',
119 - 'active' => 'on',
120 - 'package' => 'free',
121 - 'fields' => [],
122 - ]
123 - ),
124 -
125 - 'products_slider' => apply_filters(
126 - 'rtsb/elements/products_slider/options',
127 - [
128 - 'id' => 'products_slider',
129 - 'title' => esc_html__( 'Products - Slider Layouts', 'shopbuilder' ),
130 - 'base_class' => General\ProductsSlider::class,
131 - 'category' => 'general',
132 - 'active' => 'on',
133 - 'package' => 'free',
134 - 'fields' => [],
135 - ]
136 - ),
137 -
138 - 'products_single_cateogory' => apply_filters(
139 - 'rtsb/elements/products_single_cateogory/options',
140 - [
141 - 'id' => 'products_single_cateogory',
142 - 'title' => esc_html__( 'Single Category', 'shopbuilder' ),
143 - 'base_class' => General\ProductsSingleCategory::class,
144 - 'category' => 'general',
145 - 'active' => 'on',
146 - 'package' => 'free',
147 - 'fields' => [],
148 - ]
149 - ),
150 - 'product_cateogories' => apply_filters(
151 - 'rtsb/elements/product_cateogories/options',
152 - [
153 - 'id' => 'product_cateogories',
154 - 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
155 - 'base_class' => General\ProductCategories::class,
156 - 'category' => 'general',
157 - 'active' => 'on',
158 - 'package' => 'free',
159 - 'fields' => [],
160 - ]
161 - ),
162 - 'social_share' => apply_filters(
163 - 'rtsb/elements/social_share/options',
164 - [
165 - 'id' => 'social_share',
166 - 'title' => esc_html__( 'Social Share', 'shopbuilder' ),
167 - 'base_class' => General\SocialShare::class,
168 - 'category' => 'general',
169 - 'active' => 'on',
170 - 'package' => 'free',
171 - 'fields' => [],
172 - ]
173 - ),
174 - 'wc_breadcrumbs' => apply_filters(
175 - 'rtsb/elements/wc_breadcrumbs/options',
176 - [
177 - 'id' => 'wc_breadcrumbs',
178 - 'title' => esc_html__( 'Breadcrumbs', 'shopbuilder' ),
179 - 'base_class' => General\ProductBreadcrumbs::class,
180 - 'category' => 'general',
181 - 'active' => 'on',
182 - 'package' => 'free',
183 - 'fields' => [],
184 - ]
185 - ),
186 - 'product_notice' => apply_filters(
187 - 'rtsb/elements/product_notice/options',
188 - [
189 - 'id' => 'product_notice',
190 - 'title' => esc_html__( 'Notice', 'shopbuilder' ),
191 - 'base_class' => General\Notice::class,
192 - 'category' => 'general',
193 - 'active' => 'on',
194 - 'package' => 'free',
195 - 'fields' => [],
196 - ]
197 - ),
198 - 'rtsb_wishlist' => apply_filters(
199 - 'rtsb/elements/rtsb_wishlist/options',
200 - [
201 - 'id' => 'rtsb_wishlist',
202 - 'title' => esc_html__( 'Wishlist Table', 'shopbuilder' ),
203 - 'base_class' => General\Wishlist::class,
204 - 'category' => 'general',
205 - 'active' => 'on',
206 - 'package' => 'free',
207 - 'fields' => [],
208 - ]
209 - ),
210 - ];
211 -
212 - return apply_filters( 'rtsb/core/elements/general/widget_list', $list );
213 - }
214 -
215 - /**
216 - * Product Single Widget List.
217 - *
218 - * @return array
219 - */
220 - protected function product_page_widget_list() {
221 -
222 - $list = [
223 - 'product_title' => apply_filters(
224 - 'rtsb/elements/product_title/options',
225 - [
226 - 'id' => 'product_title',
227 - 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
228 - 'base_class' => Single\ProductTitle::class,
229 - 'category' => 'product',
230 - 'active' => 'on',
231 - 'package' => 'free',
232 - 'fields' => [],
233 - ]
234 - ),
235 - 'product_description' => apply_filters(
236 - 'rtsb/elements/product_description/options',
237 - [
238 - 'id' => 'product_description',
239 - 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
240 - 'base_class' => Single\ProductDescription::class,
241 - 'category' => 'product',
242 - 'active' => 'on',
243 - 'package' => 'free',
244 - 'fields' => [],
245 - ]
246 - ),
247 - 'product_short_description' => apply_filters(
248 - 'rtsb/elements/product_short_description/options',
249 - [
250 - 'id' => 'product_short_description',
251 - 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
252 - 'base_class' => Single\ShortDescription::class,
253 - 'category' => 'product',
254 - 'active' => 'on',
255 - 'package' => 'free',
256 - 'fields' => [],
257 - ]
258 - ),
259 - 'product_images' => apply_filters(
260 - 'rtsb/elements/product_images/options',
261 - [
262 - 'id' => 'product_images',
263 - 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
264 - 'base_class' => Single\ProductImages::class,
265 - 'category' => 'product',
266 - 'active' => 'on',
267 - 'package' => 'free',
268 - 'fields' => [],
269 - ]
270 - ),
271 - 'product_onsale' => apply_filters(
272 - 'rtsb/elements/product_onsale/options',
273 - [
274 - 'id' => 'product_onsale',
275 - 'title' => esc_html__( 'Sale Flash - Onsale', 'shopbuilder' ),
276 - 'base_class' => Single\ProductOnSale::class,
277 - 'category' => 'product',
278 - 'active' => 'on',
279 - 'package' => 'free',
280 - 'fields' => [],
281 - ]
282 - ),
283 - 'product_additional_info' => apply_filters(
284 - 'rtsb/elements/product_additional_info/options',
285 - [
286 - 'id' => 'product_additional_info',
287 - 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
288 - 'base_class' => Single\AdditionalInformation::class,
289 - 'category' => 'product',
290 - 'active' => 'on',
291 - 'package' => 'free',
292 - 'fields' => [],
293 - ]
294 - ),
295 - 'product_price' => apply_filters(
296 - 'rtsb/elements/product_price/options',
297 - [
298 - 'id' => 'product_price',
299 - 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
300 - 'base_class' => Single\ProductPrice::class,
301 - 'category' => 'product',
302 - 'active' => 'on',
303 - 'package' => 'free',
304 - 'fields' => [],
305 - ]
306 - ),
307 - 'product_meta' => apply_filters(
308 - 'rtsb/elements/product_meta/options',
309 - [
310 - 'id' => 'product_meta',
311 - 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
312 - 'base_class' => Single\ProductMeta::class,
313 - 'category' => 'product',
314 - 'active' => 'on',
315 - 'package' => 'free',
316 - 'fields' => [],
317 - ]
318 - ),
319 - 'product_categories' => apply_filters(
320 - 'rtsb/elements/product_categories/options',
321 - [
322 - 'id' => 'product_categories',
323 - 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
324 - 'base_class' => Single\ProductCats::class,
325 - 'category' => 'product',
326 - 'active' => 'on',
327 - 'package' => 'free',
328 - 'fields' => [],
329 - ]
330 - ),
331 - 'product_rating' => apply_filters(
332 - 'rtsb/elements/product_rating/options',
333 - [
334 - 'id' => 'product_rating',
335 - 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
336 - 'base_class' => Single\ProductRating::class,
337 - 'category' => 'product',
338 - 'active' => 'on',
339 - 'package' => 'free',
340 - 'fields' => [],
341 - ]
342 - ),
343 - 'product_tags' => apply_filters(
344 - 'rtsb/elements/product_tags/options',
345 - [
346 - 'id' => 'product_tags',
347 - 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
348 - 'base_class' => Single\ProductTags::class,
349 - 'category' => 'product',
350 - 'active' => 'on',
351 - 'package' => 'free',
352 - 'fields' => [],
353 - ]
354 - ),
355 - 'product_sku' => apply_filters(
356 - 'rtsb/elements/product_sku/options',
357 - [
358 - 'id' => 'product_sku',
359 - 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
360 - 'base_class' => Single\ProductSKU::class,
361 - 'category' => 'product',
362 - 'active' => 'on',
363 - 'package' => 'free',
364 - 'fields' => [],
365 - ]
366 - ),
367 - 'product_stock' => apply_filters(
368 - 'rtsb/elements/product_stock/options',
369 - [
370 - 'id' => 'product_stock',
371 - 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
372 - 'base_class' => Single\ProductStock::class,
373 - 'category' => 'product',
374 - 'active' => 'on',
375 - 'package' => 'free',
376 - 'fields' => [],
377 - ]
378 - ),
379 - 'actions_button' => apply_filters(
380 - 'rtsb/elements/actions_button/options',
381 - [
382 - 'id' => 'actions_button',
383 - 'title' => esc_html__( 'Action Buttons', 'shopbuilder' ),
384 - 'base_class' => Single\ActionsButton::class,
385 - 'category' => 'product',
386 - 'active' => 'on',
387 - 'package' => 'free',
388 - 'fields' => [],
389 - ]
390 - ),
391 - 'product_add_to_cart' => apply_filters(
392 - 'rtsb/elements/product_add_to_cart/options',
393 - [
394 - 'id' => 'product_add_to_cart',
395 - 'title' => esc_html__( 'Add to Cart', 'shopbuilder' ),
396 - 'base_class' => Single\ProductAddToCart::class,
397 - 'category' => 'product',
398 - 'active' => 'on',
399 - 'package' => 'free',
400 - 'fields' => [],
401 - ]
402 - ),
403 - 'product_share' => apply_filters(
404 - 'rtsb/elements/product_share/options',
405 - [
406 - 'id' => 'product_share',
407 - 'title' => esc_html__( 'Product Share', 'shopbuilder' ),
408 - 'base_class' => Single\ProductShare::class,
409 - 'category' => 'product',
410 - 'active' => 'on',
411 - 'package' => 'free',
412 - 'fields' => [],
413 - ]
414 - ),
415 - 'product_sales_count' => apply_filters(
416 - 'rtsb/elements/product_sales_count/options',
417 - [
418 - 'id' => 'product_sales_count',
419 - 'title' => esc_html__( 'Sales Count', 'shopbuilder' ),
420 - 'category' => 'product',
421 - 'active' => '',
422 - 'package' => $this->pro_package(),
423 - 'fields' => [],
424 - ]
425 - ),
426 - 'flash_sale_countdown' => apply_filters(
427 - 'rtsb/elements/flash_sale_countdown/options',
428 - [
429 - 'id' => 'flash_sale_countdown',
430 - 'title' => esc_html__( 'Flash Sale Countdown', 'shopbuilder' ),
431 - 'category' => 'product',
432 - 'active' => '',
433 - 'package' => $this->pro_package(),
434 - 'fields' => [],
435 - ]
436 - ),
437 - 'product_size_chart' => apply_filters(
438 - 'rtsb/elements/product_size_chart/options',
439 - [
440 - 'id' => 'product_size_chart',
441 - 'title' => esc_html__( 'Size Chart', 'shopbuilder' ),
442 - 'category' => 'product',
443 - 'active' => '',
444 - 'package' => $this->pro_package(),
445 - 'fields' => [],
446 - ]
447 - ),
448 - 'product_quick_checkout' => apply_filters(
449 - 'rtsb/elements/product_quick_checkout/options',
450 - [
451 - 'id' => 'product_quick_checkout',
452 - 'title' => esc_html__( 'Quick Checkout', 'shopbuilder' ),
453 - 'category' => 'product',
454 - 'active' => '',
455 - 'package' => $this->pro_package(),
456 - 'fields' => [],
457 - ]
458 - ),
459 - 'product_tabs' => apply_filters(
460 - 'rtsb/elements/product_tabs/options',
461 - [
462 - 'id' => 'product_tabs',
463 - 'title' => esc_html__( 'Product Tabs', 'shopbuilder' ),
464 - 'base_class' => Single\ProductTabs::class,
465 - 'category' => 'product',
466 - 'active' => 'on',
467 - 'package' => 'free',
468 - 'fields' => [],
469 - ]
470 - ),
471 - 'advance_product_tabs' => apply_filters(
472 - 'rtsb/elements/advance_product_tabs/options',
473 - [
474 - 'id' => 'advance_product_tabs',
475 - 'title' => esc_html__( 'Advanced Product Tabs', 'shopbuilder' ),
476 - 'category' => 'product',
477 - 'active' => '',
478 - 'package' => $this->pro_package(),
479 - 'fields' => [],
480 - ]
481 - ),
482 - 'product_reviews' => apply_filters(
483 - 'rtsb/elements/product_reviews/options',
484 - [
485 - 'id' => 'product_reviews',
486 - 'title' => esc_html__( 'Product Reviews', 'shopbuilder' ),
487 - 'base_class' => Single\ProductReviews::class,
488 - 'category' => 'product',
489 - 'active' => 'on',
490 - 'package' => 'free',
491 - 'fields' => [],
492 - ]
493 - ),
494 - 'upsells_product' => apply_filters(
495 - 'rtsb/elements/upsells_product/options',
496 - [
497 - 'id' => 'upsells_product',
498 - 'title' => esc_html__( 'Upsell - Default Layout', 'shopbuilder' ),
499 - 'base_class' => Single\UpsellsProduct::class,
500 - 'category' => 'product',
501 - 'active' => 'on',
502 - 'package' => 'free',
503 - 'fields' => [],
504 - ]
505 - ),
506 - 'upsells_product_custom' => apply_filters(
507 - 'rtsb/elements/upsells_product_custom/options',
508 - [
509 - 'id' => 'upsells_product_custom',
510 - 'title' => esc_html__( 'Upsell - Custom Layouts', 'shopbuilder' ),
511 - 'base_class' => Single\UpsellsProductsCustom::class,
512 - 'category' => 'product',
513 - 'active' => 'on',
514 - 'package' => 'free',
515 - 'fields' => [],
516 - ]
517 - ),
518 - 'upsells_products_slider_custom' => apply_filters(
519 - 'rtsb/elements/upsells_products_slider_custom/options',
520 - [
521 - 'id' => 'upsells_products_slider_custom',
522 - 'title' => esc_html__( 'Upsell - Slider Layouts', 'shopbuilder' ),
523 - 'base_class' => Single\UpsellsProductsSlider::class,
524 - 'category' => 'product',
525 - 'active' => 'on',
526 - 'package' => 'free',
527 - 'fields' => [],
528 - ]
529 - ),
530 - 'related_product' => apply_filters(
531 - 'rtsb/elements/related_product/options',
532 - [
533 - 'id' => 'related_product',
534 - 'title' => esc_html__( 'Related - Default Layout', 'shopbuilder' ),
535 - 'base_class' => Single\RelatedProduct::class,
536 - 'category' => 'product',
537 - 'active' => 'on',
538 - 'package' => 'free',
539 - 'fields' => [],
540 - ]
541 - ),
542 - 'related_product_custom' => apply_filters(
543 - 'rtsb/elements/related_product_custom/options',
544 - [
545 - 'id' => 'related_product_custom',
546 - 'title' => esc_html__( 'Related - Custom Layouts', 'shopbuilder' ),
547 - 'base_class' => Single\RelatedProductsCustom::class,
548 - 'category' => 'product',
549 - 'active' => 'on',
550 - 'package' => 'free',
551 - 'fields' => [],
552 - ]
553 - ),
554 - 'related_products_slider_custom' => apply_filters(
555 - 'rtsb/elements/related_products_slider_custom/options',
556 - [
557 - 'id' => 'related_products_slider_custom',
558 - 'title' => esc_html__( 'Related - Slider Layouts', 'shopbuilder' ),
559 - 'base_class' => Single\RelatedProductsSlider::class,
560 - 'category' => 'product',
561 - 'active' => 'on',
562 - 'package' => 'free',
563 - 'fields' => [],
564 - ]
565 - ),
566 - ];
567 -
568 - return apply_filters( 'rtsb/core/elements/product_page/widget_list', $list );
569 - }
570 -
571 - /**
572 - * Product Archive Widget List.
573 - *
574 - * @return array
575 - */
576 - protected function shop_archive_page_widget_list() {
577 - $list = [
578 - 'archive_title' => apply_filters(
579 - 'rtsb/elements/archive_title/options',
580 - [
581 - 'id' => 'archive_title',
582 - 'title' => esc_html__( 'Archive Title', 'shopbuilder' ),
583 - 'base_class' => Archive\ArchiveTitle::class,
584 - 'category' => 'shop',
585 - 'active' => 'on',
586 - 'package' => 'free',
587 - 'fields' => [],
588 - ]
589 - ),
590 -
591 - 'archive_description' => apply_filters(
592 - 'rtsb/elements/archive_description/options',
593 - [
594 - 'id' => 'archive_description',
595 - 'title' => esc_html__( 'Archive Description', 'shopbuilder' ),
596 - 'base_class' => Archive\ArchiveDescription::class,
597 - 'category' => 'shop',
598 - 'active' => 'on',
599 - 'package' => 'free',
600 - 'fields' => [],
601 - ]
602 - ),
603 -
604 - 'products_archive_catalog' => apply_filters(
605 - 'rtsb/elements/products_archive_catalog/options',
606 - [
607 - 'id' => 'products_archive_catalog',
608 - 'title' => esc_html__( 'Products - Default Layout', 'shopbuilder' ),
609 - 'base_class' => Archive\ProductsArchive::class,
610 - 'category' => 'shop',
611 - 'active' => 'on',
612 - 'package' => 'free',
613 - 'fields' => [],
614 - ]
615 - ),
616 -
617 - 'products_archive_catalog_custom' => apply_filters(
618 - 'rtsb/elements/products_archive_catalog_custom/options',
619 - [
620 - 'id' => 'products_archive_catalog_custom',
621 - 'title' => esc_html__( 'Products - Custom Layouts', 'shopbuilder' ),
622 - 'base_class' => Archive\ProductsArchiveCustom::class,
623 - 'category' => 'shop',
624 - 'active' => 'on',
625 - 'package' => 'free',
626 - 'fields' => [],
627 - ]
628 - ),
629 -
630 - 'ajax_product_filters' => apply_filters(
631 - 'rtsb/elements/ajax_product_filters/options',
632 - [
633 - 'id' => 'ajax_product_filters',
634 - 'title' => esc_html__( 'Ajax Product Filters', 'shopbuilder' ),
635 - 'category' => 'shop',
636 - 'active' => 'on',
637 - 'package' => $this->pro_package(),
638 - 'fields' => [],
639 - ]
640 - ),
641 -
642 - 'archive_result_count' => apply_filters(
643 - 'rtsb/elements/archive_result_count/options',
644 - [
645 - 'id' => 'archive_result_count',
646 - 'title' => esc_html__( 'Result Count', 'shopbuilder' ),
647 - 'base_class' => Archive\ArchiveResultCount::class,
648 - 'category' => 'shop',
649 - 'active' => 'on',
650 - 'package' => 'free',
651 - 'fields' => [],
652 - ]
653 - ),
654 - 'archive_products_ordering' => apply_filters(
655 - 'rtsb/elements/archive_products_ordering/options',
656 - [
657 - 'id' => 'archive_products_ordering',
658 - 'title' => esc_html__( 'Products Ordering', 'shopbuilder' ),
659 - 'base_class' => Archive\ProductsOrdering::class,
660 - 'category' => 'shop',
661 - 'active' => 'on',
662 - 'package' => 'free',
663 - 'fields' => [],
664 - ]
665 - ),
666 - 'archive_product_mode' => apply_filters(
667 - 'rtsb/elements/archive_product_mode/options',
668 - [
669 - 'id' => 'archive_product_mode',
670 - 'title' => esc_html__( 'View Mode', 'shopbuilder' ),
671 - 'base_class' => Archive\ArchiveProductMode::class,
672 - 'category' => 'shop',
673 - 'active' => 'on',
674 - 'package' => 'free',
675 - 'fields' => [],
676 - ]
677 - ),
678 - ];
679 -
680 - return apply_filters( 'rtsb/core/elements/shop/widget_list', $list );
681 - }
682 -
683 - /**
684 - * Cart Page Widget List.
685 - *
686 - * @return array
687 - */
688 - protected function cart_page_widget_list() {
689 - $list = [
690 - 'cart_table' => apply_filters(
691 - 'rtsb/elements/cart_table/options',
692 - [
693 - 'id' => 'cart_table',
694 - 'title' => esc_html__( 'Cart Table', 'shopbuilder' ),
695 - 'base_class' => Cart\CartTable::class,
696 - 'category' => 'cart',
697 - 'active' => 'on',
698 - 'package' => 'free',
699 - 'fields' => [],
700 - ]
701 - ),
702 - 'cart_totals' => apply_filters(
703 - 'rtsb/elements/cart_totals/options',
704 - [
705 - 'id' => 'cart_totals',
706 - 'title' => esc_html__( 'Cart Totals', 'shopbuilder' ),
707 - 'base_class' => Cart\CartTotals::class,
708 - 'category' => 'cart',
709 - 'active' => 'on',
710 - 'package' => 'free',
711 - 'fields' => [],
712 - ]
713 - ),
714 - 'cart_coupon_form' => apply_filters(
715 - 'rtsb/elements/cart_coupon_form/options',
716 - [
717 - 'id' => 'cart_coupon_form',
718 - 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
719 - 'category' => 'cart',
720 - 'active' => 'on',
721 - 'package' => $this->pro_package(),
722 - 'fields' => [],
723 - ]
724 - ),
725 - 'cross_sells' => apply_filters(
726 - 'rtsb/elements/cross_sells/options',
727 - [
728 - 'id' => 'cross_sells',
729 - 'title' => esc_html__( 'Cross Sell - Default Layout', 'shopbuilder' ),
730 - 'base_class' => Cart\CrossSellProduct::class,
731 - 'category' => 'cart',
732 - 'active' => 'on',
733 - 'package' => 'free',
734 - 'fields' => [],
735 - ]
736 - ),
737 - 'cross_sells_custom' => apply_filters(
738 - 'rtsb/elements/cross_sells_custom/options',
739 - [
740 - 'id' => 'cross_sells_custom',
741 - 'title' => esc_html__( 'Cross Sell - Custom Layouts', 'shopbuilder' ),
742 - 'base_class' => Cart\CrossSellsProductsCustom::class,
743 - 'category' => 'cart',
744 - 'active' => 'on',
745 - 'package' => 'free',
746 - 'fields' => [],
747 - ]
748 - ),
749 - 'cross_sells_custom_slider' => apply_filters(
750 - 'rtsb/elements/cross_sells_custom_slider/options',
751 - [
752 - 'id' => 'cross_sells_custom_slider',
753 - 'title' => esc_html__( 'Cross Sell - Slider Layouts', 'shopbuilder' ),
754 - 'base_class' => Cart\CrossSellsProductsSlider::class,
755 - 'category' => 'cart',
756 - 'active' => 'on',
757 - 'package' => 'free',
758 - 'fields' => [],
759 - ]
760 - ),
761 - ];
762 -
763 - return apply_filters( 'rtsb/core/elements/cart/widget_list', $list );
764 - }
765 -
766 - /**
767 - * Checkout Page Widget List.
768 - *
769 - * @return array
770 - */
771 - protected function checkout_page_widget_list() {
772 - $list = [
773 - 'billing_form' => apply_filters(
774 - 'rtsb/elements/billing_form/options',
775 - [
776 - 'id' => 'billing_form',
777 - 'title' => esc_html__( 'Billing Form', 'shopbuilder' ),
778 - 'base_class' => Checkout\BillingForm::class,
779 - 'category' => 'checkout',
780 - 'active' => 'on',
781 - 'package' => 'free',
782 - 'fields' => [],
783 - ]
784 - ),
785 - 'shipping_form' => apply_filters(
786 - 'rtsb/elements/shipping_form/options',
787 - [
788 - 'id' => 'shipping_form',
789 - 'title' => esc_html__( 'Shipping Form', 'shopbuilder' ),
790 - 'base_class' => Checkout\ShippingForm::class,
791 - 'category' => 'checkout',
792 - 'active' => 'on',
793 - 'package' => 'free',
794 - 'fields' => [],
795 - ]
796 - ),
797 - 'order_notes' => apply_filters(
798 - 'rtsb/elements/order_notes/options',
799 - [
800 - 'id' => 'order_notes',
801 - 'title' => esc_html__( 'Order Notes', 'shopbuilder' ),
802 - 'base_class' => Checkout\OrderNotes::class,
803 - 'category' => 'checkout',
804 - 'active' => 'on',
805 - 'package' => 'free',
806 - 'fields' => [],
807 - ]
808 - ),
809 - 'order_review' => apply_filters(
810 - 'rtsb/elements/order_review/options',
811 - [
812 - 'id' => 'order_review',
813 - 'title' => esc_html__( 'Order Review', 'shopbuilder' ),
814 - 'base_class' => Checkout\OrderReview::class,
815 - 'category' => 'checkout',
816 - 'active' => 'on',
817 - 'package' => 'free',
818 - 'fields' => [],
819 - ]
820 - ),
821 - 'checkout_payment' => apply_filters(
822 - 'rtsb/elements/checkout_payment/options',
823 - [
824 - 'id' => 'checkout_payment',
825 - 'title' => esc_html__( 'Checkout Payment Method', 'shopbuilder' ),
826 - 'base_class' => Checkout\CheckoutPayment::class,
827 - 'category' => 'checkout',
828 - 'active' => 'on',
829 - 'package' => 'free',
830 - 'fields' => [],
831 - ]
832 - ),
833 - 'coupon_form' => apply_filters(
834 - 'rtsb/elements/coupon_form/options',
835 - [
836 - 'id' => 'coupon_form',
837 - 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
838 - 'base_class' => Checkout\CouponForm::class,
839 - 'category' => 'checkout',
840 - 'active' => 'on',
841 - 'package' => 'free',
842 - 'fields' => [],
843 - ]
844 - ),
845 - 'checkout_login_form' => apply_filters(
846 - 'rtsb/elements/checkout_login_form/options',
847 - [
848 - 'id' => 'checkout_login_form',
849 - 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
850 - 'base_class' => Checkout\CheckoutLoginForm::class,
851 - 'category' => 'checkout',
852 - 'active' => 'on',
853 - 'package' => 'free',
854 - 'fields' => [],
855 - ]
856 - ),
857 - 'shipping_method' => apply_filters(
858 - 'rtsb/elements/shipping_method/options',
859 - [
860 - 'id' => 'shipping_method',
861 - 'title' => esc_html__( 'Shipping Method', 'shopbuilder' ),
862 - 'base_class' => Checkout\ShippingMethod::class,
863 - 'category' => 'checkout',
864 - 'active' => 'on',
865 - 'package' => 'free',
866 - 'fields' => [],
867 - ]
868 - ),
869 - 'multi_step_checkout_widget' => apply_filters(
870 - 'rtsb/elements/multi_step_checkout_widget/options',
871 - [
872 - 'id' => 'multi_step_checkout_widget',
873 - 'title' => esc_html__( 'Multi Step Checkout', 'shopbuilder' ),
874 - 'base_class' => CheckoutPro\MultiStepCheckout::class,
875 - 'category' => 'checkout',
876 - 'active' => '',
877 - 'package' => $this->pro_package(),
878 - 'fields' => [],
879 - ]
880 - ),
881 -
882 - ];
883 -
884 - return apply_filters( 'rtsb/core/elements/checkout/widget_list', $list );
885 - }
886 -
887 - /**
888 - * Checkout Page Widget List.
889 - *
890 - * @return array
891 - */
892 - protected function thankyou_page_widget_list() {
893 - return [
894 - 'order_received_text' => apply_filters(
895 - 'rtsb/elements/order_received_text/options',
896 - [
897 - 'id' => 'order_received_text',
898 - 'title' => esc_html__( 'Order Received Text', 'shopbuilder' ),
899 - 'category' => 'thank_you',
900 - 'is_front_page' => 'thank_you',
901 - 'active' => 'on',
902 - 'package' => $this->pro_package(),
903 - 'fields' => [],
904 - ]
905 - ),
906 - 'order_details_summary' => apply_filters(
907 - 'rtsb/elements/order_details_summary/options',
908 - [
909 - 'id' => 'order_details_summary',
910 - 'title' => esc_html__( 'Order Details Summary', 'shopbuilder' ),
911 - 'category' => 'thank_you',
912 - 'is_front_page' => 'thank_you',
913 - 'active' => 'on',
914 - 'package' => $this->pro_package(),
915 - 'fields' => [],
916 - ]
917 - ),
918 - 'order_details_table' => apply_filters(
919 - 'rtsb/elements/order_details_table/options',
920 - [
921 - 'id' => 'order_details_table',
922 - 'title' => esc_html__( 'Order Details Table', 'shopbuilder' ),
923 - 'category' => 'thank_you',
924 - 'is_front_page' => 'thank_you',
925 - 'active' => 'on',
926 - 'package' => $this->pro_package(),
927 - 'fields' => [],
928 - ]
929 - ),
930 - 'downloadable_products' => apply_filters(
931 - 'rtsb/elements/downloadable_products/options',
932 - [
933 - 'id' => 'downloadable_products',
934 - 'title' => esc_html__( 'Downloadable Products', 'shopbuilder' ),
935 - 'category' => 'thank_you',
936 - 'is_front_page' => 'thank_you',
937 - 'active' => 'on',
938 - 'package' => $this->pro_package(),
939 - 'fields' => [],
940 - ]
941 - ),
942 - 'order_billing_address' => apply_filters(
943 - 'rtsb/elements/order_billing_address/options',
944 - [
945 - 'id' => 'order_billing_address',
946 - 'title' => esc_html__( 'Order Billing Address', 'shopbuilder' ),
947 - 'category' => 'thank_you',
948 - 'is_front_page' => 'thank_you',
949 - 'active' => 'on',
950 - 'package' => $this->pro_package(),
951 - 'fields' => [],
952 - ]
953 - ),
954 - 'order_shipping_address' => apply_filters(
955 - 'rtsb/elements/order_shipping_address/options',
956 - [
957 - 'id' => 'order_shipping_address',
958 - 'title' => esc_html__( 'Order Shipping Address', 'shopbuilder' ),
959 - 'category' => 'thank_you',
960 - 'is_front_page' => 'thank_you',
961 - 'active' => 'on',
962 - 'package' => $this->pro_package(),
963 - 'fields' => [],
964 - ]
965 - ),
966 - ];
967 - }
968 -
969 - /**
970 - * Checkout Page Widget List.
971 - *
972 - * @return array
973 - */
974 - protected function my_account_page_widget_list() {
975 - return [
976 -
977 - 'account_navigation_edit_shipping' => apply_filters(
978 - 'rtsb/elements/account_navigation_edit_shipping/options',
979 - [
980 - 'id' => 'account_navigation_edit_shipping',
981 - 'title' => esc_html__( 'Account Navigation', 'shopbuilder' ),
982 - 'category' => 'myaccount_dashboard',
983 - 'is_front_page' => 'all_myaccount_dashboard_inner',
984 - 'active' => 'on',
985 - 'package' => $this->pro_package(),
986 - 'fields' => [],
987 - ]
988 - ),
989 - 'account_dashboard' => apply_filters(
990 - 'rtsb/elements/account_dashboard/options',
991 - [
992 - 'id' => 'account_dashboard',
993 - 'title' => esc_html__( 'Account Dashboard', 'shopbuilder' ),
994 - 'category' => 'myaccount_dashboard',
995 - 'is_front_page' => 'myaccount_dashboard',
996 - 'active' => 'on',
997 - 'package' => $this->pro_package(),
998 - 'fields' => [],
999 - ]
1000 - ),
1001 - 'account_orders' => apply_filters(
1002 - 'rtsb/elements/account_orders/options',
1003 - [
1004 - 'id' => 'account_orders',
1005 - 'title' => esc_html__( 'Account Orders', 'shopbuilder' ),
1006 - 'category' => 'myaccount_dashboard',
1007 - 'is_front_page' => 'myaccount_order',
1008 - 'active' => 'on',
1009 - 'package' => $this->pro_package(),
1010 - 'fields' => [],
1011 - ]
1012 - ),
1013 - 'account_downloads' => apply_filters(
1014 - 'rtsb/elements/account_downloads/options',
1015 - [
1016 - 'id' => 'account_downloads',
1017 - 'title' => esc_html__( 'Account Downloads', 'shopbuilder' ),
1018 - 'category' => 'myaccount_dashboard',
1019 - 'is_front_page' => 'myaccount_downloads',
1020 - 'active' => 'on',
1021 - 'package' => $this->pro_package(),
1022 - 'fields' => [],
1023 - ]
1024 - ),
1025 - 'account_billing_address' => apply_filters(
1026 - 'rtsb/elements/account_billing_address/options',
1027 - [
1028 - 'id' => 'account_billing_address',
1029 - 'title' => esc_html__( 'Account Billing Address', 'shopbuilder' ),
1030 - 'category' => 'myaccount_dashboard',
1031 - 'is_front_page' => 'myaccount_address',
1032 - 'active' => 'on',
1033 - 'package' => $this->pro_package(),
1034 - 'fields' => [],
1035 - ]
1036 - ),
1037 - 'account_shipping_address' => apply_filters(
1038 - 'rtsb/elements/account_shipping_address/options',
1039 - [
1040 - 'id' => 'account_shipping_address',
1041 - 'title' => esc_html__( 'Account Shipping Address', 'shopbuilder' ),
1042 - 'category' => 'myaccount_dashboard',
1043 - 'is_front_page' => 'myaccount_address',
1044 - 'active' => 'on',
1045 - 'package' => $this->pro_package(),
1046 - 'fields' => [],
1047 - ]
1048 - ),
1049 - 'account_address_description' => apply_filters(
1050 - 'rtsb/elements/account_address_description/options',
1051 - [
1052 - 'id' => 'account_address_description',
1053 - 'title' => esc_html__( 'Account Address Description', 'shopbuilder' ),
1054 - 'category' => 'myaccount_dashboard',
1055 - 'is_front_page' => 'myaccount_address',
1056 - 'active' => 'on',
1057 - 'package' => $this->pro_package(),
1058 - 'fields' => [],
1059 - ]
1060 - ),
1061 - 'account_details' => apply_filters(
1062 - 'rtsb/elements/account_details/options',
1063 - [
1064 - 'id' => 'account_details',
1065 - 'title' => esc_html__( 'Account Edit / Details', 'shopbuilder' ),
1066 - 'category' => 'myaccount_dashboard',
1067 - 'is_front_page' => 'myaccount_edit_details',
1068 - 'active' => 'on',
1069 - 'package' => $this->pro_package(),
1070 - 'fields' => [],
1071 - ]
1072 - ),
1073 - 'account_order_status' => apply_filters(
1074 - 'rtsb/elements/account_order_status/options',
1075 - [
1076 - 'id' => 'account_order_status',
1077 - 'title' => esc_html__( 'Account Order Status', 'shopbuilder' ),
1078 - 'category' => 'myaccount_dashboard',
1079 - 'is_front_page' => 'myaccount_orders_details',
1080 - 'active' => 'on',
1081 - 'package' => $this->pro_package(),
1082 - 'fields' => [],
1083 - ]
1084 - ),
1085 - 'account_order_details_download' => apply_filters(
1086 - 'rtsb/elements/account_order_details_download/options',
1087 - [
1088 - 'id' => 'account_order_details_download',
1089 - 'title' => esc_html__( 'Account Order Download', 'shopbuilder' ),
1090 - 'category' => 'myaccount_dashboard',
1091 - 'is_front_page' => 'myaccount_orders_details',
1092 - 'active' => 'on',
1093 - 'package' => $this->pro_package(),
1094 - 'fields' => [],
1095 - ]
1096 - ),
1097 - 'account_order_details_note' => apply_filters(
1098 - 'rtsb/elements/account_order_details_note/options',
1099 - [
1100 - 'id' => 'account_order_details_note',
1101 - 'title' => esc_html__( 'Account Order Note', 'shopbuilder' ),
1102 - 'category' => 'myaccount_dashboard',
1103 - 'is_front_page' => 'myaccount_orders_details',
1104 - 'active' => 'on',
1105 - 'package' => $this->pro_package(),
1106 - 'fields' => [],
1107 - ]
1108 - ),
1109 - 'account_order_details_table' => apply_filters(
1110 - 'rtsb/elements/account_order_details_table/options',
1111 - [
1112 - 'id' => 'account_order_details_table',
1113 - 'title' => esc_html__( 'Account Order Table', 'shopbuilder' ),
1114 - 'category' => 'myaccount_dashboard',
1115 - 'is_front_page' => 'myaccount_orders_details',
1116 - 'active' => 'on',
1117 - 'package' => $this->pro_package(),
1118 - 'fields' => [],
1119 - ]
1120 - ),
1121 - 'account_order_details_order_again' => apply_filters(
1122 - 'rtsb/elements/account_order_details_order_again/options',
1123 - [
1124 - 'id' => 'account_order_details_order_again',
1125 - 'title' => esc_html__( 'Account Order Again Button', 'shopbuilder' ),
1126 - 'category' => 'myaccount_dashboard',
1127 - 'is_front_page' => 'myaccount_orders_details',
1128 - 'active' => 'on',
1129 - 'package' => $this->pro_package(),
1130 - 'fields' => [],
1131 - ]
1132 - ),
1133 - 'account_order_details_order_shipping' => apply_filters(
1134 - 'rtsb/elements/account_order_details_order_shipping/options',
1135 - [
1136 - 'id' => 'account_order_details_order_shipping',
1137 - 'title' => esc_html__( 'Account Order Shipping', 'shopbuilder' ),
1138 - 'category' => 'myaccount_dashboard',
1139 - 'is_front_page' => 'myaccount_orders_details',
1140 - 'active' => 'on',
1141 - 'package' => $this->pro_package(),
1142 - 'fields' => [],
1143 - ]
1144 - ),
1145 - 'account_order_details_order_billing' => apply_filters(
1146 - 'rtsb/elements/account_order_details_order_billing/options',
1147 - [
1148 - 'id' => 'account_order_details_order_billing',
1149 - 'title' => esc_html__( 'Account Order Billing', 'shopbuilder' ),
1150 - 'category' => 'myaccount_dashboard',
1151 - 'is_front_page' => 'myaccount_orders_details',
1152 - 'active' => 'on',
1153 - 'package' => $this->pro_package(),
1154 - 'fields' => [],
1155 - ]
1156 - ),
1157 - 'account_edit_billing_address' => apply_filters(
1158 - 'rtsb/elements/account_edit_billing_address/options',
1159 - [
1160 - 'id' => 'account_edit_billing_address',
1161 - 'title' => esc_html__( 'Edit Billing Address', 'shopbuilder' ),
1162 - 'category' => 'myaccount_dashboard',
1163 - 'is_front_page' => 'myaccount_edit_billing_address',
1164 - 'active' => 'on',
1165 - 'package' => $this->pro_package(),
1166 - 'fields' => [],
1167 - ]
1168 - ),
1169 - 'account_edit_shipping_address' => apply_filters(
1170 - 'rtsb/elements/account_edit_shipping_address/options',
1171 - [
1172 - 'id' => 'account_edit_shipping_address',
1173 - 'title' => esc_html__( 'Edit Shipping Address', 'shopbuilder' ),
1174 - 'category' => 'myaccount_dashboard',
1175 - 'is_front_page' => 'myaccount_edit_shipping_address',
1176 - 'active' => 'on',
1177 - 'package' => $this->pro_package(),
1178 - 'fields' => [],
1179 - ]
1180 - ),
1181 - ];
1182 - }
1183 -
1184 - /***
1185 - * @return array
1186 - */
1187 - protected function myaccount_auth_page_widget_list() {
1188 - return [
1189 - 'account_login' => apply_filters(
1190 - 'rtsb/elements/account_login/options',
1191 - [
1192 - 'id' => 'account_login',
1193 - 'title' => esc_html__( 'Login Register Form', 'shopbuilder' ),
1194 - 'category' => 'others_widget',
1195 - 'is_front_page' => 'myaccount_auth',
1196 - 'active' => 'on',
1197 - 'package' => $this->pro_package(),
1198 - 'fields' => [],
1199 - ]
1200 - ),
1201 - 'account_login_form' => apply_filters(
1202 - 'rtsb/elements/account_login_form/options',
1203 - [
1204 - 'id' => 'account_login_form',
1205 - 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
1206 - 'category' => 'others_widget',
1207 - 'is_front_page' => 'myaccount_auth',
1208 - 'active' => 'on',
1209 - 'package' => $this->pro_package(),
1210 - 'fields' => [],
1211 - ]
1212 - ),
1213 - 'account_registration_form' => apply_filters(
1214 - 'rtsb/elements/account_registration_form/options',
1215 - [
1216 - 'id' => 'account_registration_form',
1217 - 'title' => esc_html__( 'Registration Form', 'shopbuilder' ),
1218 - 'category' => 'others_widget',
1219 - 'is_front_page' => 'myaccount_auth',
1220 - 'active' => 'on',
1221 - 'package' => $this->pro_package(),
1222 - 'fields' => [],
1223 - ]
1224 - ),
1225 - 'account_lost_password' => apply_filters(
1226 - 'rtsb/elements/account_lost_password/options',
1227 - [
1228 - 'id' => 'account_lost_password',
1229 - 'title' => esc_html__( 'Lost Password Form', 'shopbuilder' ),
1230 - 'category' => 'others_widget',
1231 - 'is_front_page' => 'myaccount_lost_password',
1232 - 'active' => 'on',
1233 - 'package' => $this->pro_package(),
1234 - 'fields' => [],
1235 - ]
1236 - ),
1237 - ];
1238 - }
1239 -}
1 +<?php
2 +
3 +namespace RadiusTheme\SB\Models;
4 +
5 +// Do not allow directly accessing this file.
6 +if ( ! defined( 'ABSPATH' ) ) {
7 + exit( 'This script cannot be accessed directly.' );
8 +}
9 +
10 +use RadiusTheme\SB\Elementor\Widgets\Archive;
11 +use RadiusTheme\SB\Elementor\Widgets\Cart;
12 +use RadiusTheme\SB\Elementor\Widgets\Checkout;
13 +use RadiusTheme\SB\Elementor\Widgets\General;
14 +use RadiusTheme\SB\Elementor\Widgets\Single;
15 +use RadiusTheme\SB\Models\Base\ListModel;
16 +use RadiusTheme\SB\Traits\SingletonTrait;
17 +
18 +/**
19 + * Elementor Element List
20 + */
21 +class ElementList extends ListModel {
22 + /**
23 + * Singleton
24 + */
25 + use SingletonTrait;
26 + /**
27 + * List id
28 + *
29 + * @var string
30 + */
31 + protected $list_id = 'elements';
32 + /**
33 + * Elementor Elements
34 + */
35 + public function __construct() {
36 + parent::__construct();
37 + $this->title = esc_html__( 'Elementor Widgets', 'shopbuilder' );
38 + $this->short_title = esc_html__( 'Elements', 'shopbuilder' );
39 + $this->description = esc_html__( 'Here you can find the list of all Elementor widgets. You can individually enable or disable the elements. Or you can do that by one click.', 'shopbuilder' );
40 + $this->categories = apply_filters(
41 + 'rtsb/elements/list/categories',
42 + [
43 + 'general' => [
44 + 'title' => esc_html__( 'General', 'shopbuilder' ),
45 + ],
46 + 'shop' => [
47 + 'title' => esc_html__( 'Shop / Archive', 'shopbuilder' ),
48 + ],
49 + 'product' => [
50 + 'title' => esc_html__( 'Single', 'shopbuilder' ),
51 + ],
52 + 'cart' => [
53 + 'title' => esc_html__( 'Cart', 'shopbuilder' ),
54 + ],
55 + 'checkout' => [
56 + 'title' => esc_html__( 'Checkout', 'shopbuilder' ),
57 + ],
58 + ]
59 + );
60 + }
61 +
62 + /**
63 + * Widget List.
64 + *
65 + * @return array
66 + */
67 + protected function raw_list() {
68 + $list = $this->product_page_widget_list()
69 + + $this->general_widget_list()
70 + + $this->shop_archive_page_widget_list()
71 + + $this->cart_page_widget_list()
72 + + $this->checkout_page_widget_list();
73 +
74 + return apply_filters( 'rtsb/core/elements/raw_list', $list );
75 + }
76 +
77 + /**
78 + * GLobal Widget List.
79 + *
80 + * @return array
81 + */
82 + protected function general_widget_list() {
83 + $list = [
84 + 'wc_breadcrumbs' => apply_filters(
85 + 'rtsb/elements/wc_breadcrumbs/options',
86 + [
87 + 'id' => 'wc_breadcrumbs',
88 + 'title' => esc_html__( 'Breadcrumbs', 'shopbuilder' ),
89 + 'base_class' => General\ProductBreadcrumbs::class,
90 + 'category' => 'general',
91 + 'active' => 'on',
92 + 'package' => 'free',
93 + 'fields' => [],
94 + ]
95 + ),
96 + 'product_notice' => apply_filters(
97 + 'rtsb/elements/product_notice/options',
98 + [
99 + 'id' => 'product_notice',
100 + 'title' => esc_html__( 'Notice', 'shopbuilder' ),
101 + 'base_class' => General\Notice::class,
102 + 'category' => 'general',
103 + 'active' => 'on',
104 + 'package' => 'free',
105 + 'fields' => [],
106 + ]
107 + ),
108 + 'products_grid' => apply_filters(
109 + 'rtsb/elements/products_grid/options',
110 + [
111 + 'id' => 'products_grid',
112 + 'title' => esc_html__( 'Products - Grid Layouts', 'shopbuilder' ),
113 + 'base_class' => General\ProductsGrid::class,
114 + 'category' => 'general',
115 + 'active' => 'on',
116 + 'package' => 'free',
117 + 'fields' => [],
118 + ]
119 + ),
120 + 'products_list' => apply_filters(
121 + 'rtsb/elements/products_list/options',
122 + [
123 + 'id' => 'products_list',
124 + 'title' => esc_html__( 'Products - List Layouts', 'shopbuilder' ),
125 + 'base_class' => General\ProductsList::class,
126 + 'category' => 'general',
127 + 'active' => 'on',
128 + 'package' => 'free',
129 + 'fields' => [],
130 + ]
131 + ),
132 +
133 + 'products_slider' => apply_filters(
134 + 'rtsb/elements/products_slider/options',
135 + [
136 + 'id' => 'products_slider',
137 + 'title' => esc_html__( 'Products - Slider Layouts', 'shopbuilder' ),
138 + 'base_class' => General\ProductsSlider::class,
139 + 'category' => 'general',
140 + 'active' => 'on',
141 + 'package' => 'free',
142 + 'fields' => [],
143 + ]
144 + ),
145 +
146 + 'products_single_cateogory' => apply_filters(
147 + 'rtsb/elements/products_single_cateogory/options',
148 + [
149 + 'id' => 'products_single_cateogory',
150 + 'title' => esc_html__( 'Single Category', 'shopbuilder' ),
151 + 'base_class' => General\ProductsSingleCategory::class,
152 + 'category' => 'general',
153 + 'active' => 'on',
154 + 'package' => 'free',
155 + 'fields' => [],
156 + ]
157 + ),
158 + 'product_cateogories' => apply_filters(
159 + 'rtsb/elements/product_cateogories/options',
160 + [
161 + 'id' => 'product_cateogories',
162 + 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
163 + 'base_class' => General\ProductCategories::class,
164 + 'category' => 'general',
165 + 'active' => 'on',
166 + 'package' => 'free',
167 + 'fields' => [],
168 + ]
169 + ),
170 + 'social_share' => apply_filters(
171 + 'rtsb/elements/social_share/options',
172 + [
173 + 'id' => 'social_share',
174 + 'title' => esc_html__( 'Social Share', 'shopbuilder' ),
175 + 'base_class' => General\SocialShare::class,
176 + 'category' => 'general',
177 + 'active' => 'on',
178 + 'package' => 'free',
179 + 'fields' => [],
180 + ]
181 + ),
182 + ];
183 +
184 + return apply_filters( 'rtsb/core/elements/general/widget_list', $list );
185 + }
186 +
187 + /**
188 + * Product Single Widget List.
189 + *
190 + * @return array
191 + */
192 + protected function product_page_widget_list() {
193 +
194 + $list = [
195 +
196 + 'upsells_product_custom' => apply_filters(
197 + 'rtsb/elements/upsells_product_custom/options',
198 + [
199 + 'id' => 'upsells_product_custom',
200 + 'title' => esc_html__( 'Upsells Product - Custom Layout', 'shopbuilder' ),
201 + 'base_class' => Single\UpsellsProductsCustom::class,
202 + 'category' => 'product',
203 + 'active' => 'on',
204 + 'package' => 'free',
205 + 'fields' => [],
206 + ]
207 + ),
208 +
209 + 'upsells_products_slider_custom' => apply_filters(
210 + 'rtsb/elements/upsells_products_slider_custom/options',
211 + [
212 + 'id' => 'upsells_products_slider_custom',
213 + 'title' => esc_html__( 'Upsells Product Slider- Custom Layout', 'shopbuilder' ),
214 + 'base_class' => Single\UpsellsProductsSlider::class,
215 + 'category' => 'product',
216 + 'active' => 'on',
217 + 'package' => 'free',
218 + 'fields' => [],
219 + ]
220 + ),
221 +
222 + 'related_product_custom' => apply_filters(
223 + 'rtsb/elements/related_product_custom/options',
224 + [
225 + 'id' => 'related_product_custom',
226 + 'title' => esc_html__( 'Related Product - Custom Layout', 'shopbuilder' ),
227 + 'base_class' => Single\RelatedProductsCustom::class,
228 + 'category' => 'product',
229 + 'active' => 'on',
230 + 'package' => 'free',
231 + 'fields' => [],
232 + ]
233 + ),
234 +
235 + 'related_products_slider_custom' => apply_filters(
236 + 'rtsb/elements/related_products_slider_custom/options',
237 + [
238 + 'id' => 'related_products_slider_custom',
239 + 'title' => esc_html__( 'Related Products Slider - Custom Layouts', 'shopbuilder' ),
240 + 'base_class' => Single\RelatedProductsSlider::class,
241 + 'category' => 'product',
242 + 'active' => 'on',
243 + 'package' => 'free',
244 + 'fields' => [],
245 + ]
246 + ),
247 +
248 + 'upsells_product' => apply_filters(
249 + 'rtsb/elements/upsells_product/options',
250 + [
251 + 'id' => 'upsells_product',
252 + 'title' => esc_html__( 'Upsells Product - Default Layout', 'shopbuilder' ),
253 + 'base_class' => Single\UpsellsProduct::class,
254 + 'category' => 'product',
255 + 'active' => 'on',
256 + 'package' => 'free',
257 + 'fields' => [],
258 + ]
259 + ),
260 +
261 + 'related_product' => apply_filters(
262 + 'rtsb/elements/related_product/options',
263 + [
264 + 'id' => 'related_product',
265 + 'title' => esc_html__( 'Related Product - Default Layout', 'shopbuilder' ),
266 + 'base_class' => Single\RelatedProduct::class,
267 + 'category' => 'product',
268 + 'active' => 'on',
269 + 'package' => 'free',
270 + 'fields' => [],
271 + ]
272 + ),
273 +
274 + 'product_title' => apply_filters(
275 + 'rtsb/elements/product_title/options',
276 + [
277 + 'id' => 'product_title',
278 + 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
279 + 'base_class' => Single\ProductTitle::class,
280 + 'category' => 'product',
281 + 'active' => 'on',
282 + 'package' => 'free',
283 + 'fields' => [],
284 + ]
285 + ),
286 + 'product_images' => apply_filters(
287 + 'rtsb/elements/product_images/options',
288 + [
289 + 'id' => 'product_images',
290 + 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
291 + 'base_class' => Single\ProductImages::class,
292 + 'category' => 'product',
293 + 'active' => 'on',
294 + 'package' => 'free',
295 + 'fields' => [],
296 + ]
297 + ),
298 + 'product_short_description' => apply_filters(
299 + 'rtsb/elements/product_short_description/options',
300 + [
301 + 'id' => 'product_short_description',
302 + 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
303 + 'base_class' => Single\ShortDescription::class,
304 + 'category' => 'product',
305 + 'active' => 'on',
306 + 'package' => 'free',
307 + 'fields' => [],
308 + ]
309 + ),
310 + 'product_description' => apply_filters(
311 + 'rtsb/elements/product_description/options',
312 + [
313 + 'id' => 'product_description',
314 + 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
315 + 'base_class' => Single\ProductDescription::class,
316 + 'category' => 'product',
317 + 'active' => 'on',
318 + 'package' => 'free',
319 + 'fields' => [],
320 + ]
321 + ),
322 + 'product_additional_info' => apply_filters(
323 + 'rtsb/elements/product_additional_info/options',
324 + [
325 + 'id' => 'product_additional_info',
326 + 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
327 + 'base_class' => Single\AdditionalInformation::class,
328 + 'category' => 'product',
329 + 'active' => 'on',
330 + 'package' => 'free',
331 + 'fields' => [],
332 + ]
333 + ),
334 + 'product_rating' => apply_filters(
335 + 'rtsb/elements/product_rating/options',
336 + [
337 + 'id' => 'product_rating',
338 + 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
339 + 'base_class' => Single\ProductRating::class,
340 + 'category' => 'product',
341 + 'active' => 'on',
342 + 'package' => 'free',
343 + 'fields' => [],
344 + ]
345 + ),
346 + 'product_price' => apply_filters(
347 + 'rtsb/elements/product_price/options',
348 + [
349 + 'id' => 'product_price',
350 + 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
351 + 'base_class' => Single\ProductPrice::class,
352 + 'category' => 'product',
353 + 'active' => 'on',
354 + 'package' => 'free',
355 + 'fields' => [],
356 + ]
357 + ),
358 + 'product_meta' => apply_filters(
359 + 'rtsb/elements/product_meta/options',
360 + [
361 + 'id' => 'product_meta',
362 + 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
363 + 'base_class' => Single\ProductMeta::class,
364 + 'category' => 'product',
365 + 'active' => 'on',
366 + 'package' => 'free',
367 + 'fields' => [],
368 + ]
369 + ),
370 + 'product_categories' => apply_filters(
371 + 'rtsb/elements/product_categories/options',
372 + [
373 + 'id' => 'product_categories',
374 + 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
375 + 'base_class' => Single\ProductCats::class,
376 + 'category' => 'product',
377 + 'active' => 'on',
378 + 'package' => 'free',
379 + 'fields' => [],
380 + ]
381 + ),
382 + 'product_tags' => apply_filters(
383 + 'rtsb/elements/product_tags/options',
384 + [
385 + 'id' => 'product_tags',
386 + 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
387 + 'base_class' => Single\ProductTags::class,
388 + 'category' => 'product',
389 + 'active' => 'on',
390 + 'package' => 'free',
391 + 'fields' => [],
392 + ]
393 + ),
394 + 'product_sku' => apply_filters(
395 + 'rtsb/elements/product_sku/options',
396 + [
397 + 'id' => 'product_sku',
398 + 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
399 + 'base_class' => Single\ProductSKU::class,
400 + 'category' => 'product',
401 + 'active' => 'on',
402 + 'package' => 'free',
403 + 'fields' => [],
404 + ]
405 + ),
406 + 'product_stock' => apply_filters(
407 + 'rtsb/elements/product_stock/options',
408 + [
409 + 'id' => 'product_stock',
410 + 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
411 + 'base_class' => Single\ProductStock::class,
412 + 'category' => 'product',
413 + 'active' => 'on',
414 + 'package' => 'free',
415 + 'fields' => [],
416 + ]
417 + ),
418 + 'product_add_to_cart' => apply_filters(
419 + 'rtsb/elements/product_add_to_cart/options',
420 + [
421 + 'id' => 'product_add_to_cart',
422 + 'title' => esc_html__( 'Product add to cart', 'shopbuilder' ),
423 + 'base_class' => Single\ProductAddToCart::class,
424 + 'category' => 'product',
425 + 'active' => 'on',
426 + 'package' => 'free',
427 + 'fields' => [],
428 + ]
429 + ),
430 +
431 + 'product_reviews' => apply_filters(
432 + 'rtsb/elements/product_reviews/options',
433 + [
434 + 'id' => 'product_reviews',
435 + 'title' => esc_html__( 'Product Reviews', 'shopbuilder' ),
436 + 'base_class' => Single\ProductReviews::class,
437 + 'category' => 'product',
438 + 'active' => 'on',
439 + 'package' => 'free',
440 + 'fields' => [],
441 + ]
442 + ),
443 +
444 + 'product_tabs' => apply_filters(
445 + 'rtsb/elements/product_tabs/options',
446 + [
447 + 'id' => 'product_tabs',
448 + 'title' => esc_html__( 'Product Tabs', 'shopbuilder' ),
449 + 'base_class' => Single\ProductTabs::class,
450 + 'category' => 'product',
451 + 'active' => 'on',
452 + 'package' => 'free',
453 + 'fields' => [],
454 + ]
455 + ),
456 + 'actions_button' => apply_filters(
457 + 'rtsb/elements/actions_button/options',
458 + [
459 + 'id' => 'actions_button',
460 + 'title' => esc_html__( 'Actions Button', 'shopbuilder' ),
461 + 'base_class' => Single\ActionsButton::class,
462 + 'category' => 'product',
463 + 'active' => 'on',
464 + 'package' => 'free',
465 + 'fields' => [],
466 + ]
467 + ),
468 + 'product_share' => apply_filters(
469 + 'rtsb/elements/product_share/options',
470 + [
471 + 'id' => 'product_share',
472 + 'title' => esc_html__( 'Product Share', 'shopbuilder' ),
473 + 'base_class' => Single\ProductShare::class,
474 + 'category' => 'product',
475 + 'active' => 'on',
476 + 'package' => 'free',
477 + 'fields' => [],
478 + ]
479 + ),
480 + 'product_onsale' => apply_filters(
481 + 'rtsb/elements/product_onsale/options',
482 + [
483 + 'id' => 'product_onsale',
484 + 'title' => esc_html__( 'Sale Flash - Onsale', 'shopbuilder' ),
485 + 'base_class' => Single\ProductOnSale::class,
486 + 'category' => 'product',
487 + 'active' => 'on',
488 + 'package' => 'free',
489 + 'fields' => [],
490 + ]
491 + ),
492 +
493 + ];
494 +
495 + return apply_filters( 'rtsb/core/elements/product_page/widget_list', $list );
496 + }
497 +
498 + /**
499 + * Product Archive Widget List.
500 + *
501 + * @return array
502 + */
503 + protected function shop_archive_page_widget_list() {
504 + $list = [
505 +
506 + 'products_archive_catalog_custom' => apply_filters(
507 + 'rtsb/elements/products_archive_catalog_custom/options',
508 + [
509 + 'id' => 'products_archive_catalog_custom',
510 + 'title' => esc_html__( 'Products Archive - Custom ', 'shopbuilder' ),
511 + 'base_class' => Archive\ProductsArchiveCustom::class,
512 + 'category' => 'shop',
513 + 'active' => 'on',
514 + 'package' => 'free',
515 + 'fields' => [],
516 + ]
517 + ),
518 +
519 + 'products_archive_catalog' => apply_filters(
520 + 'rtsb/elements/products_archive_catalog/options',
521 + [
522 + 'id' => 'products_archive_catalog',
523 + 'title' => esc_html__( 'Products Archive - Default Layout', 'shopbuilder' ),
524 + 'base_class' => Archive\ProductsArchive::class,
525 + 'category' => 'shop',
526 + 'active' => 'on',
527 + 'package' => 'free',
528 + 'fields' => [],
529 + ]
530 + ),
531 +
532 + 'archive_title' => apply_filters(
533 + 'rtsb/elements/archive_title/options',
534 + [
535 + 'id' => 'archive_title',
536 + 'title' => esc_html__( 'Archive Title', 'shopbuilder' ),
537 + 'base_class' => Archive\ArchiveTitle::class,
538 + 'category' => 'shop',
539 + 'active' => 'on',
540 + 'package' => 'free',
541 + 'fields' => [],
542 + ]
543 + ),
544 + 'archive_description' => apply_filters(
545 + 'rtsb/elements/archive_description/options',
546 + [
547 + 'id' => 'archive_description',
548 + 'title' => esc_html__( 'Archive Description', 'shopbuilder' ),
549 + 'base_class' => Archive\ArchiveDescription::class,
550 + 'category' => 'shop',
551 + 'active' => 'on',
552 + 'package' => 'free',
553 + 'fields' => [],
554 + ]
555 + ),
556 +
557 + 'archive_result_count' => apply_filters(
558 + 'rtsb/elements/archive_result_count/options',
559 + [
560 + 'id' => 'archive_result_count',
561 + 'title' => esc_html__( 'Result Count', 'shopbuilder' ),
562 + 'base_class' => Archive\ArchiveResultCount::class,
563 + 'category' => 'shop',
564 + 'active' => 'on',
565 + 'package' => 'free',
566 + 'fields' => [],
567 + ]
568 + ),
569 + 'archive_products_ordering' => apply_filters(
570 + 'rtsb/elements/archive_products_ordering/options',
571 + [
572 + 'id' => 'archive_products_ordering',
573 + 'title' => esc_html__( 'Products Ordering', 'shopbuilder' ),
574 + 'base_class' => Archive\ProductsOrdering::class,
575 + 'category' => 'shop',
576 + 'active' => 'on',
577 + 'package' => 'free',
578 + 'fields' => [],
579 + ]
580 + ),
581 + 'archive_product_mode' => apply_filters(
582 + 'rtsb/elements/archive_product_mode/options',
583 + [
584 + 'id' => 'archive_product_mode',
585 + 'title' => esc_html__( 'View Mode', 'shopbuilder' ),
586 + 'base_class' => Archive\ArchiveProductMode::class,
587 + 'category' => 'shop',
588 + 'active' => 'on',
589 + 'package' => 'free',
590 + 'fields' => [],
591 + ]
592 + ),
593 + ];
594 +
595 + return apply_filters( 'rtsb/core/elements/shop/widget_list', $list );
596 + }
597 +
598 + /**
599 + * Cart Page Widget List.
600 + *
601 + * @return array
602 + */
603 + protected function cart_page_widget_list() {
604 + $list = [
605 + 'cross_sells_custom' => apply_filters(
606 + 'rtsb/elements/cross_sells_custom/options',
607 + [
608 + 'id' => 'cross_sells_custom',
609 + 'title' => esc_html__( 'Cross sells - Custom Layout', 'shopbuilder' ),
610 + 'base_class' => Cart\CrossSellsProductsCustom::class,
611 + 'category' => 'cart',
612 + 'active' => 'on',
613 + 'package' => 'free',
614 + 'fields' => [],
615 + ]
616 + ),
617 +
618 + 'cross_sells_custom_slider' => apply_filters(
619 + 'rtsb/elements/cross_sells_custom_slider/options',
620 + [
621 + 'id' => 'cross_sells_custom_slider',
622 + 'title' => esc_html__( 'Cross sells Slider- Custom Layout', 'shopbuilder' ),
623 + 'base_class' => Cart\CrossSellsProductsSlider::class,
624 + 'category' => 'cart',
625 + 'active' => 'on',
626 + 'package' => 'free',
627 + 'fields' => [],
628 + ]
629 + ),
630 +
631 + 'cross_sells' => apply_filters(
632 + 'rtsb/elements/cross_sells/options',
633 + [
634 + 'id' => 'cross_sells',
635 + 'title' => esc_html__( 'Cross sells - Default Layout', 'shopbuilder' ),
636 + 'base_class' => Cart\CrossSellProduct::class,
637 + 'category' => 'cart',
638 + 'active' => 'on',
639 + 'package' => 'free',
640 + 'fields' => [],
641 + ]
642 + ),
643 + 'cart_table' => apply_filters(
644 + 'rtsb/elements/cart_table/options',
645 + [
646 + 'id' => 'cart_table',
647 + 'title' => esc_html__( 'Cart Table', 'shopbuilder' ),
648 + 'base_class' => Cart\CartTable::class,
649 + 'category' => 'cart',
650 + 'active' => 'on',
651 + 'package' => 'free',
652 + 'fields' => [],
653 + ]
654 + ),
655 + 'cart_totals' => apply_filters(
656 + 'rtsb/elements/cart_totals/options',
657 + [
658 + 'id' => 'cart_totals',
659 + 'title' => esc_html__( 'Cart Totals', 'shopbuilder' ),
660 + 'base_class' => Cart\CartTotals::class,
661 + 'category' => 'cart',
662 + 'active' => 'on',
663 + 'package' => 'free',
664 + 'fields' => [],
665 + ]
666 + ),
667 + /*
668 + 'cart_coupon_form' => apply_filters(
669 + 'rtsb/elements/cart_coupon_form/options',
670 + [
671 + 'id' => 'cart_coupon_form',
672 + 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
673 + 'base_class' => Checkout\CouponForm::class,
674 + 'category' => 'cart',
675 + 'active' => 'on',
676 + 'package' => 'free',
677 + 'fields' => [],
678 + ]
679 + ),
680 + */
681 +
682 + ];
683 +
684 + return apply_filters( 'rtsb/core/elements/cart/widget_list', $list );
685 + }
686 + /**
687 + * Checkout Page Widget List.
688 + *
689 + * @return array
690 + */
691 + protected function checkout_page_widget_list() {
692 + $list = [
693 + 'billing_form' => apply_filters(
694 + 'rtsb/elements/billing_form/options',
695 + [
696 + 'id' => 'billing_form',
697 + 'title' => esc_html__( 'Billing Form', 'shopbuilder' ),
698 + 'base_class' => Checkout\BillingForm::class,
699 + 'category' => 'checkout',
700 + 'active' => 'on',
701 + 'package' => 'free',
702 + 'fields' => [],
703 + ]
704 + ),
705 + 'shipping_form' => apply_filters(
706 + 'rtsb/elements/shipping_form/options',
707 + [
708 + 'id' => 'shipping_form',
709 + 'title' => esc_html__( 'Shipping Form', 'shopbuilder' ),
710 + 'base_class' => Checkout\ShippingForm::class,
711 + 'category' => 'checkout',
712 + 'active' => 'on',
713 + 'package' => 'free',
714 + 'fields' => [],
715 + ]
716 + ),
717 + 'order_notes' => apply_filters(
718 + 'rtsb/elements/order_notes/options',
719 + [
720 + 'id' => 'order_notes',
721 + 'title' => esc_html__( 'Order Notes', 'shopbuilder' ),
722 + 'base_class' => Checkout\OrderNotes::class,
723 + 'category' => 'checkout',
724 + 'active' => 'on',
725 + 'package' => 'free',
726 + 'fields' => [],
727 + ]
728 + ),
729 + 'order_review' => apply_filters(
730 + 'rtsb/elements/order_review/options',
731 + [
732 + 'id' => 'order_review',
733 + 'title' => esc_html__( 'Order Review', 'shopbuilder' ),
734 + 'base_class' => Checkout\OrderReview::class,
735 + 'category' => 'checkout',
736 + 'active' => 'on',
737 + 'package' => 'free',
738 + 'fields' => [],
739 + ]
740 + ),
741 + 'checkout_payment' => apply_filters(
742 + 'rtsb/elements/checkout_payment/options',
743 + [
744 + 'id' => 'checkout_payment',
745 + 'title' => esc_html__( 'Checkout Payment Method', 'shopbuilder' ),
746 + 'base_class' => Checkout\CheckoutPayment::class,
747 + 'category' => 'checkout',
748 + 'active' => 'on',
749 + 'package' => 'free',
750 + 'fields' => [],
751 + ]
752 + ),
753 + 'coupon_form' => apply_filters(
754 + 'rtsb/elements/coupon_form/options',
755 + [
756 + 'id' => 'coupon_form',
757 + 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
758 + 'base_class' => Checkout\CouponForm::class,
759 + 'category' => 'checkout',
760 + 'active' => 'on',
761 + 'package' => 'free',
762 + 'fields' => [],
763 + ]
764 + ),
765 + 'checkout_login_form' => apply_filters(
766 + 'rtsb/elements/checkout_login_form/options',
767 + [
768 + 'id' => 'checkout_login_form',
769 + 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
770 + 'base_class' => Checkout\CheckoutLoginForm::class,
771 + 'category' => 'checkout',
772 + 'active' => 'on',
773 + 'package' => 'free',
774 + 'fields' => [],
775 + ]
776 + ),
777 +
778 + 'shipping_method' => apply_filters(
779 + 'rtsb/elements/shipping_method/options',
780 + [
781 + 'id' => 'shipping_method',
782 + 'title' => esc_html__( 'Shipping Method', 'shopbuilder' ),
783 + 'base_class' => Checkout\ShippingMethod::class,
784 + 'category' => 'checkout',
785 + 'active' => 'on',
786 + 'package' => 'free',
787 + 'fields' => [],
788 + ]
789 + ),
790 +
791 + ];
792 + return apply_filters( 'rtsb/core/elements/checkout/widget_list', $list );
793 + }
794 +
795 +}