PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.3
ShopBuilder – WooCommerce Builder For Elementor v3.2.3
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 2.3.0 All 62 releases
shopbuilder / app / Models / ElementList.php

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

1,899 lines 60.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace RadiusTheme\SB\Models;
4
5 // Do not allow directly accessing this file.
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit( 'This script cannot be accessed directly.' );
8 }
9
10 use RadiusTheme\SB\Elementor\Widgets\Archive;
11 use RadiusTheme\SB\Elementor\Widgets\Cart;
12 use RadiusTheme\SB\Elementor\Widgets\Checkout;
13 use RadiusTheme\SB\Elementor\Widgets\General;
14 use RadiusTheme\SB\Elementor\Widgets\Single;
15 use RadiusTheme\SB\Models\Base\ListModel;
16 use RadiusTheme\SB\Traits\SingletonTrait;
17 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 'save_for_buy_later' => apply_filters(
484 'rtsb/elements/save_for_buy_later/options',
485 [
486 'id' => 'save_for_buy_later',
487 'title' => esc_html__( 'Saved For Buy Later', 'shopbuilder' ),
488 'category' => 'general',
489 'active' => '',
490 'package' => $this->pro_package(),
491 'fields' => [],
492 ]
493 ),
494 ];
495 return apply_filters( 'rtsb/core/elements/general/widget_list', $list );
496 }
497
498 /**
499 * Product Single Widget List.
500 *
501 * @return array
502 */
503 protected function product_page_widget_list() {
504
505 $list = [
506 'product_title' => apply_filters(
507 'rtsb/elements/product_title/options',
508 [
509 'id' => 'product_title',
510 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
511 'base_class' => Single\ProductTitle::class,
512 'category' => 'product',
513 'active' => 'on',
514 'package' => 'free',
515 'fields' => [],
516 ]
517 ),
518 'product_description' => apply_filters(
519 'rtsb/elements/product_description/options',
520 [
521 'id' => 'product_description',
522 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
523 'base_class' => Single\ProductDescription::class,
524 'category' => 'product',
525 'active' => 'on',
526 'package' => 'free',
527 'fields' => [],
528 ]
529 ),
530 'product_short_description' => apply_filters(
531 'rtsb/elements/product_short_description/options',
532 [
533 'id' => 'product_short_description',
534 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
535 'base_class' => Single\ShortDescription::class,
536 'category' => 'product',
537 'active' => 'on',
538 'package' => 'free',
539 'fields' => [],
540 ]
541 ),
542 'product_images' => apply_filters(
543 'rtsb/elements/product_images/options',
544 [
545 'id' => 'product_images',
546 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
547 'base_class' => Single\ProductImages::class,
548 'category' => 'product',
549 'active' => 'on',
550 'package' => 'free',
551 'fields' => [],
552 ]
553 ),
554 'product_onsale' => apply_filters(
555 'rtsb/elements/product_onsale/options',
556 [
557 'id' => 'product_onsale',
558 'title' => esc_html__( 'Product Badges', 'shopbuilder' ),
559 'base_class' => Single\ProductBadges::class,
560 'category' => 'product',
561 'active' => 'on',
562 'package' => 'free',
563 'fields' => [],
564 ]
565 ),
566 'product_additional_info' => apply_filters(
567 'rtsb/elements/product_additional_info/options',
568 [
569 'id' => 'product_additional_info',
570 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
571 'base_class' => Single\AdditionalInformation::class,
572 'category' => 'product',
573 'active' => 'on',
574 'package' => 'free',
575 'fields' => [],
576 ]
577 ),
578 'product_price' => apply_filters(
579 'rtsb/elements/product_price/options',
580 [
581 'id' => 'product_price',
582 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
583 'base_class' => Single\ProductPrice::class,
584 'category' => 'product',
585 'active' => 'on',
586 'package' => 'free',
587 'fields' => [],
588 ]
589 ),
590 'product_meta' => apply_filters(
591 'rtsb/elements/product_meta/options',
592 [
593 'id' => 'product_meta',
594 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
595 'base_class' => Single\ProductMeta::class,
596 'category' => 'product',
597 'active' => 'on',
598 'package' => 'free',
599 'fields' => [],
600 ]
601 ),
602 'product_categories' => apply_filters(
603 'rtsb/elements/product_categories/options',
604 [
605 'id' => 'product_categories',
606 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
607 'base_class' => Single\ProductCats::class,
608 'category' => 'product',
609 'active' => 'on',
610 'package' => 'free',
611 'fields' => [],
612 ]
613 ),
614 'product_rating' => apply_filters(
615 'rtsb/elements/product_rating/options',
616 [
617 'id' => 'product_rating',
618 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
619 'base_class' => Single\ProductRating::class,
620 'category' => 'product',
621 'active' => 'on',
622 'package' => 'free',
623 'fields' => [],
624 ]
625 ),
626 'product_tags' => apply_filters(
627 'rtsb/elements/product_tags/options',
628 [
629 'id' => 'product_tags',
630 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
631 'base_class' => Single\ProductTags::class,
632 'category' => 'product',
633 'active' => 'on',
634 'package' => 'free',
635 'fields' => [],
636 ]
637 ),
638 'product_sku' => apply_filters(
639 'rtsb/elements/product_sku/options',
640 [
641 'id' => 'product_sku',
642 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
643 'base_class' => Single\ProductSKU::class,
644 'category' => 'product',
645 'active' => 'on',
646 'package' => 'free',
647 'fields' => [],
648 ]
649 ),
650 'product_stock' => apply_filters(
651 'rtsb/elements/product_stock/options',
652 [
653 'id' => 'product_stock',
654 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
655 'base_class' => Single\ProductStock::class,
656 'category' => 'product',
657 'active' => 'on',
658 'package' => 'free',
659 'fields' => [],
660 ]
661 ),
662 'actions_button' => apply_filters(
663 'rtsb/elements/actions_button/options',
664 [
665 'id' => 'actions_button',
666 'title' => esc_html__( 'Action Buttons', 'shopbuilder' ),
667 'base_class' => Single\ActionsButton::class,
668 'category' => 'product',
669 'active' => 'on',
670 'package' => 'free',
671 'fields' => [],
672 ]
673 ),
674 'product_add_to_cart' => apply_filters(
675 'rtsb/elements/product_add_to_cart/options',
676 [
677 'id' => 'product_add_to_cart',
678 'title' => esc_html__( 'Add to Cart', 'shopbuilder' ),
679 'base_class' => Single\ProductAddToCart::class,
680 'category' => 'product',
681 'active' => 'on',
682 'package' => 'free',
683 'fields' => [],
684 ]
685 ),
686 'product_share' => apply_filters(
687 'rtsb/elements/product_share/options',
688 [
689 'id' => 'product_share',
690 'title' => esc_html__( 'Product Share', 'shopbuilder' ),
691 'base_class' => Single\ProductShare::class,
692 'category' => 'product',
693 'active' => 'on',
694 'package' => 'free',
695 'fields' => [],
696 ]
697 ),
698 'product_sales_count' => apply_filters(
699 'rtsb/elements/product_sales_count/options',
700 [
701 'id' => 'product_sales_count',
702 'title' => esc_html__( 'Sales Count', 'shopbuilder' ),
703 'category' => 'product',
704 'active' => '',
705 'package' => $this->pro_package(),
706 'fields' => [],
707 ]
708 ),
709 'product_stock_counter' => apply_filters(
710 'rtsb/elements/product_stock_counter/options',
711 [
712 'id' => 'product_stock_counter',
713 'title' => esc_html__( 'Product Stock Count', 'shopbuilder' ),
714 'category' => 'product',
715 'active' => '',
716 'package' => $this->pro_package(),
717 'fields' => [],
718 ]
719 ),
720 'flash_sale_countdown' => apply_filters(
721 'rtsb/elements/flash_sale_countdown/options',
722 [
723 'id' => 'flash_sale_countdown',
724 'title' => esc_html__( 'Flash Sale Countdown', 'shopbuilder' ),
725 'category' => 'product',
726 'active' => '',
727 'package' => $this->pro_package(),
728 'fields' => [],
729 ]
730 ),
731 'product_size_chart' => apply_filters(
732 'rtsb/elements/product_size_chart/options',
733 [
734 'id' => 'product_size_chart',
735 'title' => esc_html__( 'Size Chart', 'shopbuilder' ),
736 'category' => 'product',
737 'active' => '',
738 'package' => $this->pro_package(),
739 'fields' => [],
740 ]
741 ),
742 'product_quick_checkout' => apply_filters(
743 'rtsb/elements/product_quick_checkout/options',
744 [
745 'id' => 'product_quick_checkout',
746 'title' => esc_html__( 'Quick Checkout', 'shopbuilder' ),
747 'category' => 'product',
748 'active' => '',
749 'package' => $this->pro_package(),
750 'fields' => [],
751 ]
752 ),
753 'product_tabs' => apply_filters(
754 'rtsb/elements/product_tabs/options',
755 [
756 'id' => 'product_tabs',
757 'title' => esc_html__( 'Product Tabs', 'shopbuilder' ),
758 'base_class' => Single\ProductTabs::class,
759 'category' => 'product',
760 'active' => 'on',
761 'package' => 'free',
762 'fields' => [],
763 ]
764 ),
765 'advance_product_tabs' => apply_filters(
766 'rtsb/elements/advance_product_tabs/options',
767 [
768 'id' => 'advance_product_tabs',
769 'title' => esc_html__( 'Advanced Product Tabs', 'shopbuilder' ),
770 'category' => 'product',
771 'active' => '',
772 'package' => $this->pro_package(),
773 'fields' => [],
774 ]
775 ),
776 'product_qr_code' => apply_filters(
777 'rtsb/elements/product_qr_code/options',
778 [
779 'id' => 'product_qr_code',
780 'title' => esc_html__( 'QR Code', 'shopbuilder' ),
781 'category' => 'product',
782 'active' => '',
783 'package' => $this->pro_package(),
784 'fields' => [],
785 ]
786 ),
787 'product_reviews' => apply_filters(
788 'rtsb/elements/product_reviews/options',
789 [
790 'id' => 'product_reviews',
791 'title' => esc_html__( 'Product Reviews', 'shopbuilder' ),
792 'base_class' => Single\ProductReviews::class,
793 'category' => 'product',
794 'active' => 'on',
795 'package' => 'free',
796 'fields' => [],
797 ]
798 ),
799 'upsells_product' => apply_filters(
800 'rtsb/elements/upsells_product/options',
801 [
802 'id' => 'upsells_product',
803 'title' => esc_html__( 'Upsell - Default Layout', 'shopbuilder' ),
804 'base_class' => Single\UpsellsProduct::class,
805 'category' => 'product',
806 'active' => 'on',
807 'package' => 'free',
808 'fields' => [],
809 ]
810 ),
811 'upsells_product_custom' => apply_filters(
812 'rtsb/elements/upsells_product_custom/options',
813 [
814 'id' => 'upsells_product_custom',
815 'title' => esc_html__( 'Upsell - Custom Layouts', 'shopbuilder' ),
816 'base_class' => Single\UpsellsProductsCustom::class,
817 'category' => 'product',
818 'active' => 'on',
819 'package' => 'free',
820 'fields' => [],
821 ]
822 ),
823 'upsells_products_slider_custom' => apply_filters(
824 'rtsb/elements/upsells_products_slider_custom/options',
825 [
826 'id' => 'upsells_products_slider_custom',
827 'title' => esc_html__( 'Upsell - Slider Layouts', 'shopbuilder' ),
828 'base_class' => Single\UpsellsProductsSlider::class,
829 'category' => 'product',
830 'active' => 'on',
831 'package' => 'free',
832 'fields' => [],
833 ]
834 ),
835 'related_product' => apply_filters(
836 'rtsb/elements/related_product/options',
837 [
838 'id' => 'related_product',
839 'title' => esc_html__( 'Related - Default Layout', 'shopbuilder' ),
840 'base_class' => Single\RelatedProduct::class,
841 'category' => 'product',
842 'active' => 'on',
843 'package' => 'free',
844 'fields' => [],
845 ]
846 ),
847 'related_product_custom' => apply_filters(
848 'rtsb/elements/related_product_custom/options',
849 [
850 'id' => 'related_product_custom',
851 'title' => esc_html__( 'Related - Custom Layouts', 'shopbuilder' ),
852 'base_class' => Single\RelatedProductsCustom::class,
853 'category' => 'product',
854 'active' => 'on',
855 'package' => 'free',
856 'fields' => [],
857 ]
858 ),
859 'related_products_slider_custom' => apply_filters(
860 'rtsb/elements/related_products_slider_custom/options',
861 [
862 'id' => 'related_products_slider_custom',
863 'title' => esc_html__( 'Related - Slider Layouts', 'shopbuilder' ),
864 'base_class' => Single\RelatedProductsSlider::class,
865 'category' => 'product',
866 'active' => 'on',
867 'package' => 'free',
868 'fields' => [],
869 ]
870 ),
871 ];
872
873 return apply_filters( 'rtsb/core/elements/product_page/widget_list', $list );
874 }
875
876 /**
877 * Product Single Widget List.
878 *
879 * @return array
880 */
881 protected function product_quick_view() {
882
883 $list = [
884 'qv_product_title' => apply_filters(
885 'rtsb/elements/qv_product_title/options',
886 [
887 'id' => 'qv_product_title',
888 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
889 'base_class' => Single\ProductTitle::class,
890 'category' => 'quick_view',
891 'is_front_page' => 'quick_view',
892 'active' => 'on',
893 'package' => $this->pro_package(),
894 'fields' => [],
895 ]
896 ),
897 'qv_product_description' => apply_filters(
898 'rtsb/elements/qv_product_description/options',
899 [
900 'id' => 'qv_product_description',
901 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
902 'base_class' => Single\ProductDescription::class,
903 'category' => 'quick_view',
904 'is_front_page' => 'quick_view',
905 'active' => 'on',
906 'package' => $this->pro_package(),
907 'fields' => [],
908 ]
909 ),
910 'qv_product_short_description' => apply_filters(
911 'rtsb/elements/qv_product_short_description/options',
912 [
913 'id' => 'qv_product_short_description',
914 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
915 'base_class' => Single\ShortDescription::class,
916 'category' => 'quick_view',
917 'is_front_page' => 'quick_view',
918 'active' => 'on',
919 'package' => $this->pro_package(),
920 'fields' => [],
921 ]
922 ),
923 'qv_product_images' => apply_filters(
924 'rtsb/elements/qv_product_images/options',
925 [
926 'id' => 'qv_product_images',
927 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
928 'base_class' => Single\ProductImages::class,
929 'category' => 'quick_view',
930 'is_front_page' => 'quick_view',
931 'active' => 'on',
932 'package' => $this->pro_package(),
933 'fields' => [],
934 ]
935 ),
936 'qv_product_badges' => apply_filters(
937 'rtsb/elements/qv_product_badges/options',
938 [
939 'id' => 'qv_product_badges',
940 'title' => esc_html__( 'Product Badges', 'shopbuilder' ),
941 'base_class' => Single\ProductBadges::class,
942 'category' => 'quick_view',
943 'is_front_page' => 'quick_view',
944 'active' => 'on',
945 'package' => $this->pro_package(),
946 'fields' => [],
947 ]
948 ),
949 'qv_product_additional_info' => apply_filters(
950 'rtsb/elements/qv_product_additional_info/options',
951 [
952 'id' => 'qv_product_additional_info',
953 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
954 'base_class' => Single\AdditionalInformation::class,
955 'category' => 'quick_view',
956 'is_front_page' => 'quick_view',
957 'active' => 'on',
958 'package' => $this->pro_package(),
959 'fields' => [],
960 ]
961 ),
962 'qv_product_price' => apply_filters(
963 'rtsb/elements/qv_product_price/options',
964 [
965 'id' => 'qv_product_price',
966 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
967 'base_class' => Single\ProductPrice::class,
968 'category' => 'quick_view',
969 'is_front_page' => 'quick_view',
970 'active' => 'on',
971 'package' => $this->pro_package(),
972 'fields' => [],
973 ]
974 ),
975 'qv_product_meta' => apply_filters(
976 'rtsb/elements/qv_product_meta/options',
977 [
978 'id' => 'qv_product_meta',
979 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
980 'base_class' => Single\ProductMeta::class,
981 'category' => 'quick_view',
982 'is_front_page' => 'quick_view',
983 'active' => 'on',
984 'package' => $this->pro_package(),
985 'fields' => [],
986 ]
987 ),
988 'qv_product_categories' => apply_filters(
989 'rtsb/elements/qv_product_categories/options',
990 [
991 'id' => 'qv_product_categories',
992 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
993 'base_class' => Single\ProductCats::class,
994 'category' => 'quick_view',
995 'is_front_page' => 'quick_view',
996 'active' => 'on',
997 'package' => $this->pro_package(),
998 'fields' => [],
999 ]
1000 ),
1001 'qv_product_rating' => apply_filters(
1002 'rtsb/elements/qv_product_rating/options',
1003 [
1004 'id' => 'qv_product_rating',
1005 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
1006 'base_class' => Single\ProductRating::class,
1007 'category' => 'quick_view',
1008 'is_front_page' => 'quick_view',
1009 'active' => 'on',
1010 'package' => $this->pro_package(),
1011 'fields' => [],
1012 ]
1013 ),
1014 'qv_product_tags' => apply_filters(
1015 'rtsb/elements/qv_product_tags/options',
1016 [
1017 'id' => 'qv_product_tags',
1018 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
1019 'base_class' => Single\ProductTags::class,
1020 'category' => 'quick_view',
1021 'is_front_page' => 'quick_view',
1022 'active' => 'on',
1023 'package' => $this->pro_package(),
1024 'fields' => [],
1025 ]
1026 ),
1027 'qv_product_sku' => apply_filters(
1028 'rtsb/elements/qv_product_sku/options',
1029 [
1030 'id' => 'qv_product_sku',
1031 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
1032 'base_class' => Single\ProductSKU::class,
1033 'category' => 'quick_view',
1034 'is_front_page' => 'quick_view',
1035 'active' => 'on',
1036 'package' => $this->pro_package(),
1037 'fields' => [],
1038 ]
1039 ),
1040 'qv_product_stock' => apply_filters(
1041 'rtsb/elements/qv_product_stock/options',
1042 [
1043 'id' => 'qv_product_stock',
1044 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
1045 'base_class' => Single\ProductStock::class,
1046 'category' => 'quick_view',
1047 'is_front_page' => 'quick_view',
1048 'active' => 'on',
1049 'package' => $this->pro_package(),
1050 'fields' => [],
1051 ]
1052 ),
1053 'qv_actions_button' => apply_filters(
1054 'rtsb/elements/qv_actions_button/options',
1055 [
1056 'id' => 'qv_actions_button',
1057 'title' => esc_html__( 'Action Buttons', 'shopbuilder' ),
1058 'base_class' => Single\ActionsButton::class,
1059 'category' => 'quick_view',
1060 'is_front_page' => 'quick_view',
1061 'active' => 'on',
1062 'package' => $this->pro_package(),
1063 'fields' => [],
1064 ]
1065 ),
1066 'qv_product_add_to_cart' => apply_filters(
1067 'rtsb/elements/qv_product_add_to_cart/options',
1068 [
1069 'id' => 'qv_product_add_to_cart',
1070 'title' => esc_html__( 'Add to Cart', 'shopbuilder' ),
1071 'base_class' => Single\ProductAddToCart::class,
1072 'category' => 'quick_view',
1073 'is_front_page' => 'quick_view',
1074 'active' => 'on',
1075 'package' => $this->pro_package(),
1076 'fields' => [],
1077 ]
1078 ),
1079 'qv_product_sales_count' => apply_filters(
1080 'rtsb/elements/qv_product_sales_count/options',
1081 [
1082 'id' => 'qv_product_sales_count',
1083 'title' => esc_html__( 'Sales Count', 'shopbuilder' ),
1084 'category' => 'quick_view',
1085 'is_front_page' => 'quick_view',
1086 'active' => 'on',
1087 'package' => $this->pro_package(),
1088 'fields' => [],
1089 ]
1090 ),
1091 'qv_social_share' => apply_filters(
1092 'rtsb/settings/qv_social_share/options',
1093 [
1094 'id' => 'qv_social_share',
1095 'title' => esc_html__( 'Social Share', 'shopbuilder' ),
1096 'base_class' => General\SocialShare::class,
1097 'active' => 'on',
1098 'category' => 'quick_view',
1099 'is_front_page' => 'quick_view',
1100 'package' => $this->pro_package(),
1101 'fields' => [],
1102 ]
1103 ),
1104 'qv_product_quick_checkout' => apply_filters(
1105 'rtsb/elements/qv_product_quick_checkout/options',
1106 [
1107 'id' => 'qv_product_quick_checkout',
1108 'title' => esc_html__( 'Quick Checkout', 'shopbuilder' ),
1109 'category' => 'quick_view',
1110 'is_front_page' => 'quick_view',
1111 'active' => 'on',
1112 'package' => $this->pro_package(),
1113 'fields' => [],
1114 ]
1115 ),
1116
1117 'qv_product_size_chart' => apply_filters(
1118 'rtsb/elements/qv_product_size_chart/options',
1119 [
1120 'id' => 'qv_product_size_chart',
1121 'title' => esc_html__( 'Size Chart', 'shopbuilder' ),
1122 'category' => 'quick_view',
1123 'is_front_page' => 'quick_view',
1124 'active' => '',
1125 'package' => $this->pro_package(),
1126 'fields' => [],
1127 ]
1128 ),
1129
1130 ];
1131
1132 return apply_filters( 'rtsb/core/elements/quick_view/widget_list', $list );
1133 }
1134
1135 /**
1136 * Product Archive Widget List.
1137 *
1138 * @return array
1139 */
1140 protected function shop_archive_page_widget_list() {
1141 $list = [
1142 'archive_title' => apply_filters(
1143 'rtsb/elements/archive_title/options',
1144 [
1145 'id' => 'archive_title',
1146 'title' => esc_html__( 'Archive Title', 'shopbuilder' ),
1147 'base_class' => Archive\ArchiveTitle::class,
1148 'category' => 'shop',
1149 'active' => 'on',
1150 'package' => 'free',
1151 'fields' => [],
1152 ]
1153 ),
1154
1155 'archive_description' => apply_filters(
1156 'rtsb/elements/archive_description/options',
1157 [
1158 'id' => 'archive_description',
1159 'title' => esc_html__( 'Archive Description', 'shopbuilder' ),
1160 'base_class' => Archive\ArchiveDescription::class,
1161 'category' => 'shop',
1162 'active' => 'on',
1163 'package' => 'free',
1164 'fields' => [],
1165 ]
1166 ),
1167
1168 'products_archive_catalog' => apply_filters(
1169 'rtsb/elements/products_archive_catalog/options',
1170 [
1171 'id' => 'products_archive_catalog',
1172 'title' => esc_html__( 'Products - Default Layout', 'shopbuilder' ),
1173 'base_class' => Archive\ProductsArchive::class,
1174 'category' => 'shop',
1175 'active' => 'on',
1176 'package' => 'free',
1177 'fields' => [],
1178 ]
1179 ),
1180
1181 'products_archive_catalog_custom' => apply_filters(
1182 'rtsb/elements/products_archive_catalog_custom/options',
1183 [
1184 'id' => 'products_archive_catalog_custom',
1185 'title' => esc_html__( 'Products - Custom Layouts', 'shopbuilder' ),
1186 'base_class' => Archive\ProductsArchiveCustom::class,
1187 'category' => 'shop',
1188 'active' => 'on',
1189 'package' => 'free',
1190 'fields' => [],
1191 ]
1192 ),
1193
1194 'ajax_product_filters' => apply_filters(
1195 'rtsb/elements/ajax_product_filters/options',
1196 [
1197 'id' => 'ajax_product_filters',
1198 'title' => esc_html__( 'Ajax Product Filters', 'shopbuilder' ),
1199 'category' => 'shop',
1200 'active' => 'on',
1201 'package' => $this->pro_package(),
1202 'fields' => [],
1203 ]
1204 ),
1205 'product_filters' => apply_filters(
1206 'rtsb/elements/product_filters/options',
1207 [
1208 'id' => 'product_filters',
1209 'title' => esc_html__( 'Product Filters', 'shopbuilder' ),
1210 'base_class' => Archive\ProductFilters::class,
1211 'category' => 'shop',
1212 'active' => 'on',
1213 'package' => 'free',
1214 'fields' => [],
1215 ]
1216 ),
1217
1218 'archive_result_count' => apply_filters(
1219 'rtsb/elements/archive_result_count/options',
1220 [
1221 'id' => 'archive_result_count',
1222 'title' => esc_html__( 'Result Count', 'shopbuilder' ),
1223 'base_class' => Archive\ArchiveResultCount::class,
1224 'category' => 'shop',
1225 'active' => 'on',
1226 'package' => 'free',
1227 'fields' => [],
1228 ]
1229 ),
1230 'archive_products_ordering' => apply_filters(
1231 'rtsb/elements/archive_products_ordering/options',
1232 [
1233 'id' => 'archive_products_ordering',
1234 'title' => esc_html__( 'Products Ordering', 'shopbuilder' ),
1235 'base_class' => Archive\ProductsOrdering::class,
1236 'category' => 'shop',
1237 'active' => 'on',
1238 'package' => 'free',
1239 'fields' => [],
1240 ]
1241 ),
1242 'archive_product_mode' => apply_filters(
1243 'rtsb/elements/archive_product_mode/options',
1244 [
1245 'id' => 'archive_product_mode',
1246 'title' => esc_html__( 'View Mode', 'shopbuilder' ),
1247 'base_class' => Archive\ArchiveProductMode::class,
1248 'category' => 'shop',
1249 'active' => 'on',
1250 'package' => 'free',
1251 'fields' => [],
1252 ]
1253 ),
1254 ];
1255
1256 return apply_filters( 'rtsb/core/elements/shop/widget_list', $list );
1257 }
1258
1259 /**
1260 * Cart Page Widget List.
1261 *
1262 * @return array
1263 */
1264 protected function cart_page_widget_list() {
1265 $list = [
1266 'cart_table' => apply_filters(
1267 'rtsb/elements/cart_table/options',
1268 [
1269 'id' => 'cart_table',
1270 'title' => esc_html__( 'Cart Table', 'shopbuilder' ),
1271 'base_class' => Cart\CartTable::class,
1272 'category' => 'cart',
1273 'active' => 'on',
1274 'package' => 'free',
1275 'fields' => [],
1276 ]
1277 ),
1278 'cart_totals' => apply_filters(
1279 'rtsb/elements/cart_totals/options',
1280 [
1281 'id' => 'cart_totals',
1282 'title' => esc_html__( 'Cart Totals', 'shopbuilder' ),
1283 'base_class' => Cart\CartTotals::class,
1284 'category' => 'cart',
1285 'active' => 'on',
1286 'package' => 'free',
1287 'fields' => [],
1288 ]
1289 ),
1290 'cart_coupon_form' => apply_filters(
1291 'rtsb/elements/cart_coupon_form/options',
1292 [
1293 'id' => 'cart_coupon_form',
1294 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
1295 'category' => 'cart',
1296 'active' => 'on',
1297 'package' => $this->pro_package(),
1298 'fields' => [],
1299 ]
1300 ),
1301 'cross_sells' => apply_filters(
1302 'rtsb/elements/cross_sells/options',
1303 [
1304 'id' => 'cross_sells',
1305 'title' => esc_html__( 'Cross Sell - Default Layout', 'shopbuilder' ),
1306 'base_class' => Cart\CrossSellProduct::class,
1307 'category' => 'cart',
1308 'active' => 'on',
1309 'package' => 'free',
1310 'fields' => [],
1311 ]
1312 ),
1313 'cross_sells_custom' => apply_filters(
1314 'rtsb/elements/cross_sells_custom/options',
1315 [
1316 'id' => 'cross_sells_custom',
1317 'title' => esc_html__( 'Cross Sell - Custom Layouts', 'shopbuilder' ),
1318 'base_class' => Cart\CrossSellsProductsCustom::class,
1319 'category' => 'cart',
1320 'active' => 'on',
1321 'package' => 'free',
1322 'fields' => [],
1323 ]
1324 ),
1325 'cross_sells_custom_slider' => apply_filters(
1326 'rtsb/elements/cross_sells_custom_slider/options',
1327 [
1328 'id' => 'cross_sells_custom_slider',
1329 'title' => esc_html__( 'Cross Sell - Slider Layouts', 'shopbuilder' ),
1330 'base_class' => Cart\CrossSellsProductsSlider::class,
1331 'category' => 'cart',
1332 'active' => 'on',
1333 'package' => 'free',
1334 'fields' => [],
1335 ]
1336 ),
1337 'save_for_later_preview' => apply_filters(
1338 'rtsb/elements/save_for_later_preview/options',
1339 [
1340 'id' => 'save_for_later_preview',
1341 'title' => esc_html__( 'Save For Later Preview', 'shopbuilder' ),
1342 'base_class' => Cart\SaveForLaterPreview::class,
1343 'category' => 'cart',
1344 'active' => 'on',
1345 'package' => $this->pro_package(),
1346 'fields' => [],
1347 ]
1348 ),
1349 ];
1350
1351 return apply_filters( 'rtsb/core/elements/cart/widget_list', $list );
1352 }
1353
1354 /**
1355 * Checkout Page Widget List.
1356 *
1357 * @return array
1358 */
1359 protected function checkout_page_widget_list() {
1360 $list = [
1361 'billing_form' => apply_filters(
1362 'rtsb/elements/billing_form/options',
1363 [
1364 'id' => 'billing_form',
1365 'title' => esc_html__( 'Billing Form', 'shopbuilder' ),
1366 'base_class' => Checkout\BillingForm::class,
1367 'category' => 'checkout',
1368 'active' => 'on',
1369 'package' => 'free',
1370 'fields' => [],
1371 ]
1372 ),
1373 'shipping_form' => apply_filters(
1374 'rtsb/elements/shipping_form/options',
1375 [
1376 'id' => 'shipping_form',
1377 'title' => esc_html__( 'Shipping Form', 'shopbuilder' ),
1378 'base_class' => Checkout\ShippingForm::class,
1379 'category' => 'checkout',
1380 'active' => 'on',
1381 'package' => 'free',
1382 'fields' => [],
1383 ]
1384 ),
1385 'order_notes' => apply_filters(
1386 'rtsb/elements/order_notes/options',
1387 [
1388 'id' => 'order_notes',
1389 'title' => esc_html__( 'Order Notes', 'shopbuilder' ),
1390 'base_class' => Checkout\OrderNotes::class,
1391 'category' => 'checkout',
1392 'active' => 'on',
1393 'package' => 'free',
1394 'fields' => [],
1395 ]
1396 ),
1397 'order_review' => apply_filters(
1398 'rtsb/elements/order_review/options',
1399 [
1400 'id' => 'order_review',
1401 'title' => esc_html__( 'Order Review', 'shopbuilder' ),
1402 'base_class' => Checkout\OrderReview::class,
1403 'category' => 'checkout',
1404 'active' => 'on',
1405 'package' => 'free',
1406 'fields' => [],
1407 ]
1408 ),
1409 'checkout_payment' => apply_filters(
1410 'rtsb/elements/checkout_payment/options',
1411 [
1412 'id' => 'checkout_payment',
1413 'title' => esc_html__( 'Checkout Payment Method', 'shopbuilder' ),
1414 'base_class' => Checkout\CheckoutPayment::class,
1415 'category' => 'checkout',
1416 'active' => 'on',
1417 'package' => 'free',
1418 'fields' => [],
1419 ]
1420 ),
1421 'coupon_form' => apply_filters(
1422 'rtsb/elements/coupon_form/options',
1423 [
1424 'id' => 'coupon_form',
1425 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
1426 'base_class' => Checkout\CouponForm::class,
1427 'category' => 'checkout',
1428 'active' => 'on',
1429 'package' => 'free',
1430 'fields' => [],
1431 ]
1432 ),
1433 'checkout_login_form' => apply_filters(
1434 'rtsb/elements/checkout_login_form/options',
1435 [
1436 'id' => 'checkout_login_form',
1437 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
1438 'base_class' => Checkout\CheckoutLoginForm::class,
1439 'category' => 'checkout',
1440 'active' => 'on',
1441 'package' => 'free',
1442 'fields' => [],
1443 ]
1444 ),
1445 'shipping_method' => apply_filters(
1446 'rtsb/elements/shipping_method/options',
1447 [
1448 'id' => 'shipping_method',
1449 'title' => esc_html__( 'Shipping Method', 'shopbuilder' ),
1450 'base_class' => Checkout\ShippingMethod::class,
1451 'category' => 'checkout',
1452 'active' => 'on',
1453 'package' => 'free',
1454 'fields' => [],
1455 ]
1456 ),
1457 'multi_step_checkout_widget' => apply_filters(
1458 'rtsb/elements/multi_step_checkout_widget/options',
1459 [
1460 'id' => 'multi_step_checkout_widget',
1461 'title' => esc_html__( 'Multi Step Checkout', 'shopbuilder' ),
1462 'base_class' => CheckoutPro\MultiStepCheckout::class,
1463 'category' => 'checkout',
1464 'active' => '',
1465 'package' => $this->pro_package(),
1466 'fields' => [],
1467 ]
1468 ),
1469
1470 ];
1471
1472 return apply_filters( 'rtsb/core/elements/checkout/widget_list', $list );
1473 }
1474
1475 /**
1476 * Checkout Page Widget List.
1477 *
1478 * @return array
1479 */
1480 protected function thankyou_page_widget_list() {
1481 return [
1482 'order_received_text' => apply_filters(
1483 'rtsb/elements/order_received_text/options',
1484 [
1485 'id' => 'order_received_text',
1486 'title' => esc_html__( 'Order Received Text', 'shopbuilder' ),
1487 'category' => 'thank_you',
1488 'is_front_page' => 'thank_you',
1489 'active' => 'on',
1490 'package' => $this->pro_package(),
1491 'fields' => [],
1492 ]
1493 ),
1494 'order_details_summary' => apply_filters(
1495 'rtsb/elements/order_details_summary/options',
1496 [
1497 'id' => 'order_details_summary',
1498 'title' => esc_html__( 'Order Details Summary', 'shopbuilder' ),
1499 'category' => 'thank_you',
1500 'is_front_page' => 'thank_you',
1501 'active' => 'on',
1502 'package' => $this->pro_package(),
1503 'fields' => [],
1504 ]
1505 ),
1506 'order_details_table' => apply_filters(
1507 'rtsb/elements/order_details_table/options',
1508 [
1509 'id' => 'order_details_table',
1510 'title' => esc_html__( 'Order Details Table', 'shopbuilder' ),
1511 'category' => 'thank_you',
1512 'is_front_page' => 'thank_you',
1513 'active' => 'on',
1514 'package' => $this->pro_package(),
1515 'fields' => [],
1516 ]
1517 ),
1518 'downloadable_products' => apply_filters(
1519 'rtsb/elements/downloadable_products/options',
1520 [
1521 'id' => 'downloadable_products',
1522 'title' => esc_html__( 'Downloadable Products', 'shopbuilder' ),
1523 'category' => 'thank_you',
1524 'is_front_page' => 'thank_you',
1525 'active' => 'on',
1526 'package' => $this->pro_package(),
1527 'fields' => [],
1528 ]
1529 ),
1530 'order_billing_address' => apply_filters(
1531 'rtsb/elements/order_billing_address/options',
1532 [
1533 'id' => 'order_billing_address',
1534 'title' => esc_html__( 'Order Billing Address', 'shopbuilder' ),
1535 'category' => 'thank_you',
1536 'is_front_page' => 'thank_you',
1537 'active' => 'on',
1538 'package' => $this->pro_package(),
1539 'fields' => [],
1540 ]
1541 ),
1542 'order_shipping_address' => apply_filters(
1543 'rtsb/elements/order_shipping_address/options',
1544 [
1545 'id' => 'order_shipping_address',
1546 'title' => esc_html__( 'Order Shipping Address', 'shopbuilder' ),
1547 'category' => 'thank_you',
1548 'is_front_page' => 'thank_you',
1549 'active' => 'on',
1550 'package' => $this->pro_package(),
1551 'fields' => [],
1552 ]
1553 ),
1554 'order_custom_fields_data' => apply_filters(
1555 'rtsb/elements/order_custom_fields_data/options',
1556 [
1557 'id' => 'order_custom_fields_data',
1558 'title' => esc_html__( 'Checkout Form Custom Fields Data', 'shopbuilder' ),
1559 'category' => 'thank_you',
1560 'is_front_page' => 'thank_you',
1561 'active' => 'on',
1562 'package' => $this->pro_package(),
1563 'fields' => [],
1564 ]
1565 ),
1566 ];
1567 }
1568 /**
1569 * Checkout Page Order Pay Widget List.
1570 *
1571 * @return array
1572 */
1573 protected function orderpay_page_widget_list() {
1574 return [
1575 'order_pay_form' => apply_filters(
1576 'rtsb/elements/order_pay_form/options',
1577 [
1578 'id' => 'order_pay_form',
1579 'title' => esc_html__( 'Order Pay Form', '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
1588 ];
1589 }
1590
1591 /**
1592 * Checkout Page Widget List.
1593 *
1594 * @return array
1595 */
1596 protected function my_account_page_widget_list() {
1597 $widgets = [
1598 'account_avatar' => apply_filters(
1599 'rtsb/elements/account_avatar/options',
1600 [
1601 'id' => 'account_avatar',
1602 'title' => esc_html__( 'Account Avatar', 'shopbuilder' ),
1603 'category' => 'myaccount_dashboard',
1604 'is_front_page' => 'all_myaccount_dashboard_inner',
1605 'active' => 'on',
1606 'package' => $this->pro_package(),
1607 'fields' => [],
1608 ]
1609 ),
1610 'account_navigation_edit_shipping' => apply_filters(
1611 'rtsb/elements/account_navigation_edit_shipping/options',
1612 [
1613 'id' => 'account_navigation_edit_shipping',
1614 'title' => esc_html__( 'Account Navigation', 'shopbuilder' ),
1615 'category' => 'myaccount_dashboard',
1616 'is_front_page' => 'all_myaccount_dashboard_inner',
1617 'active' => 'on',
1618 'package' => $this->pro_package(),
1619 'fields' => [],
1620 ]
1621 ),
1622 'account_dashboard' => apply_filters(
1623 'rtsb/elements/account_dashboard/options',
1624 [
1625 'id' => 'account_dashboard',
1626 'title' => esc_html__( 'Account Dashboard', 'shopbuilder' ),
1627 'category' => 'myaccount_dashboard',
1628 'is_front_page' => 'all_myaccount_dashboard_inner',
1629 'active' => 'on',
1630 'package' => $this->pro_package(),
1631 'fields' => [],
1632 ]
1633 ),
1634 'account_orders' => apply_filters(
1635 'rtsb/elements/account_orders/options',
1636 [
1637 'id' => 'account_orders',
1638 'title' => esc_html__( 'Account Orders', 'shopbuilder' ),
1639 'category' => 'myaccount_dashboard',
1640 'is_front_page' => 'all_myaccount_dashboard_inner',
1641 'active' => 'on',
1642 'package' => $this->pro_package(),
1643 'fields' => [],
1644 ]
1645 ),
1646 'account_downloads' => apply_filters(
1647 'rtsb/elements/account_downloads/options',
1648 [
1649 'id' => 'account_downloads',
1650 'title' => esc_html__( 'Account Downloads', 'shopbuilder' ),
1651 'category' => 'myaccount_dashboard',
1652 'is_front_page' => 'all_myaccount_dashboard_inner',
1653 'active' => 'on',
1654 'package' => $this->pro_package(),
1655 'fields' => [],
1656 ]
1657 ),
1658 'account_billing_address' => apply_filters(
1659 'rtsb/elements/account_billing_address/options',
1660 [
1661 'id' => 'account_billing_address',
1662 'title' => esc_html__( 'Account Billing Address', 'shopbuilder' ),
1663 'category' => 'myaccount_dashboard',
1664 'is_front_page' => 'all_myaccount_dashboard_inner',
1665 'active' => 'on',
1666 'package' => $this->pro_package(),
1667 'fields' => [],
1668 ]
1669 ),
1670 'account_shipping_address' => apply_filters(
1671 'rtsb/elements/account_shipping_address/options',
1672 [
1673 'id' => 'account_shipping_address',
1674 'title' => esc_html__( 'Account Shipping Address', 'shopbuilder' ),
1675 'category' => 'myaccount_dashboard',
1676 'is_front_page' => 'all_myaccount_dashboard_inner',
1677 'active' => 'on',
1678 'package' => $this->pro_package(),
1679 'fields' => [],
1680 ]
1681 ),
1682 'account_address_description' => apply_filters(
1683 'rtsb/elements/account_address_description/options',
1684 [
1685 'id' => 'account_address_description',
1686 'title' => esc_html__( 'Account Address Description', 'shopbuilder' ),
1687 'category' => 'myaccount_dashboard',
1688 'is_front_page' => 'all_myaccount_dashboard_inner',
1689 'active' => 'on',
1690 'package' => $this->pro_package(),
1691 'fields' => [],
1692 ]
1693 ),
1694 'account_details' => apply_filters(
1695 'rtsb/elements/account_details/options',
1696 [
1697 'id' => 'account_details',
1698 'title' => esc_html__( 'Account Edit / Details', 'shopbuilder' ),
1699 'category' => 'myaccount_dashboard',
1700 'is_front_page' => 'all_myaccount_dashboard_inner',
1701 'active' => 'on',
1702 'package' => $this->pro_package(),
1703 'fields' => [],
1704 ]
1705 ),
1706 'account_order_status' => apply_filters(
1707 'rtsb/elements/account_order_status/options',
1708 [
1709 'id' => 'account_order_status',
1710 'title' => esc_html__( 'Account Order Status', 'shopbuilder' ),
1711 'category' => 'myaccount_dashboard',
1712 'is_front_page' => 'all_myaccount_dashboard_inner',
1713 'active' => 'on',
1714 'package' => $this->pro_package(),
1715 'fields' => [],
1716 ]
1717 ),
1718 'account_order_details_download' => apply_filters(
1719 'rtsb/elements/account_order_details_download/options',
1720 [
1721 'id' => 'account_order_details_download',
1722 'title' => esc_html__( 'Account Order Download', 'shopbuilder' ),
1723 'category' => 'myaccount_dashboard',
1724 'is_front_page' => 'all_myaccount_dashboard_inner',
1725 'active' => 'on',
1726 'package' => $this->pro_package(),
1727 'fields' => [],
1728 ]
1729 ),
1730 'account_order_details_note' => apply_filters(
1731 'rtsb/elements/account_order_details_note/options',
1732 [
1733 'id' => 'account_order_details_note',
1734 'title' => esc_html__( 'Account Order Note', 'shopbuilder' ),
1735 'category' => 'myaccount_dashboard',
1736 'is_front_page' => 'all_myaccount_dashboard_inner',
1737 'active' => 'on',
1738 'package' => $this->pro_package(),
1739 'fields' => [],
1740 ]
1741 ),
1742 'account_order_details_table' => apply_filters(
1743 'rtsb/elements/account_order_details_table/options',
1744 [
1745 'id' => 'account_order_details_table',
1746 'title' => esc_html__( 'Account Order Table', 'shopbuilder' ),
1747 'category' => 'myaccount_dashboard',
1748 'is_front_page' => 'all_myaccount_dashboard_inner',
1749 'active' => 'on',
1750 'package' => $this->pro_package(),
1751 'fields' => [],
1752 ]
1753 ),
1754 'account_order_details_order_again' => apply_filters(
1755 'rtsb/elements/account_order_details_order_again/options',
1756 [
1757 'id' => 'account_order_details_order_again',
1758 'title' => esc_html__( 'Account Order Again Button', 'shopbuilder' ),
1759 'category' => 'myaccount_dashboard',
1760 'is_front_page' => 'all_myaccount_dashboard_inner',
1761 'active' => 'on',
1762 'package' => $this->pro_package(),
1763 'fields' => [],
1764 ]
1765 ),
1766 'account_order_details_order_shipping' => apply_filters(
1767 'rtsb/elements/account_order_details_order_shipping/options',
1768 [
1769 'id' => 'account_order_details_order_shipping',
1770 'title' => esc_html__( 'Account Order Shipping', 'shopbuilder' ),
1771 'category' => 'myaccount_dashboard',
1772 'is_front_page' => 'all_myaccount_dashboard_inner',
1773 'active' => 'on',
1774 'package' => $this->pro_package(),
1775 'fields' => [],
1776 ]
1777 ),
1778 'account_order_details_order_billing' => apply_filters(
1779 'rtsb/elements/account_order_details_order_billing/options',
1780 [
1781 'id' => 'account_order_details_order_billing',
1782 'title' => esc_html__( 'Account Order Billing', 'shopbuilder' ),
1783 'category' => 'myaccount_dashboard',
1784 'is_front_page' => 'all_myaccount_dashboard_inner',
1785 'active' => 'on',
1786 'package' => $this->pro_package(),
1787 'fields' => [],
1788 ]
1789 ),
1790 'account_edit_billing_address' => apply_filters(
1791 'rtsb/elements/account_edit_billing_address/options',
1792 [
1793 'id' => 'account_edit_billing_address',
1794 'title' => esc_html__( 'Edit Billing Address', 'shopbuilder' ),
1795 'category' => 'myaccount_dashboard',
1796 'is_front_page' => 'all_myaccount_dashboard_inner',
1797 'active' => 'on',
1798 'package' => $this->pro_package(),
1799 'fields' => [],
1800 ]
1801 ),
1802 'account_edit_shipping_address' => apply_filters(
1803 'rtsb/elements/account_edit_shipping_address/options',
1804 [
1805 'id' => 'account_edit_shipping_address',
1806 'title' => esc_html__( 'Edit Shipping Address', 'shopbuilder' ),
1807 'category' => 'myaccount_dashboard',
1808 'is_front_page' => 'all_myaccount_dashboard_inner',
1809 'active' => 'on',
1810 'package' => $this->pro_package(),
1811 'fields' => [],
1812 ]
1813 ),
1814 'account_payment_methods' => apply_filters(
1815 'rtsb/elements/account_payment_methods/options',
1816 [
1817 'id' => 'account_payment_methods',
1818 'title' => esc_html__( 'Payment Methods', 'shopbuilder' ),
1819 'category' => 'myaccount_dashboard',
1820 'is_front_page' => 'all_myaccount_dashboard_inner',
1821 'active' => 'on',
1822 'package' => $this->pro_package(),
1823 'fields' => [],
1824 ]
1825 ),
1826 'account_add_payment_method' => apply_filters(
1827 'rtsb/elements/account_add_payment_method/options',
1828 [
1829 'id' => 'account_add_payment_method',
1830 'title' => esc_html__( 'Add Payment Method', 'shopbuilder' ),
1831 'category' => 'myaccount_dashboard',
1832 'is_front_page' => 'all_myaccount_dashboard_inner',
1833 'active' => 'on',
1834 'package' => $this->pro_package(),
1835 'fields' => [],
1836 ]
1837 ),
1838 ];
1839
1840 return apply_filters( 'rtsb/core/elements/my_account/widget_list', $widgets );
1841 }
1842
1843 /***
1844 * @return array
1845 */
1846 protected function myaccount_auth_page_widget_list() {
1847 return [
1848 'account_login' => apply_filters(
1849 'rtsb/elements/account_login/options',
1850 [
1851 'id' => 'account_login',
1852 'title' => esc_html__( 'Login Register Form', 'shopbuilder' ),
1853 'category' => 'others_widget',
1854 'is_front_page' => 'myaccount_auth',
1855 'active' => 'on',
1856 'package' => $this->pro_package(),
1857 'fields' => [],
1858 ]
1859 ),
1860 'account_login_form' => apply_filters(
1861 'rtsb/elements/account_login_form/options',
1862 [
1863 'id' => 'account_login_form',
1864 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
1865 'category' => 'others_widget',
1866 'is_front_page' => 'myaccount_auth',
1867 'active' => 'on',
1868 'package' => $this->pro_package(),
1869 'fields' => [],
1870 ]
1871 ),
1872 'account_registration_form' => apply_filters(
1873 'rtsb/elements/account_registration_form/options',
1874 [
1875 'id' => 'account_registration_form',
1876 'title' => esc_html__( 'Registration Form', 'shopbuilder' ),
1877 'category' => 'others_widget',
1878 'is_front_page' => 'myaccount_auth',
1879 'active' => 'on',
1880 'package' => $this->pro_package(),
1881 'fields' => [],
1882 ]
1883 ),
1884 'account_lost_password' => apply_filters(
1885 'rtsb/elements/account_lost_password/options',
1886 [
1887 'id' => 'account_lost_password',
1888 'title' => esc_html__( 'Lost Password Form', 'shopbuilder' ),
1889 'category' => 'others_widget',
1890 'is_front_page' => 'myaccount_auth',
1891 'active' => 'on',
1892 'package' => $this->pro_package(),
1893 'fields' => [],
1894 ]
1895 ),
1896 ];
1897 }
1898 }
1899