PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.2
ShopBuilder – WooCommerce Builder For Elementor v3.2.2
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 3.2.2, at app/Models/ElementList.php

1,876 lines 59.9 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 'quick_view' => [
56 'title' => esc_html__( 'Quick View', 'shopbuilder' ),
57 ],
58 'cart' => [
59 'title' => esc_html__( 'Cart', 'shopbuilder' ),
60 ],
61 'checkout' => [
62 'title' => esc_html__( 'Checkout', 'shopbuilder' ),
63 ],
64 'thank_you' => [
65 'title' => esc_html__( 'Order Received', 'shopbuilder' ),
66 ],
67 'myaccount_dashboard' => [
68 'title' => esc_html__( 'My Account', 'shopbuilder' ),
69 ],
70 'others_widget' => [
71 'title' => esc_html__( 'Others', 'shopbuilder' ),
72 ],
73 ]
74 );
75 }
76
77
78 /**
79 * Widget List.
80 *
81 * @return array
82 */
83 protected function raw_list() {
84 $list = $this->product_page_widget_list()
85 + $this->general_widget_list()
86 + $this->product_quick_view()
87 + $this->shop_archive_page_widget_list()
88 + $this->cart_page_widget_list()
89 + $this->checkout_page_widget_list()
90 + $this->thankyou_page_widget_list()
91 + $this->orderpay_page_widget_list()
92 + $this->my_account_page_widget_list()
93 + $this->myaccount_auth_page_widget_list();
94
95 return apply_filters( 'rtsb/core/elements/raw_list', $list );
96 }
97
98 /**
99 * GLobal Widget List.
100 *
101 * @return array
102 */
103 protected function general_widget_list() {
104 $list = [
105 'products_grid' => apply_filters(
106 'rtsb/elements/products_grid/options',
107 [
108 'id' => 'products_grid',
109 'title' => esc_html__( 'Products - Grid Layouts', 'shopbuilder' ),
110 'base_class' => General\ProductsGrid::class,
111 'category' => 'general',
112 'active' => 'on',
113 'package' => 'free',
114 'fields' => [],
115 ]
116 ),
117 'products_list' => apply_filters(
118 'rtsb/elements/products_list/options',
119 [
120 'id' => 'products_list',
121 'title' => esc_html__( 'Products - List Layouts', 'shopbuilder' ),
122 'base_class' => General\ProductsList::class,
123 'category' => 'general',
124 'active' => 'on',
125 'package' => 'free',
126 'fields' => [],
127 ]
128 ),
129 'products_slider' => apply_filters(
130 'rtsb/elements/products_slider/options',
131 [
132 'id' => 'products_slider',
133 'title' => esc_html__( 'Products - Slider Layouts', 'shopbuilder' ),
134 'base_class' => General\ProductsSlider::class,
135 'category' => 'general',
136 'active' => 'on',
137 'package' => 'free',
138 'fields' => [],
139 ]
140 ),
141 'highlighted_product' => apply_filters(
142 'rtsb/elements/highlighted_product/options',
143 [
144 'id' => 'highlighted_product',
145 'title' => esc_html__( 'Highlighted Product', 'shopbuilder' ),
146 'category' => 'general',
147 'active' => '',
148 'package' => $this->pro_package(),
149 'fields' => [],
150 ]
151 ),
152 'products_single_cateogory' => apply_filters(
153 'rtsb/elements/products_single_cateogory/options',
154 [
155 'id' => 'products_single_cateogory',
156 'title' => esc_html__( 'Single Category', 'shopbuilder' ),
157 'base_class' => General\ProductsSingleCategory::class,
158 'category' => 'general',
159 'active' => 'on',
160 'package' => 'free',
161 'fields' => [],
162 ]
163 ),
164 'product_cateogories' => apply_filters(
165 'rtsb/elements/product_cateogories/options',
166 [
167 'id' => 'product_cateogories',
168 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
169 'base_class' => General\ProductCategories::class,
170 'category' => 'general',
171 'active' => 'on',
172 'package' => 'free',
173 'fields' => [],
174 ]
175 ),
176 'product_lookbook' => apply_filters(
177 'rtsb/elements/product_lookbook/options',
178 [
179 'id' => 'product_lookbook',
180 'title' => esc_html__( 'Product LookBook', 'shopbuilder' ),
181 'category' => 'general',
182 'active' => '',
183 'package' => $this->pro_package(),
184 'fields' => [],
185 ]
186 ),
187 'rtsb_wishlist' => apply_filters(
188 'rtsb/elements/rtsb_wishlist/options',
189 [
190 'id' => 'rtsb_wishlist',
191 'title' => esc_html__( 'Wishlist Table', 'shopbuilder' ),
192 'base_class' => General\Wishlist::class,
193 'category' => 'general',
194 'active' => 'on',
195 'package' => 'free',
196 'fields' => [],
197 ]
198 ),
199 'social_share' => apply_filters(
200 'rtsb/elements/social_share/options',
201 [
202 'id' => 'social_share',
203 'title' => esc_html__( 'Social Share', 'shopbuilder' ),
204 'base_class' => General\SocialShare::class,
205 'category' => 'general',
206 'active' => 'on',
207 'package' => 'free',
208 'fields' => [],
209 ]
210 ),
211 'wc_breadcrumbs' => apply_filters(
212 'rtsb/elements/wc_breadcrumbs/options',
213 [
214 'id' => 'wc_breadcrumbs',
215 'title' => esc_html__( 'Breadcrumbs', 'shopbuilder' ),
216 'base_class' => General\ProductBreadcrumbs::class,
217 'category' => 'general',
218 'active' => 'on',
219 'package' => 'free',
220 'fields' => [],
221 ]
222 ),
223 'product_notice' => apply_filters(
224 'rtsb/elements/product_notice/options',
225 [
226 'id' => 'product_notice',
227 'title' => esc_html__( 'Notice', 'shopbuilder' ),
228 'base_class' => General\Notice::class,
229 'category' => 'general',
230 'active' => 'on',
231 'package' => 'free',
232 'fields' => [],
233 ]
234 ),
235 'advanced_heading' => apply_filters(
236 'rtsb/elements/advanced_heading/options',
237 [
238 'id' => 'advanced_heading',
239 'title' => esc_html__( 'Advanced Heading', 'shopbuilder' ),
240 'base_class' => General\AdvancedHeading\AdvancedHeading::class,
241 'category' => 'general',
242 'active' => 'on',
243 'package' => 'free',
244 'fields' => [],
245 ]
246 ),
247 'dropcaps' => apply_filters(
248 'rtsb/elements/dropcaps/options',
249 [
250 'id' => 'dropcaps',
251 'title' => esc_html__( 'Dropcaps', 'shopbuilder' ),
252 'base_class' => General\DropCaps\DropCaps::class,
253 'category' => 'general',
254 'active' => 'on',
255 'package' => 'free',
256 'fields' => [],
257 ]
258 ),
259 'shopbuilder_button' => apply_filters(
260 'rtsb/elements/shopbuilder_button/options',
261 [
262 'id' => 'shopbuilder_button',
263 'title' => esc_html__( 'Advanced Button', 'shopbuilder' ),
264 'base_class' => General\ShopBuilderButton\ShopBuilderButton::class,
265 'category' => 'general',
266 'active' => 'on',
267 'package' => 'free',
268 'fields' => [],
269 ]
270 ),
271 'shopbuilder_cta' => apply_filters(
272 'rtsb/elements/shopbuilder_cta/options',
273 [
274 'id' => 'shopbuilder_cta',
275 'title' => esc_html__( 'Call To Action', 'shopbuilder' ),
276 'base_class' => General\CallToAction\CallToAction::class,
277 'category' => 'general',
278 'active' => 'on',
279 'package' => 'free',
280 'fields' => [],
281 ]
282 ),
283 'shopbuilder_info_box' => apply_filters(
284 'rtsb/elements/shopbuilder_info_box/options',
285 [
286 'id' => 'shopbuilder_info_box',
287 'title' => esc_html__( 'Info Box', 'shopbuilder' ),
288 'base_class' => General\InfoBox\InfoBox::class,
289 'category' => 'general',
290 'active' => 'on',
291 'package' => 'free',
292 'fields' => [],
293 ]
294 ),
295 'shopbuilder_flip_box' => apply_filters(
296 'rtsb/elements/shopbuilder_flip_box/options',
297 [
298 'id' => 'shopbuilder_flip_box',
299 'title' => esc_html__( 'Flip Box', 'shopbuilder' ),
300 'base_class' => General\FlipBox\FlipBox::class,
301 'category' => 'general',
302 'active' => 'on',
303 'package' => 'free',
304 'fields' => [],
305 ]
306 ),
307 'shopbuilder_pricing_table' => apply_filters(
308 'rtsb/elements/shopbuilder_pricing_table/options',
309 [
310 'id' => 'shopbuilder_pricing_table',
311 'title' => esc_html__( 'Pricing Table', 'shopbuilder' ),
312 'base_class' => General\PricingTable\PricingTable::class,
313 'category' => 'general',
314 'active' => 'on',
315 'package' => 'free',
316 'fields' => [],
317 ]
318 ),
319 'image_hotspots' => apply_filters(
320 'rtsb/elements/image_hotspots/options',
321 [
322 'id' => 'image_hotspots',
323 'title' => esc_html__( 'Image Hotspots', 'shopbuilder' ),
324 'category' => 'general',
325 'active' => '',
326 'package' => $this->pro_package(),
327 'fields' => [],
328 ]
329 ),
330 'coupon_list' => apply_filters(
331 'rtsb/elements/coupon_list/options',
332 [
333 'id' => 'coupon_list',
334 'title' => esc_html__( 'Coupon List', 'shopbuilder' ),
335 'category' => 'general',
336 'active' => '',
337 'package' => $this->pro_package(),
338 'fields' => [],
339 ]
340 ),
341 'hero_slider' => apply_filters(
342 'rtsb/elements/hero_slider/options',
343 [
344 'id' => 'hero_slider',
345 'title' => esc_html__( 'Hero Slider', 'shopbuilder' ),
346 'category' => 'general',
347 'active' => '',
348 'package' => $this->pro_package(),
349 'fields' => [],
350 ]
351 ),
352 'shopbuilder_counter' => apply_filters(
353 'rtsb/elements/shopbuilder_counter/options',
354 [
355 'id' => 'shopbuilder_counter',
356 'title' => esc_html__( 'Fun Facts', 'shopbuilder' ),
357 'base_class' => General\Counter\Counter::class,
358 'category' => 'general',
359 'active' => 'on',
360 'package' => 'free',
361 'fields' => [],
362 ]
363 ),
364 'shopbuilder_countdown' => apply_filters(
365 'rtsb/elements/shopbuilder_countdown/options',
366 [
367 'id' => 'shopbuilder_countdown',
368 'title' => esc_html__( 'Countdown', 'shopbuilder' ),
369 'base_class' => General\CountDown\CountDown::class,
370 'category' => 'general',
371 'active' => 'on',
372 'package' => 'free',
373 'fields' => [],
374 ]
375 ),
376 'shopbuilder_progress_bar' => apply_filters(
377 'rtsb/elements/shopbuilder_progress_bar/options',
378 [
379 'id' => 'shopbuilder_progress_bar',
380 'title' => esc_html__( 'Progress Bar', 'shopbuilder' ),
381 'base_class' => General\ProgressBar\ProgressBar::class,
382 'category' => 'general',
383 'active' => 'on',
384 'package' => 'free',
385 'fields' => [],
386 ]
387 ),
388 'image_accordion' => apply_filters(
389 'rtsb/elements/image_accordion/options',
390 [
391 'id' => 'image_accordion',
392 'title' => esc_html__( 'Image Accordion', 'shopbuilder' ),
393 'base_class' => General\ImageAccordion\ImageAccordion::class,
394 'category' => 'general',
395 'active' => 'on',
396 'package' => 'free',
397 'fields' => [],
398 ]
399 ),
400 'shopbuilder_faq' => apply_filters(
401 'rtsb/elements/shopbuilder_faq/options',
402 [
403 'id' => 'shopbuilder_faq',
404 'title' => esc_html__( 'FAQ', 'shopbuilder' ),
405 'base_class' => General\ShopBuilderFaq\ShopBuilderFaq::class,
406 'category' => 'general',
407 'active' => 'on',
408 'package' => 'free',
409 'fields' => [],
410 ]
411 ),
412 'logo_slider_and_grid' => apply_filters(
413 'rtsb/elements/logo_slider_and_grid/options',
414 [
415 'id' => 'logo_slider_and_grid',
416 'title' => esc_html__( 'Logo Slider and Grid', 'shopbuilder' ),
417 'base_class' => General\LogoSliderAndGrid\LogoSliderAndGrid::class,
418 'category' => 'general',
419 'active' => 'on',
420 'package' => 'free',
421 'fields' => [],
422 ]
423 ),
424 'testimonial' => apply_filters(
425 'rtsb/elements/testimonial/options',
426 [
427 'id' => 'testimonial',
428 'title' => esc_html__( 'Testimonials', 'shopbuilder' ),
429 'base_class' => General\Testimonial\Testimonial::class,
430 'category' => 'general',
431 'active' => 'on',
432 'package' => 'free',
433 'fields' => [],
434 ]
435 ),
436 'team_member' => apply_filters(
437 'rtsb/elements/team_member/options',
438 [
439 'id' => 'team_member',
440 'title' => esc_html__( 'Team Members', 'shopbuilder' ),
441 'base_class' => General\TeamMember\TeamMember::class,
442 'category' => 'general',
443 'active' => 'on',
444 'package' => 'free',
445 'fields' => [],
446 ]
447 ),
448 'post_grid' => apply_filters(
449 'rtsb/elements/post_grid/options',
450 [
451 'id' => 'post_grid',
452 'title' => esc_html__( 'Post Grid', 'shopbuilder' ),
453 'base_class' => General\PostGrid\PostGrid::class,
454 'category' => 'general',
455 'active' => 'on',
456 'package' => 'free',
457 'fields' => [],
458 ]
459 ),
460 'post_list' => apply_filters(
461 'rtsb/elements/post_list/options',
462 [
463 'id' => 'post_list',
464 'title' => esc_html__( 'Post List', 'shopbuilder' ),
465 'base_class' => General\PostList\PostList::class,
466 'category' => 'general',
467 'active' => 'on',
468 'package' => 'free',
469 'fields' => [],
470 ]
471 ),
472 'advanced_ajax_search' => apply_filters(
473 'rtsb/elements/advanced_ajax_search/options',
474 [
475 'id' => 'advanced_ajax_search',
476 'title' => esc_html__( 'Advanced Ajax Search', 'shopbuilder' ),
477 'category' => 'general',
478 'active' => '',
479 'package' => $this->pro_package(),
480 'fields' => [],
481 ]
482 ),
483 ];
484 return apply_filters( 'rtsb/core/elements/general/widget_list', $list );
485 }
486
487 /**
488 * Product Single Widget List.
489 *
490 * @return array
491 */
492 protected function product_page_widget_list() {
493
494 $list = [
495 'product_title' => apply_filters(
496 'rtsb/elements/product_title/options',
497 [
498 'id' => 'product_title',
499 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
500 'base_class' => Single\ProductTitle::class,
501 'category' => 'product',
502 'active' => 'on',
503 'package' => 'free',
504 'fields' => [],
505 ]
506 ),
507 'product_description' => apply_filters(
508 'rtsb/elements/product_description/options',
509 [
510 'id' => 'product_description',
511 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
512 'base_class' => Single\ProductDescription::class,
513 'category' => 'product',
514 'active' => 'on',
515 'package' => 'free',
516 'fields' => [],
517 ]
518 ),
519 'product_short_description' => apply_filters(
520 'rtsb/elements/product_short_description/options',
521 [
522 'id' => 'product_short_description',
523 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
524 'base_class' => Single\ShortDescription::class,
525 'category' => 'product',
526 'active' => 'on',
527 'package' => 'free',
528 'fields' => [],
529 ]
530 ),
531 'product_images' => apply_filters(
532 'rtsb/elements/product_images/options',
533 [
534 'id' => 'product_images',
535 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
536 'base_class' => Single\ProductImages::class,
537 'category' => 'product',
538 'active' => 'on',
539 'package' => 'free',
540 'fields' => [],
541 ]
542 ),
543 'product_onsale' => apply_filters(
544 'rtsb/elements/product_onsale/options',
545 [
546 'id' => 'product_onsale',
547 'title' => esc_html__( 'Product Badges', 'shopbuilder' ),
548 'base_class' => Single\ProductBadges::class,
549 'category' => 'product',
550 'active' => 'on',
551 'package' => 'free',
552 'fields' => [],
553 ]
554 ),
555 'product_additional_info' => apply_filters(
556 'rtsb/elements/product_additional_info/options',
557 [
558 'id' => 'product_additional_info',
559 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
560 'base_class' => Single\AdditionalInformation::class,
561 'category' => 'product',
562 'active' => 'on',
563 'package' => 'free',
564 'fields' => [],
565 ]
566 ),
567 'product_price' => apply_filters(
568 'rtsb/elements/product_price/options',
569 [
570 'id' => 'product_price',
571 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
572 'base_class' => Single\ProductPrice::class,
573 'category' => 'product',
574 'active' => 'on',
575 'package' => 'free',
576 'fields' => [],
577 ]
578 ),
579 'product_meta' => apply_filters(
580 'rtsb/elements/product_meta/options',
581 [
582 'id' => 'product_meta',
583 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
584 'base_class' => Single\ProductMeta::class,
585 'category' => 'product',
586 'active' => 'on',
587 'package' => 'free',
588 'fields' => [],
589 ]
590 ),
591 'product_categories' => apply_filters(
592 'rtsb/elements/product_categories/options',
593 [
594 'id' => 'product_categories',
595 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
596 'base_class' => Single\ProductCats::class,
597 'category' => 'product',
598 'active' => 'on',
599 'package' => 'free',
600 'fields' => [],
601 ]
602 ),
603 'product_rating' => apply_filters(
604 'rtsb/elements/product_rating/options',
605 [
606 'id' => 'product_rating',
607 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
608 'base_class' => Single\ProductRating::class,
609 'category' => 'product',
610 'active' => 'on',
611 'package' => 'free',
612 'fields' => [],
613 ]
614 ),
615 'product_tags' => apply_filters(
616 'rtsb/elements/product_tags/options',
617 [
618 'id' => 'product_tags',
619 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
620 'base_class' => Single\ProductTags::class,
621 'category' => 'product',
622 'active' => 'on',
623 'package' => 'free',
624 'fields' => [],
625 ]
626 ),
627 'product_sku' => apply_filters(
628 'rtsb/elements/product_sku/options',
629 [
630 'id' => 'product_sku',
631 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
632 'base_class' => Single\ProductSKU::class,
633 'category' => 'product',
634 'active' => 'on',
635 'package' => 'free',
636 'fields' => [],
637 ]
638 ),
639 'product_stock' => apply_filters(
640 'rtsb/elements/product_stock/options',
641 [
642 'id' => 'product_stock',
643 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
644 'base_class' => Single\ProductStock::class,
645 'category' => 'product',
646 'active' => 'on',
647 'package' => 'free',
648 'fields' => [],
649 ]
650 ),
651 'actions_button' => apply_filters(
652 'rtsb/elements/actions_button/options',
653 [
654 'id' => 'actions_button',
655 'title' => esc_html__( 'Action Buttons', 'shopbuilder' ),
656 'base_class' => Single\ActionsButton::class,
657 'category' => 'product',
658 'active' => 'on',
659 'package' => 'free',
660 'fields' => [],
661 ]
662 ),
663 'product_add_to_cart' => apply_filters(
664 'rtsb/elements/product_add_to_cart/options',
665 [
666 'id' => 'product_add_to_cart',
667 'title' => esc_html__( 'Add to Cart', 'shopbuilder' ),
668 'base_class' => Single\ProductAddToCart::class,
669 'category' => 'product',
670 'active' => 'on',
671 'package' => 'free',
672 'fields' => [],
673 ]
674 ),
675 'product_share' => apply_filters(
676 'rtsb/elements/product_share/options',
677 [
678 'id' => 'product_share',
679 'title' => esc_html__( 'Product Share', 'shopbuilder' ),
680 'base_class' => Single\ProductShare::class,
681 'category' => 'product',
682 'active' => 'on',
683 'package' => 'free',
684 'fields' => [],
685 ]
686 ),
687 'product_sales_count' => apply_filters(
688 'rtsb/elements/product_sales_count/options',
689 [
690 'id' => 'product_sales_count',
691 'title' => esc_html__( 'Sales Count', 'shopbuilder' ),
692 'category' => 'product',
693 'active' => '',
694 'package' => $this->pro_package(),
695 'fields' => [],
696 ]
697 ),
698 'product_stock_counter' => apply_filters(
699 'rtsb/elements/product_stock_counter/options',
700 [
701 'id' => 'product_stock_counter',
702 'title' => esc_html__( 'Product Stock Count', 'shopbuilder' ),
703 'category' => 'product',
704 'active' => '',
705 'package' => $this->pro_package(),
706 'fields' => [],
707 ]
708 ),
709 'flash_sale_countdown' => apply_filters(
710 'rtsb/elements/flash_sale_countdown/options',
711 [
712 'id' => 'flash_sale_countdown',
713 'title' => esc_html__( 'Flash Sale Countdown', 'shopbuilder' ),
714 'category' => 'product',
715 'active' => '',
716 'package' => $this->pro_package(),
717 'fields' => [],
718 ]
719 ),
720 'product_size_chart' => apply_filters(
721 'rtsb/elements/product_size_chart/options',
722 [
723 'id' => 'product_size_chart',
724 'title' => esc_html__( 'Size Chart', 'shopbuilder' ),
725 'category' => 'product',
726 'active' => '',
727 'package' => $this->pro_package(),
728 'fields' => [],
729 ]
730 ),
731 'product_quick_checkout' => apply_filters(
732 'rtsb/elements/product_quick_checkout/options',
733 [
734 'id' => 'product_quick_checkout',
735 'title' => esc_html__( 'Quick Checkout', 'shopbuilder' ),
736 'category' => 'product',
737 'active' => '',
738 'package' => $this->pro_package(),
739 'fields' => [],
740 ]
741 ),
742 'product_tabs' => apply_filters(
743 'rtsb/elements/product_tabs/options',
744 [
745 'id' => 'product_tabs',
746 'title' => esc_html__( 'Product Tabs', 'shopbuilder' ),
747 'base_class' => Single\ProductTabs::class,
748 'category' => 'product',
749 'active' => 'on',
750 'package' => 'free',
751 'fields' => [],
752 ]
753 ),
754 'advance_product_tabs' => apply_filters(
755 'rtsb/elements/advance_product_tabs/options',
756 [
757 'id' => 'advance_product_tabs',
758 'title' => esc_html__( 'Advanced Product Tabs', 'shopbuilder' ),
759 'category' => 'product',
760 'active' => '',
761 'package' => $this->pro_package(),
762 'fields' => [],
763 ]
764 ),
765 'product_qr_code' => apply_filters(
766 'rtsb/elements/product_qr_code/options',
767 [
768 'id' => 'product_qr_code',
769 'title' => esc_html__( 'QR Code', 'shopbuilder' ),
770 'category' => 'product',
771 'active' => '',
772 'package' => $this->pro_package(),
773 'fields' => [],
774 ]
775 ),
776 'product_reviews' => apply_filters(
777 'rtsb/elements/product_reviews/options',
778 [
779 'id' => 'product_reviews',
780 'title' => esc_html__( 'Product Reviews', 'shopbuilder' ),
781 'base_class' => Single\ProductReviews::class,
782 'category' => 'product',
783 'active' => 'on',
784 'package' => 'free',
785 'fields' => [],
786 ]
787 ),
788 'upsells_product' => apply_filters(
789 'rtsb/elements/upsells_product/options',
790 [
791 'id' => 'upsells_product',
792 'title' => esc_html__( 'Upsell - Default Layout', 'shopbuilder' ),
793 'base_class' => Single\UpsellsProduct::class,
794 'category' => 'product',
795 'active' => 'on',
796 'package' => 'free',
797 'fields' => [],
798 ]
799 ),
800 'upsells_product_custom' => apply_filters(
801 'rtsb/elements/upsells_product_custom/options',
802 [
803 'id' => 'upsells_product_custom',
804 'title' => esc_html__( 'Upsell - Custom Layouts', 'shopbuilder' ),
805 'base_class' => Single\UpsellsProductsCustom::class,
806 'category' => 'product',
807 'active' => 'on',
808 'package' => 'free',
809 'fields' => [],
810 ]
811 ),
812 'upsells_products_slider_custom' => apply_filters(
813 'rtsb/elements/upsells_products_slider_custom/options',
814 [
815 'id' => 'upsells_products_slider_custom',
816 'title' => esc_html__( 'Upsell - Slider Layouts', 'shopbuilder' ),
817 'base_class' => Single\UpsellsProductsSlider::class,
818 'category' => 'product',
819 'active' => 'on',
820 'package' => 'free',
821 'fields' => [],
822 ]
823 ),
824 'related_product' => apply_filters(
825 'rtsb/elements/related_product/options',
826 [
827 'id' => 'related_product',
828 'title' => esc_html__( 'Related - Default Layout', 'shopbuilder' ),
829 'base_class' => Single\RelatedProduct::class,
830 'category' => 'product',
831 'active' => 'on',
832 'package' => 'free',
833 'fields' => [],
834 ]
835 ),
836 'related_product_custom' => apply_filters(
837 'rtsb/elements/related_product_custom/options',
838 [
839 'id' => 'related_product_custom',
840 'title' => esc_html__( 'Related - Custom Layouts', 'shopbuilder' ),
841 'base_class' => Single\RelatedProductsCustom::class,
842 'category' => 'product',
843 'active' => 'on',
844 'package' => 'free',
845 'fields' => [],
846 ]
847 ),
848 'related_products_slider_custom' => apply_filters(
849 'rtsb/elements/related_products_slider_custom/options',
850 [
851 'id' => 'related_products_slider_custom',
852 'title' => esc_html__( 'Related - Slider Layouts', 'shopbuilder' ),
853 'base_class' => Single\RelatedProductsSlider::class,
854 'category' => 'product',
855 'active' => 'on',
856 'package' => 'free',
857 'fields' => [],
858 ]
859 ),
860 ];
861
862 return apply_filters( 'rtsb/core/elements/product_page/widget_list', $list );
863 }
864
865 /**
866 * Product Single Widget List.
867 *
868 * @return array
869 */
870 protected function product_quick_view() {
871
872 $list = [
873 'qv_product_title' => apply_filters(
874 'rtsb/elements/qv_product_title/options',
875 [
876 'id' => 'qv_product_title',
877 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
878 'base_class' => Single\ProductTitle::class,
879 'category' => 'quick_view',
880 'is_front_page' => 'quick_view',
881 'active' => 'on',
882 'package' => $this->pro_package(),
883 'fields' => [],
884 ]
885 ),
886 'qv_product_description' => apply_filters(
887 'rtsb/elements/qv_product_description/options',
888 [
889 'id' => 'qv_product_description',
890 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
891 'base_class' => Single\ProductDescription::class,
892 'category' => 'quick_view',
893 'is_front_page' => 'quick_view',
894 'active' => 'on',
895 'package' => $this->pro_package(),
896 'fields' => [],
897 ]
898 ),
899 'qv_product_short_description' => apply_filters(
900 'rtsb/elements/qv_product_short_description/options',
901 [
902 'id' => 'qv_product_short_description',
903 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
904 'base_class' => Single\ShortDescription::class,
905 'category' => 'quick_view',
906 'is_front_page' => 'quick_view',
907 'active' => 'on',
908 'package' => $this->pro_package(),
909 'fields' => [],
910 ]
911 ),
912 'qv_product_images' => apply_filters(
913 'rtsb/elements/qv_product_images/options',
914 [
915 'id' => 'qv_product_images',
916 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
917 'base_class' => Single\ProductImages::class,
918 'category' => 'quick_view',
919 'is_front_page' => 'quick_view',
920 'active' => 'on',
921 'package' => $this->pro_package(),
922 'fields' => [],
923 ]
924 ),
925 'qv_product_badges' => apply_filters(
926 'rtsb/elements/qv_product_badges/options',
927 [
928 'id' => 'qv_product_badges',
929 'title' => esc_html__( 'Product Badges', 'shopbuilder' ),
930 'base_class' => Single\ProductBadges::class,
931 'category' => 'quick_view',
932 'is_front_page' => 'quick_view',
933 'active' => 'on',
934 'package' => $this->pro_package(),
935 'fields' => [],
936 ]
937 ),
938 'qv_product_additional_info' => apply_filters(
939 'rtsb/elements/qv_product_additional_info/options',
940 [
941 'id' => 'qv_product_additional_info',
942 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
943 'base_class' => Single\AdditionalInformation::class,
944 'category' => 'quick_view',
945 'is_front_page' => 'quick_view',
946 'active' => 'on',
947 'package' => $this->pro_package(),
948 'fields' => [],
949 ]
950 ),
951 'qv_product_price' => apply_filters(
952 'rtsb/elements/qv_product_price/options',
953 [
954 'id' => 'qv_product_price',
955 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
956 'base_class' => Single\ProductPrice::class,
957 'category' => 'quick_view',
958 'is_front_page' => 'quick_view',
959 'active' => 'on',
960 'package' => $this->pro_package(),
961 'fields' => [],
962 ]
963 ),
964 'qv_product_meta' => apply_filters(
965 'rtsb/elements/qv_product_meta/options',
966 [
967 'id' => 'qv_product_meta',
968 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
969 'base_class' => Single\ProductMeta::class,
970 'category' => 'quick_view',
971 'is_front_page' => 'quick_view',
972 'active' => 'on',
973 'package' => $this->pro_package(),
974 'fields' => [],
975 ]
976 ),
977 'qv_product_categories' => apply_filters(
978 'rtsb/elements/qv_product_categories/options',
979 [
980 'id' => 'qv_product_categories',
981 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
982 'base_class' => Single\ProductCats::class,
983 'category' => 'quick_view',
984 'is_front_page' => 'quick_view',
985 'active' => 'on',
986 'package' => $this->pro_package(),
987 'fields' => [],
988 ]
989 ),
990 'qv_product_rating' => apply_filters(
991 'rtsb/elements/qv_product_rating/options',
992 [
993 'id' => 'qv_product_rating',
994 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
995 'base_class' => Single\ProductRating::class,
996 'category' => 'quick_view',
997 'is_front_page' => 'quick_view',
998 'active' => 'on',
999 'package' => $this->pro_package(),
1000 'fields' => [],
1001 ]
1002 ),
1003 'qv_product_tags' => apply_filters(
1004 'rtsb/elements/qv_product_tags/options',
1005 [
1006 'id' => 'qv_product_tags',
1007 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
1008 'base_class' => Single\ProductTags::class,
1009 'category' => 'quick_view',
1010 'is_front_page' => 'quick_view',
1011 'active' => 'on',
1012 'package' => $this->pro_package(),
1013 'fields' => [],
1014 ]
1015 ),
1016 'qv_product_sku' => apply_filters(
1017 'rtsb/elements/qv_product_sku/options',
1018 [
1019 'id' => 'qv_product_sku',
1020 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
1021 'base_class' => Single\ProductSKU::class,
1022 'category' => 'quick_view',
1023 'is_front_page' => 'quick_view',
1024 'active' => 'on',
1025 'package' => $this->pro_package(),
1026 'fields' => [],
1027 ]
1028 ),
1029 'qv_product_stock' => apply_filters(
1030 'rtsb/elements/qv_product_stock/options',
1031 [
1032 'id' => 'qv_product_stock',
1033 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
1034 'base_class' => Single\ProductStock::class,
1035 'category' => 'quick_view',
1036 'is_front_page' => 'quick_view',
1037 'active' => 'on',
1038 'package' => $this->pro_package(),
1039 'fields' => [],
1040 ]
1041 ),
1042 'qv_actions_button' => apply_filters(
1043 'rtsb/elements/qv_actions_button/options',
1044 [
1045 'id' => 'qv_actions_button',
1046 'title' => esc_html__( 'Action Buttons', 'shopbuilder' ),
1047 'base_class' => Single\ActionsButton::class,
1048 'category' => 'quick_view',
1049 'is_front_page' => 'quick_view',
1050 'active' => 'on',
1051 'package' => $this->pro_package(),
1052 'fields' => [],
1053 ]
1054 ),
1055 'qv_product_add_to_cart' => apply_filters(
1056 'rtsb/elements/qv_product_add_to_cart/options',
1057 [
1058 'id' => 'qv_product_add_to_cart',
1059 'title' => esc_html__( 'Add to Cart', 'shopbuilder' ),
1060 'base_class' => Single\ProductAddToCart::class,
1061 'category' => 'quick_view',
1062 'is_front_page' => 'quick_view',
1063 'active' => 'on',
1064 'package' => $this->pro_package(),
1065 'fields' => [],
1066 ]
1067 ),
1068 'qv_product_sales_count' => apply_filters(
1069 'rtsb/elements/qv_product_sales_count/options',
1070 [
1071 'id' => 'qv_product_sales_count',
1072 'title' => esc_html__( 'Sales Count', 'shopbuilder' ),
1073 'category' => 'quick_view',
1074 'is_front_page' => 'quick_view',
1075 'active' => 'on',
1076 'package' => $this->pro_package(),
1077 'fields' => [],
1078 ]
1079 ),
1080 'qv_social_share' => apply_filters(
1081 'rtsb/settings/qv_social_share/options',
1082 [
1083 'id' => 'qv_social_share',
1084 'title' => esc_html__( 'Social Share', 'shopbuilder' ),
1085 'base_class' => General\SocialShare::class,
1086 'active' => 'on',
1087 'category' => 'quick_view',
1088 'is_front_page' => 'quick_view',
1089 'package' => $this->pro_package(),
1090 'fields' => [],
1091 ]
1092 ),
1093 'qv_product_quick_checkout' => apply_filters(
1094 'rtsb/elements/qv_product_quick_checkout/options',
1095 [
1096 'id' => 'qv_product_quick_checkout',
1097 'title' => esc_html__( 'Quick Checkout', 'shopbuilder' ),
1098 'category' => 'quick_view',
1099 'is_front_page' => 'quick_view',
1100 'active' => 'on',
1101 'package' => $this->pro_package(),
1102 'fields' => [],
1103 ]
1104 ),
1105
1106 'qv_product_size_chart' => apply_filters(
1107 'rtsb/elements/qv_product_size_chart/options',
1108 [
1109 'id' => 'qv_product_size_chart',
1110 'title' => esc_html__( 'Size Chart', 'shopbuilder' ),
1111 'category' => 'quick_view',
1112 'is_front_page' => 'quick_view',
1113 'active' => '',
1114 'package' => $this->pro_package(),
1115 'fields' => [],
1116 ]
1117 ),
1118
1119 ];
1120
1121 return apply_filters( 'rtsb/core/elements/quick_view/widget_list', $list );
1122 }
1123
1124 /**
1125 * Product Archive Widget List.
1126 *
1127 * @return array
1128 */
1129 protected function shop_archive_page_widget_list() {
1130 $list = [
1131 'archive_title' => apply_filters(
1132 'rtsb/elements/archive_title/options',
1133 [
1134 'id' => 'archive_title',
1135 'title' => esc_html__( 'Archive Title', 'shopbuilder' ),
1136 'base_class' => Archive\ArchiveTitle::class,
1137 'category' => 'shop',
1138 'active' => 'on',
1139 'package' => 'free',
1140 'fields' => [],
1141 ]
1142 ),
1143
1144 'archive_description' => apply_filters(
1145 'rtsb/elements/archive_description/options',
1146 [
1147 'id' => 'archive_description',
1148 'title' => esc_html__( 'Archive Description', 'shopbuilder' ),
1149 'base_class' => Archive\ArchiveDescription::class,
1150 'category' => 'shop',
1151 'active' => 'on',
1152 'package' => 'free',
1153 'fields' => [],
1154 ]
1155 ),
1156
1157 'products_archive_catalog' => apply_filters(
1158 'rtsb/elements/products_archive_catalog/options',
1159 [
1160 'id' => 'products_archive_catalog',
1161 'title' => esc_html__( 'Products - Default Layout', 'shopbuilder' ),
1162 'base_class' => Archive\ProductsArchive::class,
1163 'category' => 'shop',
1164 'active' => 'on',
1165 'package' => 'free',
1166 'fields' => [],
1167 ]
1168 ),
1169
1170 'products_archive_catalog_custom' => apply_filters(
1171 'rtsb/elements/products_archive_catalog_custom/options',
1172 [
1173 'id' => 'products_archive_catalog_custom',
1174 'title' => esc_html__( 'Products - Custom Layouts', 'shopbuilder' ),
1175 'base_class' => Archive\ProductsArchiveCustom::class,
1176 'category' => 'shop',
1177 'active' => 'on',
1178 'package' => 'free',
1179 'fields' => [],
1180 ]
1181 ),
1182
1183 'ajax_product_filters' => apply_filters(
1184 'rtsb/elements/ajax_product_filters/options',
1185 [
1186 'id' => 'ajax_product_filters',
1187 'title' => esc_html__( 'Ajax Product Filters', 'shopbuilder' ),
1188 'category' => 'shop',
1189 'active' => 'on',
1190 'package' => $this->pro_package(),
1191 'fields' => [],
1192 ]
1193 ),
1194 'product_filters' => apply_filters(
1195 'rtsb/elements/product_filters/options',
1196 [
1197 'id' => 'product_filters',
1198 'title' => esc_html__( 'Product Filters', 'shopbuilder' ),
1199 'base_class' => Archive\ProductFilters::class,
1200 'category' => 'shop',
1201 'active' => 'on',
1202 'package' => 'free',
1203 'fields' => [],
1204 ]
1205 ),
1206
1207 'archive_result_count' => apply_filters(
1208 'rtsb/elements/archive_result_count/options',
1209 [
1210 'id' => 'archive_result_count',
1211 'title' => esc_html__( 'Result Count', 'shopbuilder' ),
1212 'base_class' => Archive\ArchiveResultCount::class,
1213 'category' => 'shop',
1214 'active' => 'on',
1215 'package' => 'free',
1216 'fields' => [],
1217 ]
1218 ),
1219 'archive_products_ordering' => apply_filters(
1220 'rtsb/elements/archive_products_ordering/options',
1221 [
1222 'id' => 'archive_products_ordering',
1223 'title' => esc_html__( 'Products Ordering', 'shopbuilder' ),
1224 'base_class' => Archive\ProductsOrdering::class,
1225 'category' => 'shop',
1226 'active' => 'on',
1227 'package' => 'free',
1228 'fields' => [],
1229 ]
1230 ),
1231 'archive_product_mode' => apply_filters(
1232 'rtsb/elements/archive_product_mode/options',
1233 [
1234 'id' => 'archive_product_mode',
1235 'title' => esc_html__( 'View Mode', 'shopbuilder' ),
1236 'base_class' => Archive\ArchiveProductMode::class,
1237 'category' => 'shop',
1238 'active' => 'on',
1239 'package' => 'free',
1240 'fields' => [],
1241 ]
1242 ),
1243 ];
1244
1245 return apply_filters( 'rtsb/core/elements/shop/widget_list', $list );
1246 }
1247
1248 /**
1249 * Cart Page Widget List.
1250 *
1251 * @return array
1252 */
1253 protected function cart_page_widget_list() {
1254 $list = [
1255 'cart_table' => apply_filters(
1256 'rtsb/elements/cart_table/options',
1257 [
1258 'id' => 'cart_table',
1259 'title' => esc_html__( 'Cart Table', 'shopbuilder' ),
1260 'base_class' => Cart\CartTable::class,
1261 'category' => 'cart',
1262 'active' => 'on',
1263 'package' => 'free',
1264 'fields' => [],
1265 ]
1266 ),
1267 'cart_totals' => apply_filters(
1268 'rtsb/elements/cart_totals/options',
1269 [
1270 'id' => 'cart_totals',
1271 'title' => esc_html__( 'Cart Totals', 'shopbuilder' ),
1272 'base_class' => Cart\CartTotals::class,
1273 'category' => 'cart',
1274 'active' => 'on',
1275 'package' => 'free',
1276 'fields' => [],
1277 ]
1278 ),
1279 'cart_coupon_form' => apply_filters(
1280 'rtsb/elements/cart_coupon_form/options',
1281 [
1282 'id' => 'cart_coupon_form',
1283 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
1284 'category' => 'cart',
1285 'active' => 'on',
1286 'package' => $this->pro_package(),
1287 'fields' => [],
1288 ]
1289 ),
1290 'cross_sells' => apply_filters(
1291 'rtsb/elements/cross_sells/options',
1292 [
1293 'id' => 'cross_sells',
1294 'title' => esc_html__( 'Cross Sell - Default Layout', 'shopbuilder' ),
1295 'base_class' => Cart\CrossSellProduct::class,
1296 'category' => 'cart',
1297 'active' => 'on',
1298 'package' => 'free',
1299 'fields' => [],
1300 ]
1301 ),
1302 'cross_sells_custom' => apply_filters(
1303 'rtsb/elements/cross_sells_custom/options',
1304 [
1305 'id' => 'cross_sells_custom',
1306 'title' => esc_html__( 'Cross Sell - Custom Layouts', 'shopbuilder' ),
1307 'base_class' => Cart\CrossSellsProductsCustom::class,
1308 'category' => 'cart',
1309 'active' => 'on',
1310 'package' => 'free',
1311 'fields' => [],
1312 ]
1313 ),
1314 'cross_sells_custom_slider' => apply_filters(
1315 'rtsb/elements/cross_sells_custom_slider/options',
1316 [
1317 'id' => 'cross_sells_custom_slider',
1318 'title' => esc_html__( 'Cross Sell - Slider Layouts', 'shopbuilder' ),
1319 'base_class' => Cart\CrossSellsProductsSlider::class,
1320 'category' => 'cart',
1321 'active' => 'on',
1322 'package' => 'free',
1323 'fields' => [],
1324 ]
1325 ),
1326 ];
1327
1328 return apply_filters( 'rtsb/core/elements/cart/widget_list', $list );
1329 }
1330
1331 /**
1332 * Checkout Page Widget List.
1333 *
1334 * @return array
1335 */
1336 protected function checkout_page_widget_list() {
1337 $list = [
1338 'billing_form' => apply_filters(
1339 'rtsb/elements/billing_form/options',
1340 [
1341 'id' => 'billing_form',
1342 'title' => esc_html__( 'Billing Form', 'shopbuilder' ),
1343 'base_class' => Checkout\BillingForm::class,
1344 'category' => 'checkout',
1345 'active' => 'on',
1346 'package' => 'free',
1347 'fields' => [],
1348 ]
1349 ),
1350 'shipping_form' => apply_filters(
1351 'rtsb/elements/shipping_form/options',
1352 [
1353 'id' => 'shipping_form',
1354 'title' => esc_html__( 'Shipping Form', 'shopbuilder' ),
1355 'base_class' => Checkout\ShippingForm::class,
1356 'category' => 'checkout',
1357 'active' => 'on',
1358 'package' => 'free',
1359 'fields' => [],
1360 ]
1361 ),
1362 'order_notes' => apply_filters(
1363 'rtsb/elements/order_notes/options',
1364 [
1365 'id' => 'order_notes',
1366 'title' => esc_html__( 'Order Notes', 'shopbuilder' ),
1367 'base_class' => Checkout\OrderNotes::class,
1368 'category' => 'checkout',
1369 'active' => 'on',
1370 'package' => 'free',
1371 'fields' => [],
1372 ]
1373 ),
1374 'order_review' => apply_filters(
1375 'rtsb/elements/order_review/options',
1376 [
1377 'id' => 'order_review',
1378 'title' => esc_html__( 'Order Review', 'shopbuilder' ),
1379 'base_class' => Checkout\OrderReview::class,
1380 'category' => 'checkout',
1381 'active' => 'on',
1382 'package' => 'free',
1383 'fields' => [],
1384 ]
1385 ),
1386 'checkout_payment' => apply_filters(
1387 'rtsb/elements/checkout_payment/options',
1388 [
1389 'id' => 'checkout_payment',
1390 'title' => esc_html__( 'Checkout Payment Method', 'shopbuilder' ),
1391 'base_class' => Checkout\CheckoutPayment::class,
1392 'category' => 'checkout',
1393 'active' => 'on',
1394 'package' => 'free',
1395 'fields' => [],
1396 ]
1397 ),
1398 'coupon_form' => apply_filters(
1399 'rtsb/elements/coupon_form/options',
1400 [
1401 'id' => 'coupon_form',
1402 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
1403 'base_class' => Checkout\CouponForm::class,
1404 'category' => 'checkout',
1405 'active' => 'on',
1406 'package' => 'free',
1407 'fields' => [],
1408 ]
1409 ),
1410 'checkout_login_form' => apply_filters(
1411 'rtsb/elements/checkout_login_form/options',
1412 [
1413 'id' => 'checkout_login_form',
1414 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
1415 'base_class' => Checkout\CheckoutLoginForm::class,
1416 'category' => 'checkout',
1417 'active' => 'on',
1418 'package' => 'free',
1419 'fields' => [],
1420 ]
1421 ),
1422 'shipping_method' => apply_filters(
1423 'rtsb/elements/shipping_method/options',
1424 [
1425 'id' => 'shipping_method',
1426 'title' => esc_html__( 'Shipping Method', 'shopbuilder' ),
1427 'base_class' => Checkout\ShippingMethod::class,
1428 'category' => 'checkout',
1429 'active' => 'on',
1430 'package' => 'free',
1431 'fields' => [],
1432 ]
1433 ),
1434 'multi_step_checkout_widget' => apply_filters(
1435 'rtsb/elements/multi_step_checkout_widget/options',
1436 [
1437 'id' => 'multi_step_checkout_widget',
1438 'title' => esc_html__( 'Multi Step Checkout', 'shopbuilder' ),
1439 'base_class' => CheckoutPro\MultiStepCheckout::class,
1440 'category' => 'checkout',
1441 'active' => '',
1442 'package' => $this->pro_package(),
1443 'fields' => [],
1444 ]
1445 ),
1446
1447 ];
1448
1449 return apply_filters( 'rtsb/core/elements/checkout/widget_list', $list );
1450 }
1451
1452 /**
1453 * Checkout Page Widget List.
1454 *
1455 * @return array
1456 */
1457 protected function thankyou_page_widget_list() {
1458 return [
1459 'order_received_text' => apply_filters(
1460 'rtsb/elements/order_received_text/options',
1461 [
1462 'id' => 'order_received_text',
1463 'title' => esc_html__( 'Order Received Text', 'shopbuilder' ),
1464 'category' => 'thank_you',
1465 'is_front_page' => 'thank_you',
1466 'active' => 'on',
1467 'package' => $this->pro_package(),
1468 'fields' => [],
1469 ]
1470 ),
1471 'order_details_summary' => apply_filters(
1472 'rtsb/elements/order_details_summary/options',
1473 [
1474 'id' => 'order_details_summary',
1475 'title' => esc_html__( 'Order Details Summary', 'shopbuilder' ),
1476 'category' => 'thank_you',
1477 'is_front_page' => 'thank_you',
1478 'active' => 'on',
1479 'package' => $this->pro_package(),
1480 'fields' => [],
1481 ]
1482 ),
1483 'order_details_table' => apply_filters(
1484 'rtsb/elements/order_details_table/options',
1485 [
1486 'id' => 'order_details_table',
1487 'title' => esc_html__( 'Order Details Table', 'shopbuilder' ),
1488 'category' => 'thank_you',
1489 'is_front_page' => 'thank_you',
1490 'active' => 'on',
1491 'package' => $this->pro_package(),
1492 'fields' => [],
1493 ]
1494 ),
1495 'downloadable_products' => apply_filters(
1496 'rtsb/elements/downloadable_products/options',
1497 [
1498 'id' => 'downloadable_products',
1499 'title' => esc_html__( 'Downloadable Products', 'shopbuilder' ),
1500 'category' => 'thank_you',
1501 'is_front_page' => 'thank_you',
1502 'active' => 'on',
1503 'package' => $this->pro_package(),
1504 'fields' => [],
1505 ]
1506 ),
1507 'order_billing_address' => apply_filters(
1508 'rtsb/elements/order_billing_address/options',
1509 [
1510 'id' => 'order_billing_address',
1511 'title' => esc_html__( 'Order Billing Address', 'shopbuilder' ),
1512 'category' => 'thank_you',
1513 'is_front_page' => 'thank_you',
1514 'active' => 'on',
1515 'package' => $this->pro_package(),
1516 'fields' => [],
1517 ]
1518 ),
1519 'order_shipping_address' => apply_filters(
1520 'rtsb/elements/order_shipping_address/options',
1521 [
1522 'id' => 'order_shipping_address',
1523 'title' => esc_html__( 'Order Shipping Address', 'shopbuilder' ),
1524 'category' => 'thank_you',
1525 'is_front_page' => 'thank_you',
1526 'active' => 'on',
1527 'package' => $this->pro_package(),
1528 'fields' => [],
1529 ]
1530 ),
1531 'order_custom_fields_data' => apply_filters(
1532 'rtsb/elements/order_custom_fields_data/options',
1533 [
1534 'id' => 'order_custom_fields_data',
1535 'title' => esc_html__( 'Checkout Form Custom Fields Data', 'shopbuilder' ),
1536 'category' => 'thank_you',
1537 'is_front_page' => 'thank_you',
1538 'active' => 'on',
1539 'package' => $this->pro_package(),
1540 'fields' => [],
1541 ]
1542 ),
1543 ];
1544 }
1545 /**
1546 * Checkout Page Order Pay Widget List.
1547 *
1548 * @return array
1549 */
1550 protected function orderpay_page_widget_list() {
1551 return [
1552 'order_pay_form' => apply_filters(
1553 'rtsb/elements/order_pay_form/options',
1554 [
1555 'id' => 'order_pay_form',
1556 'title' => esc_html__( 'Order Pay Form', 'shopbuilder' ),
1557 'category' => 'myaccount_dashboard',
1558 'is_front_page' => 'all_myaccount_dashboard_inner',
1559 'active' => 'on',
1560 'package' => $this->pro_package(),
1561 'fields' => [],
1562 ]
1563 ),
1564
1565 ];
1566 }
1567
1568 /**
1569 * Checkout Page Widget List.
1570 *
1571 * @return array
1572 */
1573 protected function my_account_page_widget_list() {
1574 $widgets = [
1575 'account_avatar' => apply_filters(
1576 'rtsb/elements/account_avatar/options',
1577 [
1578 'id' => 'account_avatar',
1579 'title' => esc_html__( 'Account Avatar', 'shopbuilder' ),
1580 'category' => 'myaccount_dashboard',
1581 'is_front_page' => 'all_myaccount_dashboard_inner',
1582 'active' => 'on',
1583 'package' => $this->pro_package(),
1584 'fields' => [],
1585 ]
1586 ),
1587 'account_navigation_edit_shipping' => apply_filters(
1588 'rtsb/elements/account_navigation_edit_shipping/options',
1589 [
1590 'id' => 'account_navigation_edit_shipping',
1591 'title' => esc_html__( 'Account Navigation', 'shopbuilder' ),
1592 'category' => 'myaccount_dashboard',
1593 'is_front_page' => 'all_myaccount_dashboard_inner',
1594 'active' => 'on',
1595 'package' => $this->pro_package(),
1596 'fields' => [],
1597 ]
1598 ),
1599 'account_dashboard' => apply_filters(
1600 'rtsb/elements/account_dashboard/options',
1601 [
1602 'id' => 'account_dashboard',
1603 'title' => esc_html__( 'Account Dashboard', 'shopbuilder' ),
1604 'category' => 'myaccount_dashboard',
1605 'is_front_page' => 'all_myaccount_dashboard_inner',
1606 'active' => 'on',
1607 'package' => $this->pro_package(),
1608 'fields' => [],
1609 ]
1610 ),
1611 'account_orders' => apply_filters(
1612 'rtsb/elements/account_orders/options',
1613 [
1614 'id' => 'account_orders',
1615 'title' => esc_html__( 'Account Orders', 'shopbuilder' ),
1616 'category' => 'myaccount_dashboard',
1617 'is_front_page' => 'all_myaccount_dashboard_inner',
1618 'active' => 'on',
1619 'package' => $this->pro_package(),
1620 'fields' => [],
1621 ]
1622 ),
1623 'account_downloads' => apply_filters(
1624 'rtsb/elements/account_downloads/options',
1625 [
1626 'id' => 'account_downloads',
1627 'title' => esc_html__( 'Account Downloads', 'shopbuilder' ),
1628 'category' => 'myaccount_dashboard',
1629 'is_front_page' => 'all_myaccount_dashboard_inner',
1630 'active' => 'on',
1631 'package' => $this->pro_package(),
1632 'fields' => [],
1633 ]
1634 ),
1635 'account_billing_address' => apply_filters(
1636 'rtsb/elements/account_billing_address/options',
1637 [
1638 'id' => 'account_billing_address',
1639 'title' => esc_html__( 'Account Billing Address', 'shopbuilder' ),
1640 'category' => 'myaccount_dashboard',
1641 'is_front_page' => 'all_myaccount_dashboard_inner',
1642 'active' => 'on',
1643 'package' => $this->pro_package(),
1644 'fields' => [],
1645 ]
1646 ),
1647 'account_shipping_address' => apply_filters(
1648 'rtsb/elements/account_shipping_address/options',
1649 [
1650 'id' => 'account_shipping_address',
1651 'title' => esc_html__( 'Account Shipping Address', 'shopbuilder' ),
1652 'category' => 'myaccount_dashboard',
1653 'is_front_page' => 'all_myaccount_dashboard_inner',
1654 'active' => 'on',
1655 'package' => $this->pro_package(),
1656 'fields' => [],
1657 ]
1658 ),
1659 'account_address_description' => apply_filters(
1660 'rtsb/elements/account_address_description/options',
1661 [
1662 'id' => 'account_address_description',
1663 'title' => esc_html__( 'Account Address Description', 'shopbuilder' ),
1664 'category' => 'myaccount_dashboard',
1665 'is_front_page' => 'all_myaccount_dashboard_inner',
1666 'active' => 'on',
1667 'package' => $this->pro_package(),
1668 'fields' => [],
1669 ]
1670 ),
1671 'account_details' => apply_filters(
1672 'rtsb/elements/account_details/options',
1673 [
1674 'id' => 'account_details',
1675 'title' => esc_html__( 'Account Edit / Details', 'shopbuilder' ),
1676 'category' => 'myaccount_dashboard',
1677 'is_front_page' => 'all_myaccount_dashboard_inner',
1678 'active' => 'on',
1679 'package' => $this->pro_package(),
1680 'fields' => [],
1681 ]
1682 ),
1683 'account_order_status' => apply_filters(
1684 'rtsb/elements/account_order_status/options',
1685 [
1686 'id' => 'account_order_status',
1687 'title' => esc_html__( 'Account Order Status', 'shopbuilder' ),
1688 'category' => 'myaccount_dashboard',
1689 'is_front_page' => 'all_myaccount_dashboard_inner',
1690 'active' => 'on',
1691 'package' => $this->pro_package(),
1692 'fields' => [],
1693 ]
1694 ),
1695 'account_order_details_download' => apply_filters(
1696 'rtsb/elements/account_order_details_download/options',
1697 [
1698 'id' => 'account_order_details_download',
1699 'title' => esc_html__( 'Account Order Download', 'shopbuilder' ),
1700 'category' => 'myaccount_dashboard',
1701 'is_front_page' => 'all_myaccount_dashboard_inner',
1702 'active' => 'on',
1703 'package' => $this->pro_package(),
1704 'fields' => [],
1705 ]
1706 ),
1707 'account_order_details_note' => apply_filters(
1708 'rtsb/elements/account_order_details_note/options',
1709 [
1710 'id' => 'account_order_details_note',
1711 'title' => esc_html__( 'Account Order Note', 'shopbuilder' ),
1712 'category' => 'myaccount_dashboard',
1713 'is_front_page' => 'all_myaccount_dashboard_inner',
1714 'active' => 'on',
1715 'package' => $this->pro_package(),
1716 'fields' => [],
1717 ]
1718 ),
1719 'account_order_details_table' => apply_filters(
1720 'rtsb/elements/account_order_details_table/options',
1721 [
1722 'id' => 'account_order_details_table',
1723 'title' => esc_html__( 'Account Order Table', 'shopbuilder' ),
1724 'category' => 'myaccount_dashboard',
1725 'is_front_page' => 'all_myaccount_dashboard_inner',
1726 'active' => 'on',
1727 'package' => $this->pro_package(),
1728 'fields' => [],
1729 ]
1730 ),
1731 'account_order_details_order_again' => apply_filters(
1732 'rtsb/elements/account_order_details_order_again/options',
1733 [
1734 'id' => 'account_order_details_order_again',
1735 'title' => esc_html__( 'Account Order Again Button', 'shopbuilder' ),
1736 'category' => 'myaccount_dashboard',
1737 'is_front_page' => 'all_myaccount_dashboard_inner',
1738 'active' => 'on',
1739 'package' => $this->pro_package(),
1740 'fields' => [],
1741 ]
1742 ),
1743 'account_order_details_order_shipping' => apply_filters(
1744 'rtsb/elements/account_order_details_order_shipping/options',
1745 [
1746 'id' => 'account_order_details_order_shipping',
1747 'title' => esc_html__( 'Account Order Shipping', 'shopbuilder' ),
1748 'category' => 'myaccount_dashboard',
1749 'is_front_page' => 'all_myaccount_dashboard_inner',
1750 'active' => 'on',
1751 'package' => $this->pro_package(),
1752 'fields' => [],
1753 ]
1754 ),
1755 'account_order_details_order_billing' => apply_filters(
1756 'rtsb/elements/account_order_details_order_billing/options',
1757 [
1758 'id' => 'account_order_details_order_billing',
1759 'title' => esc_html__( 'Account Order Billing', 'shopbuilder' ),
1760 'category' => 'myaccount_dashboard',
1761 'is_front_page' => 'all_myaccount_dashboard_inner',
1762 'active' => 'on',
1763 'package' => $this->pro_package(),
1764 'fields' => [],
1765 ]
1766 ),
1767 'account_edit_billing_address' => apply_filters(
1768 'rtsb/elements/account_edit_billing_address/options',
1769 [
1770 'id' => 'account_edit_billing_address',
1771 'title' => esc_html__( 'Edit Billing Address', 'shopbuilder' ),
1772 'category' => 'myaccount_dashboard',
1773 'is_front_page' => 'all_myaccount_dashboard_inner',
1774 'active' => 'on',
1775 'package' => $this->pro_package(),
1776 'fields' => [],
1777 ]
1778 ),
1779 'account_edit_shipping_address' => apply_filters(
1780 'rtsb/elements/account_edit_shipping_address/options',
1781 [
1782 'id' => 'account_edit_shipping_address',
1783 'title' => esc_html__( 'Edit Shipping Address', 'shopbuilder' ),
1784 'category' => 'myaccount_dashboard',
1785 'is_front_page' => 'all_myaccount_dashboard_inner',
1786 'active' => 'on',
1787 'package' => $this->pro_package(),
1788 'fields' => [],
1789 ]
1790 ),
1791 'account_payment_methods' => apply_filters(
1792 'rtsb/elements/account_payment_methods/options',
1793 [
1794 'id' => 'account_payment_methods',
1795 'title' => esc_html__( 'Payment Methods', 'shopbuilder' ),
1796 'category' => 'myaccount_dashboard',
1797 'is_front_page' => 'all_myaccount_dashboard_inner',
1798 'active' => 'on',
1799 'package' => $this->pro_package(),
1800 'fields' => [],
1801 ]
1802 ),
1803 'account_add_payment_method' => apply_filters(
1804 'rtsb/elements/account_add_payment_method/options',
1805 [
1806 'id' => 'account_add_payment_method',
1807 'title' => esc_html__( 'Add Payment Method', 'shopbuilder' ),
1808 'category' => 'myaccount_dashboard',
1809 'is_front_page' => 'all_myaccount_dashboard_inner',
1810 'active' => 'on',
1811 'package' => $this->pro_package(),
1812 'fields' => [],
1813 ]
1814 ),
1815 ];
1816
1817 return apply_filters( 'rtsb/core/elements/my_account/widget_list', $widgets );
1818 }
1819
1820 /***
1821 * @return array
1822 */
1823 protected function myaccount_auth_page_widget_list() {
1824 return [
1825 'account_login' => apply_filters(
1826 'rtsb/elements/account_login/options',
1827 [
1828 'id' => 'account_login',
1829 'title' => esc_html__( 'Login Register Form', 'shopbuilder' ),
1830 'category' => 'others_widget',
1831 'is_front_page' => 'myaccount_auth',
1832 'active' => 'on',
1833 'package' => $this->pro_package(),
1834 'fields' => [],
1835 ]
1836 ),
1837 'account_login_form' => apply_filters(
1838 'rtsb/elements/account_login_form/options',
1839 [
1840 'id' => 'account_login_form',
1841 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
1842 'category' => 'others_widget',
1843 'is_front_page' => 'myaccount_auth',
1844 'active' => 'on',
1845 'package' => $this->pro_package(),
1846 'fields' => [],
1847 ]
1848 ),
1849 'account_registration_form' => apply_filters(
1850 'rtsb/elements/account_registration_form/options',
1851 [
1852 'id' => 'account_registration_form',
1853 'title' => esc_html__( 'Registration Form', 'shopbuilder' ),
1854 'category' => 'others_widget',
1855 'is_front_page' => 'myaccount_auth',
1856 'active' => 'on',
1857 'package' => $this->pro_package(),
1858 'fields' => [],
1859 ]
1860 ),
1861 'account_lost_password' => apply_filters(
1862 'rtsb/elements/account_lost_password/options',
1863 [
1864 'id' => 'account_lost_password',
1865 'title' => esc_html__( 'Lost Password Form', 'shopbuilder' ),
1866 'category' => 'others_widget',
1867 'is_front_page' => 'myaccount_auth',
1868 'active' => 'on',
1869 'package' => $this->pro_package(),
1870 'fields' => [],
1871 ]
1872 ),
1873 ];
1874 }
1875 }
1876