PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.1.6
ShopBuilder – WooCommerce Builder For Elementor v2.1.6
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.6, at app/Models/ElementList.php

1,254 lines 39.2 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 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 }
1254