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

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

1,762 lines 56.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace RadiusTheme\SB\Models;
4
5 // Do not allow directly accessing this file.
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit( 'This script cannot be accessed directly.' );
8 }
9
10 use RadiusTheme\SB\Elementor\Widgets\Archive;
11 use RadiusTheme\SB\Elementor\Widgets\Cart;
12 use RadiusTheme\SB\Elementor\Widgets\Checkout;
13 use RadiusTheme\SB\Elementor\Widgets\General;
14 use RadiusTheme\SB\Elementor\Widgets\Single;
15 use RadiusTheme\SB\Models\Base\ListModel;
16 use RadiusTheme\SB\Traits\SingletonTrait;
17 use RadiusTheme\SBPRO\Elementor\Widgets\Checkout as CheckoutPro;
18
19 /**
20 * Elementor Element List
21 */
22 class ElementList extends ListModel {
23 /**
24 * Singleton
25 */
26 use SingletonTrait;
27
28 /**
29 * List id
30 *
31 * @var string
32 */
33 protected $list_id = 'elements';
34
35 /**
36 * Elementor Elements
37 */
38 public function __construct() {
39 parent::__construct();
40 $this->title = esc_html__( 'Elementor Widgets', 'shopbuilder' );
41 $this->short_title = esc_html__( 'Elements', 'shopbuilder' );
42 $this->description = esc_html__( 'Here you can find the list of all Elementor widgets. You can individually enable or disable the elements. Or you can do that by one click.', 'shopbuilder' );
43 $this->categories = apply_filters(
44 'rtsb/elements/list/categories',
45 [
46 'general' => [
47 'title' => esc_html__( 'General', 'shopbuilder' ),
48 ],
49 'shop' => [
50 'title' => esc_html__( 'Shop / Archive', 'shopbuilder' ),
51 ],
52 'product' => [
53 'title' => esc_html__( 'Single', 'shopbuilder' ),
54 ],
55 '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 'shopbuilder_counter' => apply_filters(
330 'rtsb/elements/shopbuilder_counter/options',
331 [
332 'id' => 'shopbuilder_counter',
333 'title' => esc_html__( 'Fun Facts', 'shopbuilder' ),
334 'base_class' => General\Counter\Counter::class,
335 'category' => 'general',
336 'active' => 'on',
337 'package' => 'free',
338 'fields' => [],
339 ]
340 ),
341 'shopbuilder_countdown' => apply_filters(
342 'rtsb/elements/shopbuilder_countdown/options',
343 [
344 'id' => 'shopbuilder_countdown',
345 'title' => esc_html__( 'Countdown', 'shopbuilder' ),
346 'base_class' => General\CountDown\CountDown::class,
347 'category' => 'general',
348 'active' => 'on',
349 'package' => 'free',
350 'fields' => [],
351 ]
352 ),
353 'shopbuilder_progress_bar' => apply_filters(
354 'rtsb/elements/shopbuilder_progress_bar/options',
355 [
356 'id' => 'shopbuilder_progress_bar',
357 'title' => esc_html__( 'Progress Bar', 'shopbuilder' ),
358 'base_class' => General\ProgressBar\ProgressBar::class,
359 'category' => 'general',
360 'active' => 'on',
361 'package' => 'free',
362 'fields' => [],
363 ]
364 ),
365 'image_accordion' => apply_filters(
366 'rtsb/elements/image_accordion/options',
367 [
368 'id' => 'image_accordion',
369 'title' => esc_html__( 'Image Accordion', 'shopbuilder' ),
370 'base_class' => General\ImageAccordion\ImageAccordion::class,
371 'category' => 'general',
372 'active' => 'on',
373 'package' => 'free',
374 'fields' => [],
375 ]
376 ),
377 'shopbuilder_faq' => apply_filters(
378 'rtsb/elements/shopbuilder_faq/options',
379 [
380 'id' => 'shopbuilder_faq',
381 'title' => esc_html__( 'FAQ', 'shopbuilder' ),
382 'base_class' => General\ShopBuilderFaq\ShopBuilderFaq::class,
383 'category' => 'general',
384 'active' => 'on',
385 'package' => 'free',
386 'fields' => [],
387 ]
388 ),
389 'logo_slider_and_grid' => apply_filters(
390 'rtsb/elements/logo_slider_and_grid/options',
391 [
392 'id' => 'logo_slider_and_grid',
393 'title' => esc_html__( 'Logo Slider and Grid', 'shopbuilder' ),
394 'base_class' => General\LogoSliderAndGrid\LogoSliderAndGrid::class,
395 'category' => 'general',
396 'active' => 'on',
397 'package' => 'free',
398 'fields' => [],
399 ]
400 ),
401 'testimonial' => apply_filters(
402 'rtsb/elements/testimonial/options',
403 [
404 'id' => 'testimonial',
405 'title' => esc_html__( 'Testimonials', 'shopbuilder' ),
406 'base_class' => General\Testimonial\Testimonial::class,
407 'category' => 'general',
408 'active' => 'on',
409 'package' => 'free',
410 'fields' => [],
411 ]
412 ),
413 'team_member' => apply_filters(
414 'rtsb/elements/team_member/options',
415 [
416 'id' => 'team_member',
417 'title' => esc_html__( 'Team Members', 'shopbuilder' ),
418 'base_class' => General\TeamMember\TeamMember::class,
419 'category' => 'general',
420 'active' => 'on',
421 'package' => 'free',
422 'fields' => [],
423 ]
424 ),
425 'post_grid' => apply_filters(
426 'rtsb/elements/post_grid/options',
427 [
428 'id' => 'post_grid',
429 'title' => esc_html__( 'Post Grid', 'shopbuilder' ),
430 'base_class' => General\PostGrid\PostGrid::class,
431 'category' => 'general',
432 'active' => 'on',
433 'package' => 'free',
434 'fields' => [],
435 ]
436 ),
437 'post_list' => apply_filters(
438 'rtsb/elements/post_list/options',
439 [
440 'id' => 'post_list',
441 'title' => esc_html__( 'Post List', 'shopbuilder' ),
442 'base_class' => General\PostList\PostList::class,
443 'category' => 'general',
444 'active' => 'on',
445 'package' => 'free',
446 'fields' => [],
447 ]
448 ),
449 ];
450
451 return apply_filters( 'rtsb/core/elements/general/widget_list', $list );
452 }
453
454 /**
455 * Product Single Widget List.
456 *
457 * @return array
458 */
459 protected function product_page_widget_list() {
460
461 $list = [
462 'product_title' => apply_filters(
463 'rtsb/elements/product_title/options',
464 [
465 'id' => 'product_title',
466 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
467 'base_class' => Single\ProductTitle::class,
468 'category' => 'product',
469 'active' => 'on',
470 'package' => 'free',
471 'fields' => [],
472 ]
473 ),
474 'product_description' => apply_filters(
475 'rtsb/elements/product_description/options',
476 [
477 'id' => 'product_description',
478 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
479 'base_class' => Single\ProductDescription::class,
480 'category' => 'product',
481 'active' => 'on',
482 'package' => 'free',
483 'fields' => [],
484 ]
485 ),
486 'product_short_description' => apply_filters(
487 'rtsb/elements/product_short_description/options',
488 [
489 'id' => 'product_short_description',
490 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
491 'base_class' => Single\ShortDescription::class,
492 'category' => 'product',
493 'active' => 'on',
494 'package' => 'free',
495 'fields' => [],
496 ]
497 ),
498 'product_images' => apply_filters(
499 'rtsb/elements/product_images/options',
500 [
501 'id' => 'product_images',
502 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
503 'base_class' => Single\ProductImages::class,
504 'category' => 'product',
505 'active' => 'on',
506 'package' => 'free',
507 'fields' => [],
508 ]
509 ),
510 'product_onsale' => apply_filters(
511 'rtsb/elements/product_onsale/options',
512 [
513 'id' => 'product_onsale',
514 'title' => esc_html__( 'Product Badges', 'shopbuilder' ),
515 'base_class' => Single\ProductBadges::class,
516 'category' => 'product',
517 'active' => 'on',
518 'package' => 'free',
519 'fields' => [],
520 ]
521 ),
522 'product_additional_info' => apply_filters(
523 'rtsb/elements/product_additional_info/options',
524 [
525 'id' => 'product_additional_info',
526 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
527 'base_class' => Single\AdditionalInformation::class,
528 'category' => 'product',
529 'active' => 'on',
530 'package' => 'free',
531 'fields' => [],
532 ]
533 ),
534 'product_price' => apply_filters(
535 'rtsb/elements/product_price/options',
536 [
537 'id' => 'product_price',
538 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
539 'base_class' => Single\ProductPrice::class,
540 'category' => 'product',
541 'active' => 'on',
542 'package' => 'free',
543 'fields' => [],
544 ]
545 ),
546 'product_meta' => apply_filters(
547 'rtsb/elements/product_meta/options',
548 [
549 'id' => 'product_meta',
550 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
551 'base_class' => Single\ProductMeta::class,
552 'category' => 'product',
553 'active' => 'on',
554 'package' => 'free',
555 'fields' => [],
556 ]
557 ),
558 'product_categories' => apply_filters(
559 'rtsb/elements/product_categories/options',
560 [
561 'id' => 'product_categories',
562 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
563 'base_class' => Single\ProductCats::class,
564 'category' => 'product',
565 'active' => 'on',
566 'package' => 'free',
567 'fields' => [],
568 ]
569 ),
570 'product_rating' => apply_filters(
571 'rtsb/elements/product_rating/options',
572 [
573 'id' => 'product_rating',
574 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
575 'base_class' => Single\ProductRating::class,
576 'category' => 'product',
577 'active' => 'on',
578 'package' => 'free',
579 'fields' => [],
580 ]
581 ),
582 'product_tags' => apply_filters(
583 'rtsb/elements/product_tags/options',
584 [
585 'id' => 'product_tags',
586 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
587 'base_class' => Single\ProductTags::class,
588 'category' => 'product',
589 'active' => 'on',
590 'package' => 'free',
591 'fields' => [],
592 ]
593 ),
594 'product_sku' => apply_filters(
595 'rtsb/elements/product_sku/options',
596 [
597 'id' => 'product_sku',
598 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
599 'base_class' => Single\ProductSKU::class,
600 'category' => 'product',
601 'active' => 'on',
602 'package' => 'free',
603 'fields' => [],
604 ]
605 ),
606 'product_stock' => apply_filters(
607 'rtsb/elements/product_stock/options',
608 [
609 'id' => 'product_stock',
610 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
611 'base_class' => Single\ProductStock::class,
612 'category' => 'product',
613 'active' => 'on',
614 'package' => 'free',
615 'fields' => [],
616 ]
617 ),
618 'actions_button' => apply_filters(
619 'rtsb/elements/actions_button/options',
620 [
621 'id' => 'actions_button',
622 'title' => esc_html__( 'Action Buttons', 'shopbuilder' ),
623 'base_class' => Single\ActionsButton::class,
624 'category' => 'product',
625 'active' => 'on',
626 'package' => 'free',
627 'fields' => [],
628 ]
629 ),
630 'product_add_to_cart' => apply_filters(
631 'rtsb/elements/product_add_to_cart/options',
632 [
633 'id' => 'product_add_to_cart',
634 'title' => esc_html__( 'Add to Cart', 'shopbuilder' ),
635 'base_class' => Single\ProductAddToCart::class,
636 'category' => 'product',
637 'active' => 'on',
638 'package' => 'free',
639 'fields' => [],
640 ]
641 ),
642 'product_share' => apply_filters(
643 'rtsb/elements/product_share/options',
644 [
645 'id' => 'product_share',
646 'title' => esc_html__( 'Product Share', 'shopbuilder' ),
647 'base_class' => Single\ProductShare::class,
648 'category' => 'product',
649 'active' => 'on',
650 'package' => 'free',
651 'fields' => [],
652 ]
653 ),
654 'product_sales_count' => apply_filters(
655 'rtsb/elements/product_sales_count/options',
656 [
657 'id' => 'product_sales_count',
658 'title' => esc_html__( 'Sales Count', 'shopbuilder' ),
659 'category' => 'product',
660 'active' => '',
661 'package' => $this->pro_package(),
662 'fields' => [],
663 ]
664 ),
665 'product_stock_counter' => apply_filters(
666 'rtsb/elements/product_stock_counter/options',
667 [
668 'id' => 'product_stock_counter',
669 'title' => esc_html__( 'Product Stock Count', 'shopbuilder' ),
670 'category' => 'product',
671 'active' => '',
672 'package' => $this->pro_package(),
673 'fields' => [],
674 ]
675 ),
676 'flash_sale_countdown' => apply_filters(
677 'rtsb/elements/flash_sale_countdown/options',
678 [
679 'id' => 'flash_sale_countdown',
680 'title' => esc_html__( 'Flash Sale Countdown', 'shopbuilder' ),
681 'category' => 'product',
682 'active' => '',
683 'package' => $this->pro_package(),
684 'fields' => [],
685 ]
686 ),
687 'product_size_chart' => apply_filters(
688 'rtsb/elements/product_size_chart/options',
689 [
690 'id' => 'product_size_chart',
691 'title' => esc_html__( 'Size Chart', 'shopbuilder' ),
692 'category' => 'product',
693 'active' => '',
694 'package' => $this->pro_package(),
695 'fields' => [],
696 ]
697 ),
698 'product_quick_checkout' => apply_filters(
699 'rtsb/elements/product_quick_checkout/options',
700 [
701 'id' => 'product_quick_checkout',
702 'title' => esc_html__( 'Quick Checkout', 'shopbuilder' ),
703 'category' => 'product',
704 'active' => '',
705 'package' => $this->pro_package(),
706 'fields' => [],
707 ]
708 ),
709 'product_tabs' => apply_filters(
710 'rtsb/elements/product_tabs/options',
711 [
712 'id' => 'product_tabs',
713 'title' => esc_html__( 'Product Tabs', 'shopbuilder' ),
714 'base_class' => Single\ProductTabs::class,
715 'category' => 'product',
716 'active' => 'on',
717 'package' => 'free',
718 'fields' => [],
719 ]
720 ),
721 'advance_product_tabs' => apply_filters(
722 'rtsb/elements/advance_product_tabs/options',
723 [
724 'id' => 'advance_product_tabs',
725 'title' => esc_html__( 'Advanced Product Tabs', 'shopbuilder' ),
726 'category' => 'product',
727 'active' => '',
728 'package' => $this->pro_package(),
729 'fields' => [],
730 ]
731 ),
732 'product_reviews' => apply_filters(
733 'rtsb/elements/product_reviews/options',
734 [
735 'id' => 'product_reviews',
736 'title' => esc_html__( 'Product Reviews', 'shopbuilder' ),
737 'base_class' => Single\ProductReviews::class,
738 'category' => 'product',
739 'active' => 'on',
740 'package' => 'free',
741 'fields' => [],
742 ]
743 ),
744 'upsells_product' => apply_filters(
745 'rtsb/elements/upsells_product/options',
746 [
747 'id' => 'upsells_product',
748 'title' => esc_html__( 'Upsell - Default Layout', 'shopbuilder' ),
749 'base_class' => Single\UpsellsProduct::class,
750 'category' => 'product',
751 'active' => 'on',
752 'package' => 'free',
753 'fields' => [],
754 ]
755 ),
756 'upsells_product_custom' => apply_filters(
757 'rtsb/elements/upsells_product_custom/options',
758 [
759 'id' => 'upsells_product_custom',
760 'title' => esc_html__( 'Upsell - Custom Layouts', 'shopbuilder' ),
761 'base_class' => Single\UpsellsProductsCustom::class,
762 'category' => 'product',
763 'active' => 'on',
764 'package' => 'free',
765 'fields' => [],
766 ]
767 ),
768 'upsells_products_slider_custom' => apply_filters(
769 'rtsb/elements/upsells_products_slider_custom/options',
770 [
771 'id' => 'upsells_products_slider_custom',
772 'title' => esc_html__( 'Upsell - Slider Layouts', 'shopbuilder' ),
773 'base_class' => Single\UpsellsProductsSlider::class,
774 'category' => 'product',
775 'active' => 'on',
776 'package' => 'free',
777 'fields' => [],
778 ]
779 ),
780 'related_product' => apply_filters(
781 'rtsb/elements/related_product/options',
782 [
783 'id' => 'related_product',
784 'title' => esc_html__( 'Related - Default Layout', 'shopbuilder' ),
785 'base_class' => Single\RelatedProduct::class,
786 'category' => 'product',
787 'active' => 'on',
788 'package' => 'free',
789 'fields' => [],
790 ]
791 ),
792 'related_product_custom' => apply_filters(
793 'rtsb/elements/related_product_custom/options',
794 [
795 'id' => 'related_product_custom',
796 'title' => esc_html__( 'Related - Custom Layouts', 'shopbuilder' ),
797 'base_class' => Single\RelatedProductsCustom::class,
798 'category' => 'product',
799 'active' => 'on',
800 'package' => 'free',
801 'fields' => [],
802 ]
803 ),
804 'related_products_slider_custom' => apply_filters(
805 'rtsb/elements/related_products_slider_custom/options',
806 [
807 'id' => 'related_products_slider_custom',
808 'title' => esc_html__( 'Related - Slider Layouts', 'shopbuilder' ),
809 'base_class' => Single\RelatedProductsSlider::class,
810 'category' => 'product',
811 'active' => 'on',
812 'package' => 'free',
813 'fields' => [],
814 ]
815 ),
816 ];
817
818 return apply_filters( 'rtsb/core/elements/product_page/widget_list', $list );
819 }
820
821 /**
822 * Product Single Widget List.
823 *
824 * @return array
825 */
826 protected function product_quick_view() {
827
828 $list = [
829 'qv_product_title' => apply_filters(
830 'rtsb/elements/qv_product_title/options',
831 [
832 'id' => 'qv_product_title',
833 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
834 'base_class' => Single\ProductTitle::class,
835 'category' => 'quick_view',
836 'is_front_page' => 'quick_view',
837 'active' => 'on',
838 'package' => $this->pro_package(),
839 'fields' => [],
840 ]
841 ),
842 'qv_product_description' => apply_filters(
843 'rtsb/elements/qv_product_description/options',
844 [
845 'id' => 'qv_product_description',
846 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
847 'base_class' => Single\ProductDescription::class,
848 'category' => 'quick_view',
849 'is_front_page' => 'quick_view',
850 'active' => 'on',
851 'package' => $this->pro_package(),
852 'fields' => [],
853 ]
854 ),
855 'qv_product_short_description' => apply_filters(
856 'rtsb/elements/qv_product_short_description/options',
857 [
858 'id' => 'qv_product_short_description',
859 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
860 'base_class' => Single\ShortDescription::class,
861 'category' => 'quick_view',
862 'is_front_page' => 'quick_view',
863 'active' => 'on',
864 'package' => $this->pro_package(),
865 'fields' => [],
866 ]
867 ),
868 'qv_product_images' => apply_filters(
869 'rtsb/elements/qv_product_images/options',
870 [
871 'id' => 'qv_product_images',
872 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
873 'base_class' => Single\ProductImages::class,
874 'category' => 'quick_view',
875 'is_front_page' => 'quick_view',
876 'active' => 'on',
877 'package' => $this->pro_package(),
878 'fields' => [],
879 ]
880 ),
881 'qv_product_badges' => apply_filters(
882 'rtsb/elements/qv_product_badges/options',
883 [
884 'id' => 'qv_product_badges',
885 'title' => esc_html__( 'Product Badges', 'shopbuilder' ),
886 'base_class' => Single\ProductBadges::class,
887 'category' => 'quick_view',
888 'is_front_page' => 'quick_view',
889 'active' => 'on',
890 'package' => $this->pro_package(),
891 'fields' => [],
892 ]
893 ),
894 'qv_product_additional_info' => apply_filters(
895 'rtsb/elements/qv_product_additional_info/options',
896 [
897 'id' => 'qv_product_additional_info',
898 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
899 'base_class' => Single\AdditionalInformation::class,
900 'category' => 'quick_view',
901 'is_front_page' => 'quick_view',
902 'active' => 'on',
903 'package' => $this->pro_package(),
904 'fields' => [],
905 ]
906 ),
907 'qv_product_price' => apply_filters(
908 'rtsb/elements/qv_product_price/options',
909 [
910 'id' => 'qv_product_price',
911 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
912 'base_class' => Single\ProductPrice::class,
913 'category' => 'quick_view',
914 'is_front_page' => 'quick_view',
915 'active' => 'on',
916 'package' => $this->pro_package(),
917 'fields' => [],
918 ]
919 ),
920 'qv_product_meta' => apply_filters(
921 'rtsb/elements/qv_product_meta/options',
922 [
923 'id' => 'qv_product_meta',
924 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
925 'base_class' => Single\ProductMeta::class,
926 'category' => 'quick_view',
927 'is_front_page' => 'quick_view',
928 'active' => 'on',
929 'package' => $this->pro_package(),
930 'fields' => [],
931 ]
932 ),
933 'qv_product_categories' => apply_filters(
934 'rtsb/elements/qv_product_categories/options',
935 [
936 'id' => 'qv_product_categories',
937 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
938 'base_class' => Single\ProductCats::class,
939 'category' => 'quick_view',
940 'is_front_page' => 'quick_view',
941 'active' => 'on',
942 'package' => $this->pro_package(),
943 'fields' => [],
944 ]
945 ),
946 'qv_product_rating' => apply_filters(
947 'rtsb/elements/qv_product_rating/options',
948 [
949 'id' => 'qv_product_rating',
950 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
951 'base_class' => Single\ProductRating::class,
952 'category' => 'quick_view',
953 'is_front_page' => 'quick_view',
954 'active' => 'on',
955 'package' => $this->pro_package(),
956 'fields' => [],
957 ]
958 ),
959 'qv_product_tags' => apply_filters(
960 'rtsb/elements/qv_product_tags/options',
961 [
962 'id' => 'qv_product_tags',
963 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
964 'base_class' => Single\ProductTags::class,
965 'category' => 'quick_view',
966 'is_front_page' => 'quick_view',
967 'active' => 'on',
968 'package' => $this->pro_package(),
969 'fields' => [],
970 ]
971 ),
972 'qv_product_sku' => apply_filters(
973 'rtsb/elements/qv_product_sku/options',
974 [
975 'id' => 'qv_product_sku',
976 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
977 'base_class' => Single\ProductSKU::class,
978 'category' => 'quick_view',
979 'is_front_page' => 'quick_view',
980 'active' => 'on',
981 'package' => $this->pro_package(),
982 'fields' => [],
983 ]
984 ),
985 'qv_product_stock' => apply_filters(
986 'rtsb/elements/qv_product_stock/options',
987 [
988 'id' => 'qv_product_stock',
989 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
990 'base_class' => Single\ProductStock::class,
991 'category' => 'quick_view',
992 'is_front_page' => 'quick_view',
993 'active' => 'on',
994 'package' => $this->pro_package(),
995 'fields' => [],
996 ]
997 ),
998 'qv_actions_button' => apply_filters(
999 'rtsb/elements/qv_actions_button/options',
1000 [
1001 'id' => 'qv_actions_button',
1002 'title' => esc_html__( 'Action Buttons', 'shopbuilder' ),
1003 'base_class' => Single\ActionsButton::class,
1004 'category' => 'quick_view',
1005 'is_front_page' => 'quick_view',
1006 'active' => 'on',
1007 'package' => $this->pro_package(),
1008 'fields' => [],
1009 ]
1010 ),
1011 'qv_product_add_to_cart' => apply_filters(
1012 'rtsb/elements/qv_product_add_to_cart/options',
1013 [
1014 'id' => 'qv_product_add_to_cart',
1015 'title' => esc_html__( 'Add to Cart', 'shopbuilder' ),
1016 'base_class' => Single\ProductAddToCart::class,
1017 'category' => 'quick_view',
1018 'is_front_page' => 'quick_view',
1019 'active' => 'on',
1020 'package' => $this->pro_package(),
1021 'fields' => [],
1022 ]
1023 ),
1024 'qv_product_sales_count' => apply_filters(
1025 'rtsb/elements/qv_product_sales_count/options',
1026 [
1027 'id' => 'qv_product_sales_count',
1028 'title' => esc_html__( 'Sales Count', 'shopbuilder' ),
1029 'category' => 'quick_view',
1030 'is_front_page' => 'quick_view',
1031 'active' => 'on',
1032 'package' => $this->pro_package(),
1033 'fields' => [],
1034 ]
1035 ),
1036 'qv_social_share' => apply_filters(
1037 'rtsb/settings/qv_social_share/options',
1038 [
1039 'id' => 'qv_social_share',
1040 'title' => esc_html__( 'Social Share', 'shopbuilder' ),
1041 'base_class' => General\SocialShare::class,
1042 'active' => 'on',
1043 'category' => 'quick_view',
1044 'is_front_page' => 'quick_view',
1045 'package' => $this->pro_package(),
1046 'fields' => [],
1047 ]
1048 ),
1049 'qv_product_quick_checkout' => apply_filters(
1050 'rtsb/elements/qv_product_quick_checkout/options',
1051 [
1052 'id' => 'qv_product_quick_checkout',
1053 'title' => esc_html__( 'Quick Checkout', 'shopbuilder' ),
1054 'category' => 'quick_view',
1055 'is_front_page' => 'quick_view',
1056 'active' => 'on',
1057 'package' => $this->pro_package(),
1058 'fields' => [],
1059 ]
1060 ),
1061
1062 'qv_product_size_chart' => apply_filters(
1063 'rtsb/elements/qv_product_size_chart/options',
1064 [
1065 'id' => 'qv_product_size_chart',
1066 'title' => esc_html__( 'Size Chart', 'shopbuilder' ),
1067 'category' => 'quick_view',
1068 'is_front_page' => 'quick_view',
1069 'active' => '',
1070 'package' => $this->pro_package(),
1071 'fields' => [],
1072 ]
1073 ),
1074
1075 ];
1076
1077 return apply_filters( 'rtsb/core/elements/quick_view/widget_list', $list );
1078 }
1079
1080 /**
1081 * Product Archive Widget List.
1082 *
1083 * @return array
1084 */
1085 protected function shop_archive_page_widget_list() {
1086 $list = [
1087 'archive_title' => apply_filters(
1088 'rtsb/elements/archive_title/options',
1089 [
1090 'id' => 'archive_title',
1091 'title' => esc_html__( 'Archive Title', 'shopbuilder' ),
1092 'base_class' => Archive\ArchiveTitle::class,
1093 'category' => 'shop',
1094 'active' => 'on',
1095 'package' => 'free',
1096 'fields' => [],
1097 ]
1098 ),
1099
1100 'archive_description' => apply_filters(
1101 'rtsb/elements/archive_description/options',
1102 [
1103 'id' => 'archive_description',
1104 'title' => esc_html__( 'Archive Description', 'shopbuilder' ),
1105 'base_class' => Archive\ArchiveDescription::class,
1106 'category' => 'shop',
1107 'active' => 'on',
1108 'package' => 'free',
1109 'fields' => [],
1110 ]
1111 ),
1112
1113 'products_archive_catalog' => apply_filters(
1114 'rtsb/elements/products_archive_catalog/options',
1115 [
1116 'id' => 'products_archive_catalog',
1117 'title' => esc_html__( 'Products - Default Layout', 'shopbuilder' ),
1118 'base_class' => Archive\ProductsArchive::class,
1119 'category' => 'shop',
1120 'active' => 'on',
1121 'package' => 'free',
1122 'fields' => [],
1123 ]
1124 ),
1125
1126 'products_archive_catalog_custom' => apply_filters(
1127 'rtsb/elements/products_archive_catalog_custom/options',
1128 [
1129 'id' => 'products_archive_catalog_custom',
1130 'title' => esc_html__( 'Products - Custom Layouts', 'shopbuilder' ),
1131 'base_class' => Archive\ProductsArchiveCustom::class,
1132 'category' => 'shop',
1133 'active' => 'on',
1134 'package' => 'free',
1135 'fields' => [],
1136 ]
1137 ),
1138
1139 'ajax_product_filters' => apply_filters(
1140 'rtsb/elements/ajax_product_filters/options',
1141 [
1142 'id' => 'ajax_product_filters',
1143 'title' => esc_html__( 'Ajax Product Filters', 'shopbuilder' ),
1144 'category' => 'shop',
1145 'active' => 'on',
1146 'package' => $this->pro_package(),
1147 'fields' => [],
1148 ]
1149 ),
1150
1151 'archive_result_count' => apply_filters(
1152 'rtsb/elements/archive_result_count/options',
1153 [
1154 'id' => 'archive_result_count',
1155 'title' => esc_html__( 'Result Count', 'shopbuilder' ),
1156 'base_class' => Archive\ArchiveResultCount::class,
1157 'category' => 'shop',
1158 'active' => 'on',
1159 'package' => 'free',
1160 'fields' => [],
1161 ]
1162 ),
1163 'archive_products_ordering' => apply_filters(
1164 'rtsb/elements/archive_products_ordering/options',
1165 [
1166 'id' => 'archive_products_ordering',
1167 'title' => esc_html__( 'Products Ordering', 'shopbuilder' ),
1168 'base_class' => Archive\ProductsOrdering::class,
1169 'category' => 'shop',
1170 'active' => 'on',
1171 'package' => 'free',
1172 'fields' => [],
1173 ]
1174 ),
1175 'archive_product_mode' => apply_filters(
1176 'rtsb/elements/archive_product_mode/options',
1177 [
1178 'id' => 'archive_product_mode',
1179 'title' => esc_html__( 'View Mode', 'shopbuilder' ),
1180 'base_class' => Archive\ArchiveProductMode::class,
1181 'category' => 'shop',
1182 'active' => 'on',
1183 'package' => 'free',
1184 'fields' => [],
1185 ]
1186 ),
1187 ];
1188
1189 return apply_filters( 'rtsb/core/elements/shop/widget_list', $list );
1190 }
1191
1192 /**
1193 * Cart Page Widget List.
1194 *
1195 * @return array
1196 */
1197 protected function cart_page_widget_list() {
1198 $list = [
1199 'cart_table' => apply_filters(
1200 'rtsb/elements/cart_table/options',
1201 [
1202 'id' => 'cart_table',
1203 'title' => esc_html__( 'Cart Table', 'shopbuilder' ),
1204 'base_class' => Cart\CartTable::class,
1205 'category' => 'cart',
1206 'active' => 'on',
1207 'package' => 'free',
1208 'fields' => [],
1209 ]
1210 ),
1211 'cart_totals' => apply_filters(
1212 'rtsb/elements/cart_totals/options',
1213 [
1214 'id' => 'cart_totals',
1215 'title' => esc_html__( 'Cart Totals', 'shopbuilder' ),
1216 'base_class' => Cart\CartTotals::class,
1217 'category' => 'cart',
1218 'active' => 'on',
1219 'package' => 'free',
1220 'fields' => [],
1221 ]
1222 ),
1223 'cart_coupon_form' => apply_filters(
1224 'rtsb/elements/cart_coupon_form/options',
1225 [
1226 'id' => 'cart_coupon_form',
1227 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
1228 'category' => 'cart',
1229 'active' => 'on',
1230 'package' => $this->pro_package(),
1231 'fields' => [],
1232 ]
1233 ),
1234 'cross_sells' => apply_filters(
1235 'rtsb/elements/cross_sells/options',
1236 [
1237 'id' => 'cross_sells',
1238 'title' => esc_html__( 'Cross Sell - Default Layout', 'shopbuilder' ),
1239 'base_class' => Cart\CrossSellProduct::class,
1240 'category' => 'cart',
1241 'active' => 'on',
1242 'package' => 'free',
1243 'fields' => [],
1244 ]
1245 ),
1246 'cross_sells_custom' => apply_filters(
1247 'rtsb/elements/cross_sells_custom/options',
1248 [
1249 'id' => 'cross_sells_custom',
1250 'title' => esc_html__( 'Cross Sell - Custom Layouts', 'shopbuilder' ),
1251 'base_class' => Cart\CrossSellsProductsCustom::class,
1252 'category' => 'cart',
1253 'active' => 'on',
1254 'package' => 'free',
1255 'fields' => [],
1256 ]
1257 ),
1258 'cross_sells_custom_slider' => apply_filters(
1259 'rtsb/elements/cross_sells_custom_slider/options',
1260 [
1261 'id' => 'cross_sells_custom_slider',
1262 'title' => esc_html__( 'Cross Sell - Slider Layouts', 'shopbuilder' ),
1263 'base_class' => Cart\CrossSellsProductsSlider::class,
1264 'category' => 'cart',
1265 'active' => 'on',
1266 'package' => 'free',
1267 'fields' => [],
1268 ]
1269 ),
1270 ];
1271
1272 return apply_filters( 'rtsb/core/elements/cart/widget_list', $list );
1273 }
1274
1275 /**
1276 * Checkout Page Widget List.
1277 *
1278 * @return array
1279 */
1280 protected function checkout_page_widget_list() {
1281 $list = [
1282 'billing_form' => apply_filters(
1283 'rtsb/elements/billing_form/options',
1284 [
1285 'id' => 'billing_form',
1286 'title' => esc_html__( 'Billing Form', 'shopbuilder' ),
1287 'base_class' => Checkout\BillingForm::class,
1288 'category' => 'checkout',
1289 'active' => 'on',
1290 'package' => 'free',
1291 'fields' => [],
1292 ]
1293 ),
1294 'shipping_form' => apply_filters(
1295 'rtsb/elements/shipping_form/options',
1296 [
1297 'id' => 'shipping_form',
1298 'title' => esc_html__( 'Shipping Form', 'shopbuilder' ),
1299 'base_class' => Checkout\ShippingForm::class,
1300 'category' => 'checkout',
1301 'active' => 'on',
1302 'package' => 'free',
1303 'fields' => [],
1304 ]
1305 ),
1306 'order_notes' => apply_filters(
1307 'rtsb/elements/order_notes/options',
1308 [
1309 'id' => 'order_notes',
1310 'title' => esc_html__( 'Order Notes', 'shopbuilder' ),
1311 'base_class' => Checkout\OrderNotes::class,
1312 'category' => 'checkout',
1313 'active' => 'on',
1314 'package' => 'free',
1315 'fields' => [],
1316 ]
1317 ),
1318 'order_review' => apply_filters(
1319 'rtsb/elements/order_review/options',
1320 [
1321 'id' => 'order_review',
1322 'title' => esc_html__( 'Order Review', 'shopbuilder' ),
1323 'base_class' => Checkout\OrderReview::class,
1324 'category' => 'checkout',
1325 'active' => 'on',
1326 'package' => 'free',
1327 'fields' => [],
1328 ]
1329 ),
1330 'checkout_payment' => apply_filters(
1331 'rtsb/elements/checkout_payment/options',
1332 [
1333 'id' => 'checkout_payment',
1334 'title' => esc_html__( 'Checkout Payment Method', 'shopbuilder' ),
1335 'base_class' => Checkout\CheckoutPayment::class,
1336 'category' => 'checkout',
1337 'active' => 'on',
1338 'package' => 'free',
1339 'fields' => [],
1340 ]
1341 ),
1342 'coupon_form' => apply_filters(
1343 'rtsb/elements/coupon_form/options',
1344 [
1345 'id' => 'coupon_form',
1346 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
1347 'base_class' => Checkout\CouponForm::class,
1348 'category' => 'checkout',
1349 'active' => 'on',
1350 'package' => 'free',
1351 'fields' => [],
1352 ]
1353 ),
1354 'checkout_login_form' => apply_filters(
1355 'rtsb/elements/checkout_login_form/options',
1356 [
1357 'id' => 'checkout_login_form',
1358 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
1359 'base_class' => Checkout\CheckoutLoginForm::class,
1360 'category' => 'checkout',
1361 'active' => 'on',
1362 'package' => 'free',
1363 'fields' => [],
1364 ]
1365 ),
1366 'shipping_method' => apply_filters(
1367 'rtsb/elements/shipping_method/options',
1368 [
1369 'id' => 'shipping_method',
1370 'title' => esc_html__( 'Shipping Method', 'shopbuilder' ),
1371 'base_class' => Checkout\ShippingMethod::class,
1372 'category' => 'checkout',
1373 'active' => 'on',
1374 'package' => 'free',
1375 'fields' => [],
1376 ]
1377 ),
1378 'multi_step_checkout_widget' => apply_filters(
1379 'rtsb/elements/multi_step_checkout_widget/options',
1380 [
1381 'id' => 'multi_step_checkout_widget',
1382 'title' => esc_html__( 'Multi Step Checkout', 'shopbuilder' ),
1383 'base_class' => CheckoutPro\MultiStepCheckout::class,
1384 'category' => 'checkout',
1385 'active' => '',
1386 'package' => $this->pro_package(),
1387 'fields' => [],
1388 ]
1389 ),
1390
1391 ];
1392
1393 return apply_filters( 'rtsb/core/elements/checkout/widget_list', $list );
1394 }
1395
1396 /**
1397 * Checkout Page Widget List.
1398 *
1399 * @return array
1400 */
1401 protected function thankyou_page_widget_list() {
1402 return [
1403 'order_received_text' => apply_filters(
1404 'rtsb/elements/order_received_text/options',
1405 [
1406 'id' => 'order_received_text',
1407 'title' => esc_html__( 'Order Received Text', 'shopbuilder' ),
1408 'category' => 'thank_you',
1409 'is_front_page' => 'thank_you',
1410 'active' => 'on',
1411 'package' => $this->pro_package(),
1412 'fields' => [],
1413 ]
1414 ),
1415 'order_details_summary' => apply_filters(
1416 'rtsb/elements/order_details_summary/options',
1417 [
1418 'id' => 'order_details_summary',
1419 'title' => esc_html__( 'Order Details Summary', 'shopbuilder' ),
1420 'category' => 'thank_you',
1421 'is_front_page' => 'thank_you',
1422 'active' => 'on',
1423 'package' => $this->pro_package(),
1424 'fields' => [],
1425 ]
1426 ),
1427 'order_details_table' => apply_filters(
1428 'rtsb/elements/order_details_table/options',
1429 [
1430 'id' => 'order_details_table',
1431 'title' => esc_html__( 'Order Details Table', 'shopbuilder' ),
1432 'category' => 'thank_you',
1433 'is_front_page' => 'thank_you',
1434 'active' => 'on',
1435 'package' => $this->pro_package(),
1436 'fields' => [],
1437 ]
1438 ),
1439 'downloadable_products' => apply_filters(
1440 'rtsb/elements/downloadable_products/options',
1441 [
1442 'id' => 'downloadable_products',
1443 'title' => esc_html__( 'Downloadable Products', 'shopbuilder' ),
1444 'category' => 'thank_you',
1445 'is_front_page' => 'thank_you',
1446 'active' => 'on',
1447 'package' => $this->pro_package(),
1448 'fields' => [],
1449 ]
1450 ),
1451 'order_billing_address' => apply_filters(
1452 'rtsb/elements/order_billing_address/options',
1453 [
1454 'id' => 'order_billing_address',
1455 'title' => esc_html__( 'Order Billing Address', 'shopbuilder' ),
1456 'category' => 'thank_you',
1457 'is_front_page' => 'thank_you',
1458 'active' => 'on',
1459 'package' => $this->pro_package(),
1460 'fields' => [],
1461 ]
1462 ),
1463 'order_shipping_address' => apply_filters(
1464 'rtsb/elements/order_shipping_address/options',
1465 [
1466 'id' => 'order_shipping_address',
1467 'title' => esc_html__( 'Order Shipping Address', 'shopbuilder' ),
1468 'category' => 'thank_you',
1469 'is_front_page' => 'thank_you',
1470 'active' => 'on',
1471 'package' => $this->pro_package(),
1472 'fields' => [],
1473 ]
1474 ),
1475 'order_custom_fields_data' => apply_filters(
1476 'rtsb/elements/order_custom_fields_data/options',
1477 [
1478 'id' => 'order_custom_fields_data',
1479 'title' => esc_html__( 'Checkout Form Custom Fields Data', 'shopbuilder' ),
1480 'category' => 'thank_you',
1481 'is_front_page' => 'thank_you',
1482 'active' => 'on',
1483 'package' => $this->pro_package(),
1484 'fields' => [],
1485 ]
1486 ),
1487 ];
1488 }
1489
1490 /**
1491 * Checkout Page Widget List.
1492 *
1493 * @return array
1494 */
1495 protected function my_account_page_widget_list() {
1496 $widgets = [
1497 'account_navigation_edit_shipping' => apply_filters(
1498 'rtsb/elements/account_navigation_edit_shipping/options',
1499 [
1500 'id' => 'account_navigation_edit_shipping',
1501 'title' => esc_html__( 'Account Navigation', 'shopbuilder' ),
1502 'category' => 'myaccount_dashboard',
1503 'is_front_page' => 'all_myaccount_dashboard_inner',
1504 'active' => 'on',
1505 'package' => $this->pro_package(),
1506 'fields' => [],
1507 ]
1508 ),
1509 'account_dashboard' => apply_filters(
1510 'rtsb/elements/account_dashboard/options',
1511 [
1512 'id' => 'account_dashboard',
1513 'title' => esc_html__( 'Account Dashboard', 'shopbuilder' ),
1514 'category' => 'myaccount_dashboard',
1515 'is_front_page' => 'all_myaccount_dashboard_inner',
1516 'active' => 'on',
1517 'package' => $this->pro_package(),
1518 'fields' => [],
1519 ]
1520 ),
1521 'account_orders' => apply_filters(
1522 'rtsb/elements/account_orders/options',
1523 [
1524 'id' => 'account_orders',
1525 'title' => esc_html__( 'Account Orders', 'shopbuilder' ),
1526 'category' => 'myaccount_dashboard',
1527 'is_front_page' => 'all_myaccount_dashboard_inner',
1528 'active' => 'on',
1529 'package' => $this->pro_package(),
1530 'fields' => [],
1531 ]
1532 ),
1533 'account_downloads' => apply_filters(
1534 'rtsb/elements/account_downloads/options',
1535 [
1536 'id' => 'account_downloads',
1537 'title' => esc_html__( 'Account Downloads', 'shopbuilder' ),
1538 'category' => 'myaccount_dashboard',
1539 'is_front_page' => 'all_myaccount_dashboard_inner',
1540 'active' => 'on',
1541 'package' => $this->pro_package(),
1542 'fields' => [],
1543 ]
1544 ),
1545 'account_billing_address' => apply_filters(
1546 'rtsb/elements/account_billing_address/options',
1547 [
1548 'id' => 'account_billing_address',
1549 'title' => esc_html__( 'Account Billing Address', 'shopbuilder' ),
1550 'category' => 'myaccount_dashboard',
1551 'is_front_page' => 'all_myaccount_dashboard_inner',
1552 'active' => 'on',
1553 'package' => $this->pro_package(),
1554 'fields' => [],
1555 ]
1556 ),
1557 'account_shipping_address' => apply_filters(
1558 'rtsb/elements/account_shipping_address/options',
1559 [
1560 'id' => 'account_shipping_address',
1561 'title' => esc_html__( 'Account Shipping Address', 'shopbuilder' ),
1562 'category' => 'myaccount_dashboard',
1563 'is_front_page' => 'all_myaccount_dashboard_inner',
1564 'active' => 'on',
1565 'package' => $this->pro_package(),
1566 'fields' => [],
1567 ]
1568 ),
1569 'account_address_description' => apply_filters(
1570 'rtsb/elements/account_address_description/options',
1571 [
1572 'id' => 'account_address_description',
1573 'title' => esc_html__( 'Account Address Description', 'shopbuilder' ),
1574 'category' => 'myaccount_dashboard',
1575 'is_front_page' => 'all_myaccount_dashboard_inner',
1576 'active' => 'on',
1577 'package' => $this->pro_package(),
1578 'fields' => [],
1579 ]
1580 ),
1581 'account_details' => apply_filters(
1582 'rtsb/elements/account_details/options',
1583 [
1584 'id' => 'account_details',
1585 'title' => esc_html__( 'Account Edit / Details', 'shopbuilder' ),
1586 'category' => 'myaccount_dashboard',
1587 'is_front_page' => 'all_myaccount_dashboard_inner',
1588 'active' => 'on',
1589 'package' => $this->pro_package(),
1590 'fields' => [],
1591 ]
1592 ),
1593 'account_order_status' => apply_filters(
1594 'rtsb/elements/account_order_status/options',
1595 [
1596 'id' => 'account_order_status',
1597 'title' => esc_html__( 'Account Order Status', 'shopbuilder' ),
1598 'category' => 'myaccount_dashboard',
1599 'is_front_page' => 'all_myaccount_dashboard_inner',
1600 'active' => 'on',
1601 'package' => $this->pro_package(),
1602 'fields' => [],
1603 ]
1604 ),
1605 'account_order_details_download' => apply_filters(
1606 'rtsb/elements/account_order_details_download/options',
1607 [
1608 'id' => 'account_order_details_download',
1609 'title' => esc_html__( 'Account Order Download', 'shopbuilder' ),
1610 'category' => 'myaccount_dashboard',
1611 'is_front_page' => 'all_myaccount_dashboard_inner',
1612 'active' => 'on',
1613 'package' => $this->pro_package(),
1614 'fields' => [],
1615 ]
1616 ),
1617 'account_order_details_note' => apply_filters(
1618 'rtsb/elements/account_order_details_note/options',
1619 [
1620 'id' => 'account_order_details_note',
1621 'title' => esc_html__( 'Account Order Note', 'shopbuilder' ),
1622 'category' => 'myaccount_dashboard',
1623 'is_front_page' => 'all_myaccount_dashboard_inner',
1624 'active' => 'on',
1625 'package' => $this->pro_package(),
1626 'fields' => [],
1627 ]
1628 ),
1629 'account_order_details_table' => apply_filters(
1630 'rtsb/elements/account_order_details_table/options',
1631 [
1632 'id' => 'account_order_details_table',
1633 'title' => esc_html__( 'Account Order Table', 'shopbuilder' ),
1634 'category' => 'myaccount_dashboard',
1635 'is_front_page' => 'all_myaccount_dashboard_inner',
1636 'active' => 'on',
1637 'package' => $this->pro_package(),
1638 'fields' => [],
1639 ]
1640 ),
1641 'account_order_details_order_again' => apply_filters(
1642 'rtsb/elements/account_order_details_order_again/options',
1643 [
1644 'id' => 'account_order_details_order_again',
1645 'title' => esc_html__( 'Account Order Again Button', 'shopbuilder' ),
1646 'category' => 'myaccount_dashboard',
1647 'is_front_page' => 'all_myaccount_dashboard_inner',
1648 'active' => 'on',
1649 'package' => $this->pro_package(),
1650 'fields' => [],
1651 ]
1652 ),
1653 'account_order_details_order_shipping' => apply_filters(
1654 'rtsb/elements/account_order_details_order_shipping/options',
1655 [
1656 'id' => 'account_order_details_order_shipping',
1657 'title' => esc_html__( 'Account Order Shipping', 'shopbuilder' ),
1658 'category' => 'myaccount_dashboard',
1659 'is_front_page' => 'all_myaccount_dashboard_inner',
1660 'active' => 'on',
1661 'package' => $this->pro_package(),
1662 'fields' => [],
1663 ]
1664 ),
1665 'account_order_details_order_billing' => apply_filters(
1666 'rtsb/elements/account_order_details_order_billing/options',
1667 [
1668 'id' => 'account_order_details_order_billing',
1669 'title' => esc_html__( 'Account Order Billing', 'shopbuilder' ),
1670 'category' => 'myaccount_dashboard',
1671 'is_front_page' => 'all_myaccount_dashboard_inner',
1672 'active' => 'on',
1673 'package' => $this->pro_package(),
1674 'fields' => [],
1675 ]
1676 ),
1677 'account_edit_billing_address' => apply_filters(
1678 'rtsb/elements/account_edit_billing_address/options',
1679 [
1680 'id' => 'account_edit_billing_address',
1681 'title' => esc_html__( 'Edit Billing Address', 'shopbuilder' ),
1682 'category' => 'myaccount_dashboard',
1683 'is_front_page' => 'all_myaccount_dashboard_inner',
1684 'active' => 'on',
1685 'package' => $this->pro_package(),
1686 'fields' => [],
1687 ]
1688 ),
1689 'account_edit_shipping_address' => apply_filters(
1690 'rtsb/elements/account_edit_shipping_address/options',
1691 [
1692 'id' => 'account_edit_shipping_address',
1693 'title' => esc_html__( 'Edit Shipping Address', 'shopbuilder' ),
1694 'category' => 'myaccount_dashboard',
1695 'is_front_page' => 'all_myaccount_dashboard_inner',
1696 'active' => 'on',
1697 'package' => $this->pro_package(),
1698 'fields' => [],
1699 ]
1700 ),
1701 ];
1702
1703 return apply_filters( 'rtsb/core/elements/my_account/widget_list', $widgets );
1704 }
1705
1706 /***
1707 * @return array
1708 */
1709 protected function myaccount_auth_page_widget_list() {
1710 return [
1711 'account_login' => apply_filters(
1712 'rtsb/elements/account_login/options',
1713 [
1714 'id' => 'account_login',
1715 'title' => esc_html__( 'Login Register Form', 'shopbuilder' ),
1716 'category' => 'others_widget',
1717 'is_front_page' => 'myaccount_auth',
1718 'active' => 'on',
1719 'package' => $this->pro_package(),
1720 'fields' => [],
1721 ]
1722 ),
1723 'account_login_form' => apply_filters(
1724 'rtsb/elements/account_login_form/options',
1725 [
1726 'id' => 'account_login_form',
1727 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
1728 'category' => 'others_widget',
1729 'is_front_page' => 'myaccount_auth',
1730 'active' => 'on',
1731 'package' => $this->pro_package(),
1732 'fields' => [],
1733 ]
1734 ),
1735 'account_registration_form' => apply_filters(
1736 'rtsb/elements/account_registration_form/options',
1737 [
1738 'id' => 'account_registration_form',
1739 'title' => esc_html__( 'Registration Form', 'shopbuilder' ),
1740 'category' => 'others_widget',
1741 'is_front_page' => 'myaccount_auth',
1742 'active' => 'on',
1743 'package' => $this->pro_package(),
1744 'fields' => [],
1745 ]
1746 ),
1747 'account_lost_password' => apply_filters(
1748 'rtsb/elements/account_lost_password/options',
1749 [
1750 'id' => 'account_lost_password',
1751 'title' => esc_html__( 'Lost Password Form', 'shopbuilder' ),
1752 'category' => 'others_widget',
1753 'is_front_page' => 'myaccount_auth',
1754 'active' => 'on',
1755 'package' => $this->pro_package(),
1756 'fields' => [],
1757 ]
1758 ),
1759 ];
1760 }
1761 }
1762