PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.3
ShopBuilder – WooCommerce Builder For Elementor v2.6.3
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / app / Models / ElementList.php

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

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