PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.1.0
ShopBuilder – WooCommerce Builder For Elementor v2.1.0
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
shopbuilder / app / Models / ElementList.php

ElementList.php in ShopBuilder – WooCommerce Builder For Elementor 2.1.0, at app/Models/ElementList.php

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