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 -1253 2.1.61.1.4 View file →
@@ -1,1253 +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 - 'dynamic_content' => apply_filters(
212 - 'rtsb/elements/dynamic_content/options',
213 - [
214 - 'id' => 'dynamic_content',
215 - 'title' => esc_html__( 'Dynamic Content', 'shopbuilder' ),
216 - 'base_class' => General\DynamicContent::class,
217 - 'category' => 'general',
218 - 'active' => 'on',
219 - 'package' => 'free',
220 - 'fields' => [],
221 - ]
222 - ),
223 -
224 - ];
225 -
226 - return apply_filters( 'rtsb/core/elements/general/widget_list', $list );
227 - }
228 -
229 - /**
230 - * Product Single Widget List.
231 - *
232 - * @return array
233 - */
234 - protected function product_page_widget_list() {
235 -
236 - $list = [
237 - 'product_title' => apply_filters(
238 - 'rtsb/elements/product_title/options',
239 - [
240 - 'id' => 'product_title',
241 - 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
242 - 'base_class' => Single\ProductTitle::class,
243 - 'category' => 'product',
244 - 'active' => 'on',
245 - 'package' => 'free',
246 - 'fields' => [],
247 - ]
248 - ),
249 - 'product_description' => apply_filters(
250 - 'rtsb/elements/product_description/options',
251 - [
252 - 'id' => 'product_description',
253 - 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
254 - 'base_class' => Single\ProductDescription::class,
255 - 'category' => 'product',
256 - 'active' => 'on',
257 - 'package' => 'free',
258 - 'fields' => [],
259 - ]
260 - ),
261 - 'product_short_description' => apply_filters(
262 - 'rtsb/elements/product_short_description/options',
263 - [
264 - 'id' => 'product_short_description',
265 - 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
266 - 'base_class' => Single\ShortDescription::class,
267 - 'category' => 'product',
268 - 'active' => 'on',
269 - 'package' => 'free',
270 - 'fields' => [],
271 - ]
272 - ),
273 - 'product_images' => apply_filters(
274 - 'rtsb/elements/product_images/options',
275 - [
276 - 'id' => 'product_images',
277 - 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
278 - 'base_class' => Single\ProductImages::class,
279 - 'category' => 'product',
280 - 'active' => 'on',
281 - 'package' => 'free',
282 - 'fields' => [],
283 - ]
284 - ),
285 - 'product_onsale' => apply_filters(
286 - 'rtsb/elements/product_onsale/options',
287 - [
288 - 'id' => 'product_onsale',
289 - 'title' => esc_html__( 'Product Badges', 'shopbuilder' ),
290 - 'base_class' => Single\ProductBadges::class,
291 - 'category' => 'product',
292 - 'active' => 'on',
293 - 'package' => 'free',
294 - 'fields' => [],
295 - ]
296 - ),
297 - 'product_additional_info' => apply_filters(
298 - 'rtsb/elements/product_additional_info/options',
299 - [
300 - 'id' => 'product_additional_info',
301 - 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
302 - 'base_class' => Single\AdditionalInformation::class,
303 - 'category' => 'product',
304 - 'active' => 'on',
305 - 'package' => 'free',
306 - 'fields' => [],
307 - ]
308 - ),
309 - 'product_price' => apply_filters(
310 - 'rtsb/elements/product_price/options',
311 - [
312 - 'id' => 'product_price',
313 - 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
314 - 'base_class' => Single\ProductPrice::class,
315 - 'category' => 'product',
316 - 'active' => 'on',
317 - 'package' => 'free',
318 - 'fields' => [],
319 - ]
320 - ),
321 - 'product_meta' => apply_filters(
322 - 'rtsb/elements/product_meta/options',
323 - [
324 - 'id' => 'product_meta',
325 - 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
326 - 'base_class' => Single\ProductMeta::class,
327 - 'category' => 'product',
328 - 'active' => 'on',
329 - 'package' => 'free',
330 - 'fields' => [],
331 - ]
332 - ),
333 - 'product_categories' => apply_filters(
334 - 'rtsb/elements/product_categories/options',
335 - [
336 - 'id' => 'product_categories',
337 - 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
338 - 'base_class' => Single\ProductCats::class,
339 - 'category' => 'product',
340 - 'active' => 'on',
341 - 'package' => 'free',
342 - 'fields' => [],
343 - ]
344 - ),
345 - 'product_rating' => apply_filters(
346 - 'rtsb/elements/product_rating/options',
347 - [
348 - 'id' => 'product_rating',
349 - 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
350 - 'base_class' => Single\ProductRating::class,
351 - 'category' => 'product',
352 - 'active' => 'on',
353 - 'package' => 'free',
354 - 'fields' => [],
355 - ]
356 - ),
357 - 'product_tags' => apply_filters(
358 - 'rtsb/elements/product_tags/options',
359 - [
360 - 'id' => 'product_tags',
361 - 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
362 - 'base_class' => Single\ProductTags::class,
363 - 'category' => 'product',
364 - 'active' => 'on',
365 - 'package' => 'free',
366 - 'fields' => [],
367 - ]
368 - ),
369 - 'product_sku' => apply_filters(
370 - 'rtsb/elements/product_sku/options',
371 - [
372 - 'id' => 'product_sku',
373 - 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
374 - 'base_class' => Single\ProductSKU::class,
375 - 'category' => 'product',
376 - 'active' => 'on',
377 - 'package' => 'free',
378 - 'fields' => [],
379 - ]
380 - ),
381 - 'product_stock' => apply_filters(
382 - 'rtsb/elements/product_stock/options',
383 - [
384 - 'id' => 'product_stock',
385 - 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
386 - 'base_class' => Single\ProductStock::class,
387 - 'category' => 'product',
388 - 'active' => 'on',
389 - 'package' => 'free',
390 - 'fields' => [],
391 - ]
392 - ),
393 - 'actions_button' => apply_filters(
394 - 'rtsb/elements/actions_button/options',
395 - [
396 - 'id' => 'actions_button',
397 - 'title' => esc_html__( 'Action Buttons', 'shopbuilder' ),
398 - 'base_class' => Single\ActionsButton::class,
399 - 'category' => 'product',
400 - 'active' => 'on',
401 - 'package' => 'free',
402 - 'fields' => [],
403 - ]
404 - ),
405 - 'product_add_to_cart' => apply_filters(
406 - 'rtsb/elements/product_add_to_cart/options',
407 - [
408 - 'id' => 'product_add_to_cart',
409 - 'title' => esc_html__( 'Add to Cart', 'shopbuilder' ),
410 - 'base_class' => Single\ProductAddToCart::class,
411 - 'category' => 'product',
412 - 'active' => 'on',
413 - 'package' => 'free',
414 - 'fields' => [],
415 - ]
416 - ),
417 - 'product_share' => apply_filters(
418 - 'rtsb/elements/product_share/options',
419 - [
420 - 'id' => 'product_share',
421 - 'title' => esc_html__( 'Product Share', 'shopbuilder' ),
422 - 'base_class' => Single\ProductShare::class,
423 - 'category' => 'product',
424 - 'active' => 'on',
425 - 'package' => 'free',
426 - 'fields' => [],
427 - ]
428 - ),
429 - 'product_sales_count' => apply_filters(
430 - 'rtsb/elements/product_sales_count/options',
431 - [
432 - 'id' => 'product_sales_count',
433 - 'title' => esc_html__( 'Sales Count', 'shopbuilder' ),
434 - 'category' => 'product',
435 - 'active' => '',
436 - 'package' => $this->pro_package(),
437 - 'fields' => [],
438 - ]
439 - ),
440 - 'flash_sale_countdown' => apply_filters(
441 - 'rtsb/elements/flash_sale_countdown/options',
442 - [
443 - 'id' => 'flash_sale_countdown',
444 - 'title' => esc_html__( 'Flash Sale Countdown', 'shopbuilder' ),
445 - 'category' => 'product',
446 - 'active' => '',
447 - 'package' => $this->pro_package(),
448 - 'fields' => [],
449 - ]
450 - ),
451 - 'product_size_chart' => apply_filters(
452 - 'rtsb/elements/product_size_chart/options',
453 - [
454 - 'id' => 'product_size_chart',
455 - 'title' => esc_html__( 'Size Chart', 'shopbuilder' ),
456 - 'category' => 'product',
457 - 'active' => '',
458 - 'package' => $this->pro_package(),
459 - 'fields' => [],
460 - ]
461 - ),
462 - 'product_quick_checkout' => apply_filters(
463 - 'rtsb/elements/product_quick_checkout/options',
464 - [
465 - 'id' => 'product_quick_checkout',
466 - 'title' => esc_html__( 'Quick Checkout', 'shopbuilder' ),
467 - 'category' => 'product',
468 - 'active' => '',
469 - 'package' => $this->pro_package(),
470 - 'fields' => [],
471 - ]
472 - ),
473 - 'product_tabs' => apply_filters(
474 - 'rtsb/elements/product_tabs/options',
475 - [
476 - 'id' => 'product_tabs',
477 - 'title' => esc_html__( 'Product Tabs', 'shopbuilder' ),
478 - 'base_class' => Single\ProductTabs::class,
479 - 'category' => 'product',
480 - 'active' => 'on',
481 - 'package' => 'free',
482 - 'fields' => [],
483 - ]
484 - ),
485 - 'advance_product_tabs' => apply_filters(
486 - 'rtsb/elements/advance_product_tabs/options',
487 - [
488 - 'id' => 'advance_product_tabs',
489 - 'title' => esc_html__( 'Advanced Product Tabs', 'shopbuilder' ),
490 - 'category' => 'product',
491 - 'active' => '',
492 - 'package' => $this->pro_package(),
493 - 'fields' => [],
494 - ]
495 - ),
496 - 'product_reviews' => apply_filters(
497 - 'rtsb/elements/product_reviews/options',
498 - [
499 - 'id' => 'product_reviews',
500 - 'title' => esc_html__( 'Product Reviews', 'shopbuilder' ),
501 - 'base_class' => Single\ProductReviews::class,
502 - 'category' => 'product',
503 - 'active' => 'on',
504 - 'package' => 'free',
505 - 'fields' => [],
506 - ]
507 - ),
508 - 'upsells_product' => apply_filters(
509 - 'rtsb/elements/upsells_product/options',
510 - [
511 - 'id' => 'upsells_product',
512 - 'title' => esc_html__( 'Upsell - Default Layout', 'shopbuilder' ),
513 - 'base_class' => Single\UpsellsProduct::class,
514 - 'category' => 'product',
515 - 'active' => 'on',
516 - 'package' => 'free',
517 - 'fields' => [],
518 - ]
519 - ),
520 - 'upsells_product_custom' => apply_filters(
521 - 'rtsb/elements/upsells_product_custom/options',
522 - [
523 - 'id' => 'upsells_product_custom',
524 - 'title' => esc_html__( 'Upsell - Custom Layouts', 'shopbuilder' ),
525 - 'base_class' => Single\UpsellsProductsCustom::class,
526 - 'category' => 'product',
527 - 'active' => 'on',
528 - 'package' => 'free',
529 - 'fields' => [],
530 - ]
531 - ),
532 - 'upsells_products_slider_custom' => apply_filters(
533 - 'rtsb/elements/upsells_products_slider_custom/options',
534 - [
535 - 'id' => 'upsells_products_slider_custom',
536 - 'title' => esc_html__( 'Upsell - Slider Layouts', 'shopbuilder' ),
537 - 'base_class' => Single\UpsellsProductsSlider::class,
538 - 'category' => 'product',
539 - 'active' => 'on',
540 - 'package' => 'free',
541 - 'fields' => [],
542 - ]
543 - ),
544 - 'related_product' => apply_filters(
545 - 'rtsb/elements/related_product/options',
546 - [
547 - 'id' => 'related_product',
548 - 'title' => esc_html__( 'Related - Default Layout', 'shopbuilder' ),
549 - 'base_class' => Single\RelatedProduct::class,
550 - 'category' => 'product',
551 - 'active' => 'on',
552 - 'package' => 'free',
553 - 'fields' => [],
554 - ]
555 - ),
556 - 'related_product_custom' => apply_filters(
557 - 'rtsb/elements/related_product_custom/options',
558 - [
559 - 'id' => 'related_product_custom',
560 - 'title' => esc_html__( 'Related - Custom Layouts', 'shopbuilder' ),
561 - 'base_class' => Single\RelatedProductsCustom::class,
562 - 'category' => 'product',
563 - 'active' => 'on',
564 - 'package' => 'free',
565 - 'fields' => [],
566 - ]
567 - ),
568 - 'related_products_slider_custom' => apply_filters(
569 - 'rtsb/elements/related_products_slider_custom/options',
570 - [
571 - 'id' => 'related_products_slider_custom',
572 - 'title' => esc_html__( 'Related - Slider Layouts', 'shopbuilder' ),
573 - 'base_class' => Single\RelatedProductsSlider::class,
574 - 'category' => 'product',
575 - 'active' => 'on',
576 - 'package' => 'free',
577 - 'fields' => [],
578 - ]
579 - ),
580 - ];
581 -
582 - return apply_filters( 'rtsb/core/elements/product_page/widget_list', $list );
583 - }
584 -
585 - /**
586 - * Product Archive Widget List.
587 - *
588 - * @return array
589 - */
590 - protected function shop_archive_page_widget_list() {
591 - $list = [
592 - 'archive_title' => apply_filters(
593 - 'rtsb/elements/archive_title/options',
594 - [
595 - 'id' => 'archive_title',
596 - 'title' => esc_html__( 'Archive Title', 'shopbuilder' ),
597 - 'base_class' => Archive\ArchiveTitle::class,
598 - 'category' => 'shop',
599 - 'active' => 'on',
600 - 'package' => 'free',
601 - 'fields' => [],
602 - ]
603 - ),
604 -
605 - 'archive_description' => apply_filters(
606 - 'rtsb/elements/archive_description/options',
607 - [
608 - 'id' => 'archive_description',
609 - 'title' => esc_html__( 'Archive Description', 'shopbuilder' ),
610 - 'base_class' => Archive\ArchiveDescription::class,
611 - 'category' => 'shop',
612 - 'active' => 'on',
613 - 'package' => 'free',
614 - 'fields' => [],
615 - ]
616 - ),
617 -
618 - 'products_archive_catalog' => apply_filters(
619 - 'rtsb/elements/products_archive_catalog/options',
620 - [
621 - 'id' => 'products_archive_catalog',
622 - 'title' => esc_html__( 'Products - Default Layout', 'shopbuilder' ),
623 - 'base_class' => Archive\ProductsArchive::class,
624 - 'category' => 'shop',
625 - 'active' => 'on',
626 - 'package' => 'free',
627 - 'fields' => [],
628 - ]
629 - ),
630 -
631 - 'products_archive_catalog_custom' => apply_filters(
632 - 'rtsb/elements/products_archive_catalog_custom/options',
633 - [
634 - 'id' => 'products_archive_catalog_custom',
635 - 'title' => esc_html__( 'Products - Custom Layouts', 'shopbuilder' ),
636 - 'base_class' => Archive\ProductsArchiveCustom::class,
637 - 'category' => 'shop',
638 - 'active' => 'on',
639 - 'package' => 'free',
640 - 'fields' => [],
641 - ]
642 - ),
643 -
644 - 'ajax_product_filters' => apply_filters(
645 - 'rtsb/elements/ajax_product_filters/options',
646 - [
647 - 'id' => 'ajax_product_filters',
648 - 'title' => esc_html__( 'Ajax Product Filters', 'shopbuilder' ),
649 - 'category' => 'shop',
650 - 'active' => 'on',
651 - 'package' => $this->pro_package(),
652 - 'fields' => [],
653 - ]
654 - ),
655 -
656 - 'archive_result_count' => apply_filters(
657 - 'rtsb/elements/archive_result_count/options',
658 - [
659 - 'id' => 'archive_result_count',
660 - 'title' => esc_html__( 'Result Count', 'shopbuilder' ),
661 - 'base_class' => Archive\ArchiveResultCount::class,
662 - 'category' => 'shop',
663 - 'active' => 'on',
664 - 'package' => 'free',
665 - 'fields' => [],
666 - ]
667 - ),
668 - 'archive_products_ordering' => apply_filters(
669 - 'rtsb/elements/archive_products_ordering/options',
670 - [
671 - 'id' => 'archive_products_ordering',
672 - 'title' => esc_html__( 'Products Ordering', 'shopbuilder' ),
673 - 'base_class' => Archive\ProductsOrdering::class,
674 - 'category' => 'shop',
675 - 'active' => 'on',
676 - 'package' => 'free',
677 - 'fields' => [],
678 - ]
679 - ),
680 - 'archive_product_mode' => apply_filters(
681 - 'rtsb/elements/archive_product_mode/options',
682 - [
683 - 'id' => 'archive_product_mode',
684 - 'title' => esc_html__( 'View Mode', 'shopbuilder' ),
685 - 'base_class' => Archive\ArchiveProductMode::class,
686 - 'category' => 'shop',
687 - 'active' => 'on',
688 - 'package' => 'free',
689 - 'fields' => [],
690 - ]
691 - ),
692 - ];
693 -
694 - return apply_filters( 'rtsb/core/elements/shop/widget_list', $list );
695 - }
696 -
697 - /**
698 - * Cart Page Widget List.
699 - *
700 - * @return array
701 - */
702 - protected function cart_page_widget_list() {
703 - $list = [
704 - 'cart_table' => apply_filters(
705 - 'rtsb/elements/cart_table/options',
706 - [
707 - 'id' => 'cart_table',
708 - 'title' => esc_html__( 'Cart Table', 'shopbuilder' ),
709 - 'base_class' => Cart\CartTable::class,
710 - 'category' => 'cart',
711 - 'active' => 'on',
712 - 'package' => 'free',
713 - 'fields' => [],
714 - ]
715 - ),
716 - 'cart_totals' => apply_filters(
717 - 'rtsb/elements/cart_totals/options',
718 - [
719 - 'id' => 'cart_totals',
720 - 'title' => esc_html__( 'Cart Totals', 'shopbuilder' ),
721 - 'base_class' => Cart\CartTotals::class,
722 - 'category' => 'cart',
723 - 'active' => 'on',
724 - 'package' => 'free',
725 - 'fields' => [],
726 - ]
727 - ),
728 - 'cart_coupon_form' => apply_filters(
729 - 'rtsb/elements/cart_coupon_form/options',
730 - [
731 - 'id' => 'cart_coupon_form',
732 - 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
733 - 'category' => 'cart',
734 - 'active' => 'on',
735 - 'package' => $this->pro_package(),
736 - 'fields' => [],
737 - ]
738 - ),
739 - 'cross_sells' => apply_filters(
740 - 'rtsb/elements/cross_sells/options',
741 - [
742 - 'id' => 'cross_sells',
743 - 'title' => esc_html__( 'Cross Sell - Default Layout', 'shopbuilder' ),
744 - 'base_class' => Cart\CrossSellProduct::class,
745 - 'category' => 'cart',
746 - 'active' => 'on',
747 - 'package' => 'free',
748 - 'fields' => [],
749 - ]
750 - ),
751 - 'cross_sells_custom' => apply_filters(
752 - 'rtsb/elements/cross_sells_custom/options',
753 - [
754 - 'id' => 'cross_sells_custom',
755 - 'title' => esc_html__( 'Cross Sell - Custom Layouts', 'shopbuilder' ),
756 - 'base_class' => Cart\CrossSellsProductsCustom::class,
757 - 'category' => 'cart',
758 - 'active' => 'on',
759 - 'package' => 'free',
760 - 'fields' => [],
761 - ]
762 - ),
763 - 'cross_sells_custom_slider' => apply_filters(
764 - 'rtsb/elements/cross_sells_custom_slider/options',
765 - [
766 - 'id' => 'cross_sells_custom_slider',
767 - 'title' => esc_html__( 'Cross Sell - Slider Layouts', 'shopbuilder' ),
768 - 'base_class' => Cart\CrossSellsProductsSlider::class,
769 - 'category' => 'cart',
770 - 'active' => 'on',
771 - 'package' => 'free',
772 - 'fields' => [],
773 - ]
774 - ),
775 - ];
776 -
777 - return apply_filters( 'rtsb/core/elements/cart/widget_list', $list );
778 - }
779 -
780 - /**
781 - * Checkout Page Widget List.
782 - *
783 - * @return array
784 - */
785 - protected function checkout_page_widget_list() {
786 - $list = [
787 - 'billing_form' => apply_filters(
788 - 'rtsb/elements/billing_form/options',
789 - [
790 - 'id' => 'billing_form',
791 - 'title' => esc_html__( 'Billing Form', 'shopbuilder' ),
792 - 'base_class' => Checkout\BillingForm::class,
793 - 'category' => 'checkout',
794 - 'active' => 'on',
795 - 'package' => 'free',
796 - 'fields' => [],
797 - ]
798 - ),
799 - 'shipping_form' => apply_filters(
800 - 'rtsb/elements/shipping_form/options',
801 - [
802 - 'id' => 'shipping_form',
803 - 'title' => esc_html__( 'Shipping Form', 'shopbuilder' ),
804 - 'base_class' => Checkout\ShippingForm::class,
805 - 'category' => 'checkout',
806 - 'active' => 'on',
807 - 'package' => 'free',
808 - 'fields' => [],
809 - ]
810 - ),
811 - 'order_notes' => apply_filters(
812 - 'rtsb/elements/order_notes/options',
813 - [
814 - 'id' => 'order_notes',
815 - 'title' => esc_html__( 'Order Notes', 'shopbuilder' ),
816 - 'base_class' => Checkout\OrderNotes::class,
817 - 'category' => 'checkout',
818 - 'active' => 'on',
819 - 'package' => 'free',
820 - 'fields' => [],
821 - ]
822 - ),
823 - 'order_review' => apply_filters(
824 - 'rtsb/elements/order_review/options',
825 - [
826 - 'id' => 'order_review',
827 - 'title' => esc_html__( 'Order Review', 'shopbuilder' ),
828 - 'base_class' => Checkout\OrderReview::class,
829 - 'category' => 'checkout',
830 - 'active' => 'on',
831 - 'package' => 'free',
832 - 'fields' => [],
833 - ]
834 - ),
835 - 'checkout_payment' => apply_filters(
836 - 'rtsb/elements/checkout_payment/options',
837 - [
838 - 'id' => 'checkout_payment',
839 - 'title' => esc_html__( 'Checkout Payment Method', 'shopbuilder' ),
840 - 'base_class' => Checkout\CheckoutPayment::class,
841 - 'category' => 'checkout',
842 - 'active' => 'on',
843 - 'package' => 'free',
844 - 'fields' => [],
845 - ]
846 - ),
847 - 'coupon_form' => apply_filters(
848 - 'rtsb/elements/coupon_form/options',
849 - [
850 - 'id' => 'coupon_form',
851 - 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
852 - 'base_class' => Checkout\CouponForm::class,
853 - 'category' => 'checkout',
854 - 'active' => 'on',
855 - 'package' => 'free',
856 - 'fields' => [],
857 - ]
858 - ),
859 - 'checkout_login_form' => apply_filters(
860 - 'rtsb/elements/checkout_login_form/options',
861 - [
862 - 'id' => 'checkout_login_form',
863 - 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
864 - 'base_class' => Checkout\CheckoutLoginForm::class,
865 - 'category' => 'checkout',
866 - 'active' => 'on',
867 - 'package' => 'free',
868 - 'fields' => [],
869 - ]
870 - ),
871 - 'shipping_method' => apply_filters(
872 - 'rtsb/elements/shipping_method/options',
873 - [
874 - 'id' => 'shipping_method',
875 - 'title' => esc_html__( 'Shipping Method', 'shopbuilder' ),
876 - 'base_class' => Checkout\ShippingMethod::class,
877 - 'category' => 'checkout',
878 - 'active' => 'on',
879 - 'package' => 'free',
880 - 'fields' => [],
881 - ]
882 - ),
883 - 'multi_step_checkout_widget' => apply_filters(
884 - 'rtsb/elements/multi_step_checkout_widget/options',
885 - [
886 - 'id' => 'multi_step_checkout_widget',
887 - 'title' => esc_html__( 'Multi Step Checkout', 'shopbuilder' ),
888 - 'base_class' => CheckoutPro\MultiStepCheckout::class,
889 - 'category' => 'checkout',
890 - 'active' => '',
891 - 'package' => $this->pro_package(),
892 - 'fields' => [],
893 - ]
894 - ),
895 -
896 - ];
897 -
898 - return apply_filters( 'rtsb/core/elements/checkout/widget_list', $list );
899 - }
900 -
901 - /**
902 - * Checkout Page Widget List.
903 - *
904 - * @return array
905 - */
906 - protected function thankyou_page_widget_list() {
907 - return [
908 - 'order_received_text' => apply_filters(
909 - 'rtsb/elements/order_received_text/options',
910 - [
911 - 'id' => 'order_received_text',
912 - 'title' => esc_html__( 'Order Received Text', 'shopbuilder' ),
913 - 'category' => 'thank_you',
914 - 'is_front_page' => 'thank_you',
915 - 'active' => 'on',
916 - 'package' => $this->pro_package(),
917 - 'fields' => [],
918 - ]
919 - ),
920 - 'order_details_summary' => apply_filters(
921 - 'rtsb/elements/order_details_summary/options',
922 - [
923 - 'id' => 'order_details_summary',
924 - 'title' => esc_html__( 'Order Details Summary', 'shopbuilder' ),
925 - 'category' => 'thank_you',
926 - 'is_front_page' => 'thank_you',
927 - 'active' => 'on',
928 - 'package' => $this->pro_package(),
929 - 'fields' => [],
930 - ]
931 - ),
932 - 'order_details_table' => apply_filters(
933 - 'rtsb/elements/order_details_table/options',
934 - [
935 - 'id' => 'order_details_table',
936 - 'title' => esc_html__( 'Order Details Table', 'shopbuilder' ),
937 - 'category' => 'thank_you',
938 - 'is_front_page' => 'thank_you',
939 - 'active' => 'on',
940 - 'package' => $this->pro_package(),
941 - 'fields' => [],
942 - ]
943 - ),
944 - 'downloadable_products' => apply_filters(
945 - 'rtsb/elements/downloadable_products/options',
946 - [
947 - 'id' => 'downloadable_products',
948 - 'title' => esc_html__( 'Downloadable Products', 'shopbuilder' ),
949 - 'category' => 'thank_you',
950 - 'is_front_page' => 'thank_you',
951 - 'active' => 'on',
952 - 'package' => $this->pro_package(),
953 - 'fields' => [],
954 - ]
955 - ),
956 - 'order_billing_address' => apply_filters(
957 - 'rtsb/elements/order_billing_address/options',
958 - [
959 - 'id' => 'order_billing_address',
960 - 'title' => esc_html__( 'Order Billing Address', 'shopbuilder' ),
961 - 'category' => 'thank_you',
962 - 'is_front_page' => 'thank_you',
963 - 'active' => 'on',
964 - 'package' => $this->pro_package(),
965 - 'fields' => [],
966 - ]
967 - ),
968 - 'order_shipping_address' => apply_filters(
969 - 'rtsb/elements/order_shipping_address/options',
970 - [
971 - 'id' => 'order_shipping_address',
972 - 'title' => esc_html__( 'Order Shipping Address', 'shopbuilder' ),
973 - 'category' => 'thank_you',
974 - 'is_front_page' => 'thank_you',
975 - 'active' => 'on',
976 - 'package' => $this->pro_package(),
977 - 'fields' => [],
978 - ]
979 - ),
980 - ];
981 - }
982 -
983 - /**
984 - * Checkout Page Widget List.
985 - *
986 - * @return array
987 - */
988 - protected function my_account_page_widget_list() {
989 - return [
990 -
991 - 'account_navigation_edit_shipping' => apply_filters(
992 - 'rtsb/elements/account_navigation_edit_shipping/options',
993 - [
994 - 'id' => 'account_navigation_edit_shipping',
995 - 'title' => esc_html__( 'Account Navigation', 'shopbuilder' ),
996 - 'category' => 'myaccount_dashboard',
997 - 'is_front_page' => 'all_myaccount_dashboard_inner',
998 - 'active' => 'on',
999 - 'package' => $this->pro_package(),
1000 - 'fields' => [],
1001 - ]
1002 - ),
1003 - 'account_dashboard' => apply_filters(
1004 - 'rtsb/elements/account_dashboard/options',
1005 - [
1006 - 'id' => 'account_dashboard',
1007 - 'title' => esc_html__( 'Account Dashboard', 'shopbuilder' ),
1008 - 'category' => 'myaccount_dashboard',
1009 - 'is_front_page' => 'myaccount_dashboard',
1010 - 'active' => 'on',
1011 - 'package' => $this->pro_package(),
1012 - 'fields' => [],
1013 - ]
1014 - ),
1015 - 'account_orders' => apply_filters(
1016 - 'rtsb/elements/account_orders/options',
1017 - [
1018 - 'id' => 'account_orders',
1019 - 'title' => esc_html__( 'Account Orders', 'shopbuilder' ),
1020 - 'category' => 'myaccount_dashboard',
1021 - 'is_front_page' => 'myaccount_order',
1022 - 'active' => 'on',
1023 - 'package' => $this->pro_package(),
1024 - 'fields' => [],
1025 - ]
1026 - ),
1027 - 'account_downloads' => apply_filters(
1028 - 'rtsb/elements/account_downloads/options',
1029 - [
1030 - 'id' => 'account_downloads',
1031 - 'title' => esc_html__( 'Account Downloads', 'shopbuilder' ),
1032 - 'category' => 'myaccount_dashboard',
1033 - 'is_front_page' => 'myaccount_downloads',
1034 - 'active' => 'on',
1035 - 'package' => $this->pro_package(),
1036 - 'fields' => [],
1037 - ]
1038 - ),
1039 - 'account_billing_address' => apply_filters(
1040 - 'rtsb/elements/account_billing_address/options',
1041 - [
1042 - 'id' => 'account_billing_address',
1043 - 'title' => esc_html__( 'Account Billing Address', 'shopbuilder' ),
1044 - 'category' => 'myaccount_dashboard',
1045 - 'is_front_page' => 'myaccount_address',
1046 - 'active' => 'on',
1047 - 'package' => $this->pro_package(),
1048 - 'fields' => [],
1049 - ]
1050 - ),
1051 - 'account_shipping_address' => apply_filters(
1052 - 'rtsb/elements/account_shipping_address/options',
1053 - [
1054 - 'id' => 'account_shipping_address',
1055 - 'title' => esc_html__( 'Account Shipping Address', 'shopbuilder' ),
1056 - 'category' => 'myaccount_dashboard',
1057 - 'is_front_page' => 'myaccount_address',
1058 - 'active' => 'on',
1059 - 'package' => $this->pro_package(),
1060 - 'fields' => [],
1061 - ]
1062 - ),
1063 - 'account_address_description' => apply_filters(
1064 - 'rtsb/elements/account_address_description/options',
1065 - [
1066 - 'id' => 'account_address_description',
1067 - 'title' => esc_html__( 'Account Address Description', 'shopbuilder' ),
1068 - 'category' => 'myaccount_dashboard',
1069 - 'is_front_page' => 'myaccount_address',
1070 - 'active' => 'on',
1071 - 'package' => $this->pro_package(),
1072 - 'fields' => [],
1073 - ]
1074 - ),
1075 - 'account_details' => apply_filters(
1076 - 'rtsb/elements/account_details/options',
1077 - [
1078 - 'id' => 'account_details',
1079 - 'title' => esc_html__( 'Account Edit / Details', 'shopbuilder' ),
1080 - 'category' => 'myaccount_dashboard',
1081 - 'is_front_page' => 'myaccount_edit_details',
1082 - 'active' => 'on',
1083 - 'package' => $this->pro_package(),
1084 - 'fields' => [],
1085 - ]
1086 - ),
1087 - 'account_order_status' => apply_filters(
1088 - 'rtsb/elements/account_order_status/options',
1089 - [
1090 - 'id' => 'account_order_status',
1091 - 'title' => esc_html__( 'Account Order Status', 'shopbuilder' ),
1092 - 'category' => 'myaccount_dashboard',
1093 - 'is_front_page' => 'myaccount_orders_details',
1094 - 'active' => 'on',
1095 - 'package' => $this->pro_package(),
1096 - 'fields' => [],
1097 - ]
1098 - ),
1099 - 'account_order_details_download' => apply_filters(
1100 - 'rtsb/elements/account_order_details_download/options',
1101 - [
1102 - 'id' => 'account_order_details_download',
1103 - 'title' => esc_html__( 'Account Order Download', 'shopbuilder' ),
1104 - 'category' => 'myaccount_dashboard',
1105 - 'is_front_page' => 'myaccount_orders_details',
1106 - 'active' => 'on',
1107 - 'package' => $this->pro_package(),
1108 - 'fields' => [],
1109 - ]
1110 - ),
1111 - 'account_order_details_note' => apply_filters(
1112 - 'rtsb/elements/account_order_details_note/options',
1113 - [
1114 - 'id' => 'account_order_details_note',
1115 - 'title' => esc_html__( 'Account Order Note', 'shopbuilder' ),
1116 - 'category' => 'myaccount_dashboard',
1117 - 'is_front_page' => 'myaccount_orders_details',
1118 - 'active' => 'on',
1119 - 'package' => $this->pro_package(),
1120 - 'fields' => [],
1121 - ]
1122 - ),
1123 - 'account_order_details_table' => apply_filters(
1124 - 'rtsb/elements/account_order_details_table/options',
1125 - [
1126 - 'id' => 'account_order_details_table',
1127 - 'title' => esc_html__( 'Account Order Table', 'shopbuilder' ),
1128 - 'category' => 'myaccount_dashboard',
1129 - 'is_front_page' => 'myaccount_orders_details',
1130 - 'active' => 'on',
1131 - 'package' => $this->pro_package(),
1132 - 'fields' => [],
1133 - ]
1134 - ),
1135 - 'account_order_details_order_again' => apply_filters(
1136 - 'rtsb/elements/account_order_details_order_again/options',
1137 - [
1138 - 'id' => 'account_order_details_order_again',
1139 - 'title' => esc_html__( 'Account Order Again Button', 'shopbuilder' ),
1140 - 'category' => 'myaccount_dashboard',
1141 - 'is_front_page' => 'myaccount_orders_details',
1142 - 'active' => 'on',
1143 - 'package' => $this->pro_package(),
1144 - 'fields' => [],
1145 - ]
1146 - ),
1147 - 'account_order_details_order_shipping' => apply_filters(
1148 - 'rtsb/elements/account_order_details_order_shipping/options',
1149 - [
1150 - 'id' => 'account_order_details_order_shipping',
1151 - 'title' => esc_html__( 'Account Order Shipping', 'shopbuilder' ),
1152 - 'category' => 'myaccount_dashboard',
1153 - 'is_front_page' => 'myaccount_orders_details',
1154 - 'active' => 'on',
1155 - 'package' => $this->pro_package(),
1156 - 'fields' => [],
1157 - ]
1158 - ),
1159 - 'account_order_details_order_billing' => apply_filters(
1160 - 'rtsb/elements/account_order_details_order_billing/options',
1161 - [
1162 - 'id' => 'account_order_details_order_billing',
1163 - 'title' => esc_html__( 'Account Order Billing', 'shopbuilder' ),
1164 - 'category' => 'myaccount_dashboard',
1165 - 'is_front_page' => 'myaccount_orders_details',
1166 - 'active' => 'on',
1167 - 'package' => $this->pro_package(),
1168 - 'fields' => [],
1169 - ]
1170 - ),
1171 - 'account_edit_billing_address' => apply_filters(
1172 - 'rtsb/elements/account_edit_billing_address/options',
1173 - [
1174 - 'id' => 'account_edit_billing_address',
1175 - 'title' => esc_html__( 'Edit Billing Address', 'shopbuilder' ),
1176 - 'category' => 'myaccount_dashboard',
1177 - 'is_front_page' => 'myaccount_edit_billing_address',
1178 - 'active' => 'on',
1179 - 'package' => $this->pro_package(),
1180 - 'fields' => [],
1181 - ]
1182 - ),
1183 - 'account_edit_shipping_address' => apply_filters(
1184 - 'rtsb/elements/account_edit_shipping_address/options',
1185 - [
1186 - 'id' => 'account_edit_shipping_address',
1187 - 'title' => esc_html__( 'Edit Shipping Address', 'shopbuilder' ),
1188 - 'category' => 'myaccount_dashboard',
1189 - 'is_front_page' => 'myaccount_edit_shipping_address',
1190 - 'active' => 'on',
1191 - 'package' => $this->pro_package(),
1192 - 'fields' => [],
1193 - ]
1194 - ),
1195 - ];
1196 - }
1197 -
1198 - /***
1199 - * @return array
1200 - */
1201 - protected function myaccount_auth_page_widget_list() {
1202 - return [
1203 - 'account_login' => apply_filters(
1204 - 'rtsb/elements/account_login/options',
1205 - [
1206 - 'id' => 'account_login',
1207 - 'title' => esc_html__( 'Login Register Form', 'shopbuilder' ),
1208 - 'category' => 'others_widget',
1209 - 'is_front_page' => 'myaccount_auth',
1210 - 'active' => 'on',
1211 - 'package' => $this->pro_package(),
1212 - 'fields' => [],
1213 - ]
1214 - ),
1215 - 'account_login_form' => apply_filters(
1216 - 'rtsb/elements/account_login_form/options',
1217 - [
1218 - 'id' => 'account_login_form',
1219 - 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
1220 - 'category' => 'others_widget',
1221 - 'is_front_page' => 'myaccount_auth',
1222 - 'active' => 'on',
1223 - 'package' => $this->pro_package(),
1224 - 'fields' => [],
1225 - ]
1226 - ),
1227 - 'account_registration_form' => apply_filters(
1228 - 'rtsb/elements/account_registration_form/options',
1229 - [
1230 - 'id' => 'account_registration_form',
1231 - 'title' => esc_html__( 'Registration Form', 'shopbuilder' ),
1232 - 'category' => 'others_widget',
1233 - 'is_front_page' => 'myaccount_auth',
1234 - 'active' => 'on',
1235 - 'package' => $this->pro_package(),
1236 - 'fields' => [],
1237 - ]
1238 - ),
1239 - 'account_lost_password' => apply_filters(
1240 - 'rtsb/elements/account_lost_password/options',
1241 - [
1242 - 'id' => 'account_lost_password',
1243 - 'title' => esc_html__( 'Lost Password Form', 'shopbuilder' ),
1244 - 'category' => 'others_widget',
1245 - 'is_front_page' => 'myaccount_lost_password',
1246 - 'active' => 'on',
1247 - 'package' => $this->pro_package(),
1248 - 'fields' => [],
1249 - ]
1250 - ),
1251 - ];
1252 - }
1253 -}
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 +}