PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 1.0.0
ShopBuilder – WooCommerce Builder For Elementor v1.0.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
← All changes | app/Models/ElementList.php +751 -1527 2.2.21.0.0 View file →
@@ -1,1527 +1,751 @@
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\Helpers\Fns;
16 -use RadiusTheme\SB\Models\Base\ListModel;
17 -use RadiusTheme\SB\Traits\SingletonTrait;
18 -use RadiusTheme\SBPRO\Elementor\Widgets\Checkout as CheckoutPro;
19 -
20 -/**
21 - * Elementor Element List
22 - */
23 -class ElementList extends ListModel {
24 - /**
25 - * Singleton
26 - */
27 - use SingletonTrait;
28 -
29 - /**
30 - * List id
31 - *
32 - * @var string
33 - */
34 - protected $list_id = 'elements';
35 -
36 - /**
37 - * Elementor Elements
38 - */
39 - public function __construct() {
40 - parent::__construct();
41 - $this->title = esc_html__( 'Elementor Widgets', 'shopbuilder' );
42 - $this->short_title = esc_html__( 'Elements', 'shopbuilder' );
43 - $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' );
44 - $this->categories = apply_filters(
45 - 'rtsb/elements/list/categories',
46 - [
47 - 'general' => [
48 - 'title' => esc_html__( 'General', 'shopbuilder' ),
49 - ],
50 - 'shop' => [
51 - 'title' => esc_html__( 'Shop / Archive', 'shopbuilder' ),
52 - ],
53 - 'product' => [
54 - 'title' => esc_html__( 'Single', 'shopbuilder' ),
55 - ],
56 - 'quick_view' => [
57 - 'title' => esc_html__( 'Quick View', 'shopbuilder' ),
58 - ],
59 - 'cart' => [
60 - 'title' => esc_html__( 'Cart', 'shopbuilder' ),
61 - ],
62 - 'checkout' => [
63 - 'title' => esc_html__( 'Checkout', 'shopbuilder' ),
64 - ],
65 - 'thank_you' => [
66 - 'title' => esc_html__( 'Order Received', 'shopbuilder' ),
67 - ],
68 - 'myaccount_dashboard' => [
69 - 'title' => esc_html__( 'My Account', 'shopbuilder' ),
70 - ],
71 - 'others_widget' => [
72 - 'title' => esc_html__( 'Others', 'shopbuilder' ),
73 - ],
74 - ]
75 - );
76 - }
77 -
78 -
79 - /**
80 - * Widget List.
81 - *
82 - * @return array
83 - */
84 - protected function raw_list() {
85 - $list = $this->product_page_widget_list()
86 - + $this->general_widget_list()
87 - + $this->product_quick_view()
88 - + $this->shop_archive_page_widget_list()
89 - + $this->cart_page_widget_list()
90 - + $this->checkout_page_widget_list()
91 - + $this->thankyou_page_widget_list()
92 - + $this->my_account_page_widget_list()
93 - + $this->myaccount_auth_page_widget_list();
94 -
95 - return apply_filters( 'rtsb/core/elements/raw_list', $list );
96 - }
97 -
98 - /**
99 - * GLobal Widget List.
100 - *
101 - * @return array
102 - */
103 - protected function general_widget_list() {
104 - $list = [
105 - 'products_grid' => apply_filters(
106 - 'rtsb/elements/products_grid/options',
107 - [
108 - 'id' => 'products_grid',
109 - 'title' => esc_html__( 'Products - Grid Layouts', 'shopbuilder' ),
110 - 'base_class' => General\ProductsGrid::class,
111 - 'category' => 'general',
112 - 'active' => 'on',
113 - 'package' => 'free',
114 - 'fields' => [],
115 - ]
116 - ),
117 - 'products_list' => apply_filters(
118 - 'rtsb/elements/products_list/options',
119 - [
120 - 'id' => 'products_list',
121 - 'title' => esc_html__( 'Products - List Layouts', 'shopbuilder' ),
122 - 'base_class' => General\ProductsList::class,
123 - 'category' => 'general',
124 - 'active' => 'on',
125 - 'package' => 'free',
126 - 'fields' => [],
127 - ]
128 - ),
129 -
130 - 'products_slider' => apply_filters(
131 - 'rtsb/elements/products_slider/options',
132 - [
133 - 'id' => 'products_slider',
134 - 'title' => esc_html__( 'Products - Slider Layouts', 'shopbuilder' ),
135 - 'base_class' => General\ProductsSlider::class,
136 - 'category' => 'general',
137 - 'active' => 'on',
138 - 'package' => 'free',
139 - 'fields' => [],
140 - ]
141 - ),
142 -
143 - 'products_single_cateogory' => apply_filters(
144 - 'rtsb/elements/products_single_cateogory/options',
145 - [
146 - 'id' => 'products_single_cateogory',
147 - 'title' => esc_html__( 'Single Category', 'shopbuilder' ),
148 - 'base_class' => General\ProductsSingleCategory::class,
149 - 'category' => 'general',
150 - 'active' => 'on',
151 - 'package' => 'free',
152 - 'fields' => [],
153 - ]
154 - ),
155 - 'product_cateogories' => apply_filters(
156 - 'rtsb/elements/product_cateogories/options',
157 - [
158 - 'id' => 'product_cateogories',
159 - 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
160 - 'base_class' => General\ProductCategories::class,
161 - 'category' => 'general',
162 - 'active' => 'on',
163 - 'package' => 'free',
164 - 'fields' => [],
165 - ]
166 - ),
167 - 'social_share' => apply_filters(
168 - 'rtsb/elements/social_share/options',
169 - [
170 - 'id' => 'social_share',
171 - 'title' => esc_html__( 'Social Share', 'shopbuilder' ),
172 - 'base_class' => General\SocialShare::class,
173 - 'category' => 'general',
174 - 'active' => 'on',
175 - 'package' => 'free',
176 - 'fields' => [],
177 - ]
178 - ),
179 - 'wc_breadcrumbs' => apply_filters(
180 - 'rtsb/elements/wc_breadcrumbs/options',
181 - [
182 - 'id' => 'wc_breadcrumbs',
183 - 'title' => esc_html__( 'Breadcrumbs', 'shopbuilder' ),
184 - 'base_class' => General\ProductBreadcrumbs::class,
185 - 'category' => 'general',
186 - 'active' => 'on',
187 - 'package' => 'free',
188 - 'fields' => [],
189 - ]
190 - ),
191 - 'product_notice' => apply_filters(
192 - 'rtsb/elements/product_notice/options',
193 - [
194 - 'id' => 'product_notice',
195 - 'title' => esc_html__( 'Notice', 'shopbuilder' ),
196 - 'base_class' => General\Notice::class,
197 - 'category' => 'general',
198 - 'active' => 'on',
199 - 'package' => 'free',
200 - 'fields' => [],
201 - ]
202 - ),
203 - 'rtsb_wishlist' => apply_filters(
204 - 'rtsb/elements/rtsb_wishlist/options',
205 - [
206 - 'id' => 'rtsb_wishlist',
207 - 'title' => esc_html__( 'Wishlist Table', 'shopbuilder' ),
208 - 'base_class' => General\Wishlist::class,
209 - 'category' => 'general',
210 - 'active' => 'on',
211 - 'package' => 'free',
212 - 'fields' => [],
213 - ]
214 - ),
215 - 'highlighted_product' => apply_filters(
216 - 'rtsb/elements/highlighted_product/options',
217 - [
218 - 'id' => 'highlighted_product',
219 - 'title' => esc_html__( 'Highlighted Product', 'shopbuilder' ),
220 - 'category' => 'general',
221 - 'active' => '',
222 - 'package' => $this->pro_package(),
223 - 'fields' => [],
224 - ]
225 - ),
226 -
227 - ];
228 -
229 - return apply_filters( 'rtsb/core/elements/general/widget_list', $list );
230 - }
231 -
232 - /**
233 - * Product Single Widget List.
234 - *
235 - * @return array
236 - */
237 - protected function product_page_widget_list() {
238 -
239 - $list = [
240 - 'product_title' => apply_filters(
241 - 'rtsb/elements/product_title/options',
242 - [
243 - 'id' => 'product_title',
244 - 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
245 - 'base_class' => Single\ProductTitle::class,
246 - 'category' => 'product',
247 - 'active' => 'on',
248 - 'package' => 'free',
249 - 'fields' => [],
250 - ]
251 - ),
252 - 'product_description' => apply_filters(
253 - 'rtsb/elements/product_description/options',
254 - [
255 - 'id' => 'product_description',
256 - 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
257 - 'base_class' => Single\ProductDescription::class,
258 - 'category' => 'product',
259 - 'active' => 'on',
260 - 'package' => 'free',
261 - 'fields' => [],
262 - ]
263 - ),
264 - 'product_short_description' => apply_filters(
265 - 'rtsb/elements/product_short_description/options',
266 - [
267 - 'id' => 'product_short_description',
268 - 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
269 - 'base_class' => Single\ShortDescription::class,
270 - 'category' => 'product',
271 - 'active' => 'on',
272 - 'package' => 'free',
273 - 'fields' => [],
274 - ]
275 - ),
276 - 'product_images' => apply_filters(
277 - 'rtsb/elements/product_images/options',
278 - [
279 - 'id' => 'product_images',
280 - 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
281 - 'base_class' => Single\ProductImages::class,
282 - 'category' => 'product',
283 - 'active' => 'on',
284 - 'package' => 'free',
285 - 'fields' => [],
286 - ]
287 - ),
288 - 'product_onsale' => apply_filters(
289 - 'rtsb/elements/product_onsale/options',
290 - [
291 - 'id' => 'product_onsale',
292 - 'title' => esc_html__( 'Product Badges', 'shopbuilder' ),
293 - 'base_class' => Single\ProductBadges::class,
294 - 'category' => 'product',
295 - 'active' => 'on',
296 - 'package' => 'free',
297 - 'fields' => [],
298 - ]
299 - ),
300 - 'product_additional_info' => apply_filters(
301 - 'rtsb/elements/product_additional_info/options',
302 - [
303 - 'id' => 'product_additional_info',
304 - 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
305 - 'base_class' => Single\AdditionalInformation::class,
306 - 'category' => 'product',
307 - 'active' => 'on',
308 - 'package' => 'free',
309 - 'fields' => [],
310 - ]
311 - ),
312 - 'product_price' => apply_filters(
313 - 'rtsb/elements/product_price/options',
314 - [
315 - 'id' => 'product_price',
316 - 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
317 - 'base_class' => Single\ProductPrice::class,
318 - 'category' => 'product',
319 - 'active' => 'on',
320 - 'package' => 'free',
321 - 'fields' => [],
322 - ]
323 - ),
324 - 'product_meta' => apply_filters(
325 - 'rtsb/elements/product_meta/options',
326 - [
327 - 'id' => 'product_meta',
328 - 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
329 - 'base_class' => Single\ProductMeta::class,
330 - 'category' => 'product',
331 - 'active' => 'on',
332 - 'package' => 'free',
333 - 'fields' => [],
334 - ]
335 - ),
336 - 'product_categories' => apply_filters(
337 - 'rtsb/elements/product_categories/options',
338 - [
339 - 'id' => 'product_categories',
340 - 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
341 - 'base_class' => Single\ProductCats::class,
342 - 'category' => 'product',
343 - 'active' => 'on',
344 - 'package' => 'free',
345 - 'fields' => [],
346 - ]
347 - ),
348 - 'product_rating' => apply_filters(
349 - 'rtsb/elements/product_rating/options',
350 - [
351 - 'id' => 'product_rating',
352 - 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
353 - 'base_class' => Single\ProductRating::class,
354 - 'category' => 'product',
355 - 'active' => 'on',
356 - 'package' => 'free',
357 - 'fields' => [],
358 - ]
359 - ),
360 - 'product_tags' => apply_filters(
361 - 'rtsb/elements/product_tags/options',
362 - [
363 - 'id' => 'product_tags',
364 - 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
365 - 'base_class' => Single\ProductTags::class,
366 - 'category' => 'product',
367 - 'active' => 'on',
368 - 'package' => 'free',
369 - 'fields' => [],
370 - ]
371 - ),
372 - 'product_sku' => apply_filters(
373 - 'rtsb/elements/product_sku/options',
374 - [
375 - 'id' => 'product_sku',
376 - 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
377 - 'base_class' => Single\ProductSKU::class,
378 - 'category' => 'product',
379 - 'active' => 'on',
380 - 'package' => 'free',
381 - 'fields' => [],
382 - ]
383 - ),
384 - 'product_stock' => apply_filters(
385 - 'rtsb/elements/product_stock/options',
386 - [
387 - 'id' => 'product_stock',
388 - 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
389 - 'base_class' => Single\ProductStock::class,
390 - 'category' => 'product',
391 - 'active' => 'on',
392 - 'package' => 'free',
393 - 'fields' => [],
394 - ]
395 - ),
396 - 'actions_button' => apply_filters(
397 - 'rtsb/elements/actions_button/options',
398 - [
399 - 'id' => 'actions_button',
400 - 'title' => esc_html__( 'Action Buttons', 'shopbuilder' ),
401 - 'base_class' => Single\ActionsButton::class,
402 - 'category' => 'product',
403 - 'active' => 'on',
404 - 'package' => 'free',
405 - 'fields' => [],
406 - ]
407 - ),
408 - 'product_add_to_cart' => apply_filters(
409 - 'rtsb/elements/product_add_to_cart/options',
410 - [
411 - 'id' => 'product_add_to_cart',
412 - 'title' => esc_html__( 'Add to Cart', 'shopbuilder' ),
413 - 'base_class' => Single\ProductAddToCart::class,
414 - 'category' => 'product',
415 - 'active' => 'on',
416 - 'package' => 'free',
417 - 'fields' => [],
418 - ]
419 - ),
420 - 'product_share' => apply_filters(
421 - 'rtsb/elements/product_share/options',
422 - [
423 - 'id' => 'product_share',
424 - 'title' => esc_html__( 'Product Share', 'shopbuilder' ),
425 - 'base_class' => Single\ProductShare::class,
426 - 'category' => 'product',
427 - 'active' => 'on',
428 - 'package' => 'free',
429 - 'fields' => [],
430 - ]
431 - ),
432 - 'product_sales_count' => apply_filters(
433 - 'rtsb/elements/product_sales_count/options',
434 - [
435 - 'id' => 'product_sales_count',
436 - 'title' => esc_html__( 'Sales Count', 'shopbuilder' ),
437 - 'category' => 'product',
438 - 'active' => '',
439 - 'package' => $this->pro_package(),
440 - 'fields' => [],
441 - ]
442 - ),
443 - 'product_stock_counter' => apply_filters(
444 - 'rtsb/elements/product_stock_counter/options',
445 - [
446 - 'id' => 'product_stock_counter',
447 - 'title' => esc_html__( 'Product Stock Count', 'shopbuilder' ),
448 - 'category' => 'product',
449 - 'active' => '',
450 - 'package' => $this->pro_package(),
451 - 'fields' => [],
452 - ]
453 - ),
454 - 'flash_sale_countdown' => apply_filters(
455 - 'rtsb/elements/flash_sale_countdown/options',
456 - [
457 - 'id' => 'flash_sale_countdown',
458 - 'title' => esc_html__( 'Flash Sale Countdown', 'shopbuilder' ),
459 - 'category' => 'product',
460 - 'active' => '',
461 - 'package' => $this->pro_package(),
462 - 'fields' => [],
463 - ]
464 - ),
465 - 'product_size_chart' => apply_filters(
466 - 'rtsb/elements/product_size_chart/options',
467 - [
468 - 'id' => 'product_size_chart',
469 - 'title' => esc_html__( 'Size Chart', 'shopbuilder' ),
470 - 'category' => 'product',
471 - 'active' => '',
472 - 'package' => $this->pro_package(),
473 - 'fields' => [],
474 - ]
475 - ),
476 - 'product_quick_checkout' => apply_filters(
477 - 'rtsb/elements/product_quick_checkout/options',
478 - [
479 - 'id' => 'product_quick_checkout',
480 - 'title' => esc_html__( 'Quick Checkout', 'shopbuilder' ),
481 - 'category' => 'product',
482 - 'active' => '',
483 - 'package' => $this->pro_package(),
484 - 'fields' => [],
485 - ]
486 - ),
487 - 'product_tabs' => apply_filters(
488 - 'rtsb/elements/product_tabs/options',
489 - [
490 - 'id' => 'product_tabs',
491 - 'title' => esc_html__( 'Product Tabs', 'shopbuilder' ),
492 - 'base_class' => Single\ProductTabs::class,
493 - 'category' => 'product',
494 - 'active' => 'on',
495 - 'package' => 'free',
496 - 'fields' => [],
497 - ]
498 - ),
499 - 'advance_product_tabs' => apply_filters(
500 - 'rtsb/elements/advance_product_tabs/options',
501 - [
502 - 'id' => 'advance_product_tabs',
503 - 'title' => esc_html__( 'Advanced Product Tabs', 'shopbuilder' ),
504 - 'category' => 'product',
505 - 'active' => '',
506 - 'package' => $this->pro_package(),
507 - 'fields' => [],
508 - ]
509 - ),
510 - 'product_reviews' => apply_filters(
511 - 'rtsb/elements/product_reviews/options',
512 - [
513 - 'id' => 'product_reviews',
514 - 'title' => esc_html__( 'Product Reviews', 'shopbuilder' ),
515 - 'base_class' => Single\ProductReviews::class,
516 - 'category' => 'product',
517 - 'active' => 'on',
518 - 'package' => 'free',
519 - 'fields' => [],
520 - ]
521 - ),
522 - 'upsells_product' => apply_filters(
523 - 'rtsb/elements/upsells_product/options',
524 - [
525 - 'id' => 'upsells_product',
526 - 'title' => esc_html__( 'Upsell - Default Layout', 'shopbuilder' ),
527 - 'base_class' => Single\UpsellsProduct::class,
528 - 'category' => 'product',
529 - 'active' => 'on',
530 - 'package' => 'free',
531 - 'fields' => [],
532 - ]
533 - ),
534 - 'upsells_product_custom' => apply_filters(
535 - 'rtsb/elements/upsells_product_custom/options',
536 - [
537 - 'id' => 'upsells_product_custom',
538 - 'title' => esc_html__( 'Upsell - Custom Layouts', 'shopbuilder' ),
539 - 'base_class' => Single\UpsellsProductsCustom::class,
540 - 'category' => 'product',
541 - 'active' => 'on',
542 - 'package' => 'free',
543 - 'fields' => [],
544 - ]
545 - ),
546 - 'upsells_products_slider_custom' => apply_filters(
547 - 'rtsb/elements/upsells_products_slider_custom/options',
548 - [
549 - 'id' => 'upsells_products_slider_custom',
550 - 'title' => esc_html__( 'Upsell - Slider Layouts', 'shopbuilder' ),
551 - 'base_class' => Single\UpsellsProductsSlider::class,
552 - 'category' => 'product',
553 - 'active' => 'on',
554 - 'package' => 'free',
555 - 'fields' => [],
556 - ]
557 - ),
558 - 'related_product' => apply_filters(
559 - 'rtsb/elements/related_product/options',
560 - [
561 - 'id' => 'related_product',
562 - 'title' => esc_html__( 'Related - Default Layout', 'shopbuilder' ),
563 - 'base_class' => Single\RelatedProduct::class,
564 - 'category' => 'product',
565 - 'active' => 'on',
566 - 'package' => 'free',
567 - 'fields' => [],
568 - ]
569 - ),
570 - 'related_product_custom' => apply_filters(
571 - 'rtsb/elements/related_product_custom/options',
572 - [
573 - 'id' => 'related_product_custom',
574 - 'title' => esc_html__( 'Related - Custom Layouts', 'shopbuilder' ),
575 - 'base_class' => Single\RelatedProductsCustom::class,
576 - 'category' => 'product',
577 - 'active' => 'on',
578 - 'package' => 'free',
579 - 'fields' => [],
580 - ]
581 - ),
582 - 'related_products_slider_custom' => apply_filters(
583 - 'rtsb/elements/related_products_slider_custom/options',
584 - [
585 - 'id' => 'related_products_slider_custom',
586 - 'title' => esc_html__( 'Related - Slider Layouts', 'shopbuilder' ),
587 - 'base_class' => Single\RelatedProductsSlider::class,
588 - 'category' => 'product',
589 - 'active' => 'on',
590 - 'package' => 'free',
591 - 'fields' => [],
592 - ]
593 - ),
594 - ];
595 -
596 - return apply_filters( 'rtsb/core/elements/product_page/widget_list', $list );
597 - }
598 -
599 - /**
600 - * Product Single Widget List.
601 - *
602 - * @return array
603 - */
604 - protected function product_quick_view() {
605 -
606 - $list = [
607 - 'qv_product_title' => apply_filters(
608 - 'rtsb/elements/qv_product_title/options',
609 - [
610 - 'id' => 'qv_product_title',
611 - 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
612 - 'base_class' => Single\ProductTitle::class,
613 - 'category' => 'quick_view',
614 - 'is_front_page' => 'quick_view',
615 - 'active' => 'on',
616 - 'package' => $this->pro_package(),
617 - 'fields' => [],
618 - ]
619 - ),
620 - 'qv_product_description' => apply_filters(
621 - 'rtsb/elements/qv_product_description/options',
622 - [
623 - 'id' => 'qv_product_description',
624 - 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
625 - 'base_class' => Single\ProductDescription::class,
626 - 'category' => 'quick_view',
627 - 'is_front_page' => 'quick_view',
628 - 'active' => 'on',
629 - 'package' => $this->pro_package(),
630 - 'fields' => [],
631 - ]
632 - ),
633 - 'qv_product_short_description' => apply_filters(
634 - 'rtsb/elements/qv_product_short_description/options',
635 - [
636 - 'id' => 'qv_product_short_description',
637 - 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
638 - 'base_class' => Single\ShortDescription::class,
639 - 'category' => 'quick_view',
640 - 'is_front_page' => 'quick_view',
641 - 'active' => 'on',
642 - 'package' => $this->pro_package(),
643 - 'fields' => [],
644 - ]
645 - ),
646 - 'qv_product_images' => apply_filters(
647 - 'rtsb/elements/qv_product_images/options',
648 - [
649 - 'id' => 'qv_product_images',
650 - 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
651 - 'base_class' => Single\ProductImages::class,
652 - 'category' => 'quick_view',
653 - 'is_front_page' => 'quick_view',
654 - 'active' => 'on',
655 - 'package' => $this->pro_package(),
656 - 'fields' => [],
657 - ]
658 - ),
659 - 'qv_product_badges' => apply_filters(
660 - 'rtsb/elements/qv_product_badges/options',
661 - [
662 - 'id' => 'qv_product_badges',
663 - 'title' => esc_html__( 'Product Badges', 'shopbuilder' ),
664 - 'base_class' => Single\ProductBadges::class,
665 - 'category' => 'quick_view',
666 - 'is_front_page' => 'quick_view',
667 - 'active' => 'on',
668 - 'package' => $this->pro_package(),
669 - 'fields' => [],
670 - ]
671 - ),
672 - 'qv_product_additional_info' => apply_filters(
673 - 'rtsb/elements/qv_product_additional_info/options',
674 - [
675 - 'id' => 'qv_product_additional_info',
676 - 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
677 - 'base_class' => Single\AdditionalInformation::class,
678 - 'category' => 'quick_view',
679 - 'is_front_page' => 'quick_view',
680 - 'active' => 'on',
681 - 'package' => $this->pro_package(),
682 - 'fields' => [],
683 - ]
684 - ),
685 - 'qv_product_price' => apply_filters(
686 - 'rtsb/elements/qv_product_price/options',
687 - [
688 - 'id' => 'qv_product_price',
689 - 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
690 - 'base_class' => Single\ProductPrice::class,
691 - 'category' => 'quick_view',
692 - 'is_front_page' => 'quick_view',
693 - 'active' => 'on',
694 - 'package' => $this->pro_package(),
695 - 'fields' => [],
696 - ]
697 - ),
698 - 'qv_product_meta' => apply_filters(
699 - 'rtsb/elements/qv_product_meta/options',
700 - [
701 - 'id' => 'qv_product_meta',
702 - 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
703 - 'base_class' => Single\ProductMeta::class,
704 - 'category' => 'quick_view',
705 - 'is_front_page' => 'quick_view',
706 - 'active' => 'on',
707 - 'package' => $this->pro_package(),
708 - 'fields' => [],
709 - ]
710 - ),
711 - 'qv_product_categories' => apply_filters(
712 - 'rtsb/elements/qv_product_categories/options',
713 - [
714 - 'id' => 'qv_product_categories',
715 - 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
716 - 'base_class' => Single\ProductCats::class,
717 - 'category' => 'quick_view',
718 - 'is_front_page' => 'quick_view',
719 - 'active' => 'on',
720 - 'package' => $this->pro_package(),
721 - 'fields' => [],
722 - ]
723 - ),
724 - 'qv_product_rating' => apply_filters(
725 - 'rtsb/elements/qv_product_rating/options',
726 - [
727 - 'id' => 'qv_product_rating',
728 - 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
729 - 'base_class' => Single\ProductRating::class,
730 - 'category' => 'quick_view',
731 - 'is_front_page' => 'quick_view',
732 - 'active' => 'on',
733 - 'package' => $this->pro_package(),
734 - 'fields' => [],
735 - ]
736 - ),
737 - 'qv_product_tags' => apply_filters(
738 - 'rtsb/elements/qv_product_tags/options',
739 - [
740 - 'id' => 'qv_product_tags',
741 - 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
742 - 'base_class' => Single\ProductTags::class,
743 - 'category' => 'quick_view',
744 - 'is_front_page' => 'quick_view',
745 - 'active' => 'on',
746 - 'package' => $this->pro_package(),
747 - 'fields' => [],
748 - ]
749 - ),
750 - 'qv_product_sku' => apply_filters(
751 - 'rtsb/elements/qv_product_sku/options',
752 - [
753 - 'id' => 'qv_product_sku',
754 - 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
755 - 'base_class' => Single\ProductSKU::class,
756 - 'category' => 'quick_view',
757 - 'is_front_page' => 'quick_view',
758 - 'active' => 'on',
759 - 'package' => $this->pro_package(),
760 - 'fields' => [],
761 - ]
762 - ),
763 - 'qv_product_stock' => apply_filters(
764 - 'rtsb/elements/qv_product_stock/options',
765 - [
766 - 'id' => 'qv_product_stock',
767 - 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
768 - 'base_class' => Single\ProductStock::class,
769 - 'category' => 'quick_view',
770 - 'is_front_page' => 'quick_view',
771 - 'active' => 'on',
772 - 'package' => $this->pro_package(),
773 - 'fields' => [],
774 - ]
775 - ),
776 - 'qv_actions_button' => apply_filters(
777 - 'rtsb/elements/qv_actions_button/options',
778 - [
779 - 'id' => 'qv_actions_button',
780 - 'title' => esc_html__( 'Action Buttons', 'shopbuilder' ),
781 - 'base_class' => Single\ActionsButton::class,
782 - 'category' => 'quick_view',
783 - 'is_front_page' => 'quick_view',
784 - 'active' => 'on',
785 - 'package' => $this->pro_package(),
786 - 'fields' => [],
787 - ]
788 - ),
789 - 'qv_product_add_to_cart' => apply_filters(
790 - 'rtsb/elements/qv_product_add_to_cart/options',
791 - [
792 - 'id' => 'qv_product_add_to_cart',
793 - 'title' => esc_html__( 'Add to Cart', 'shopbuilder' ),
794 - 'base_class' => Single\ProductAddToCart::class,
795 - 'category' => 'quick_view',
796 - 'is_front_page' => 'quick_view',
797 - 'active' => 'on',
798 - 'package' => $this->pro_package(),
799 - 'fields' => [],
800 - ]
801 - ),
802 - 'qv_product_sales_count' => apply_filters(
803 - 'rtsb/elements/qv_product_sales_count/options',
804 - [
805 - 'id' => 'qv_product_sales_count',
806 - 'title' => esc_html__( 'Sales Count', 'shopbuilder' ),
807 - 'category' => 'quick_view',
808 - 'is_front_page' => 'quick_view',
809 - 'active' => 'on',
810 - 'package' => $this->pro_package(),
811 - 'fields' => [],
812 - ]
813 - ),
814 - 'qv_social_share' => apply_filters(
815 - 'rtsb/settings/qv_social_share/options',
816 - [
817 - 'id' => 'qv_social_share',
818 - 'title' => esc_html__( 'Social Share', 'shopbuilder' ),
819 - 'base_class' => General\SocialShare::class,
820 - 'active' => 'on',
821 - 'category' => 'quick_view',
822 - 'is_front_page' => 'quick_view',
823 - 'package' => $this->pro_package(),
824 - 'fields' => [],
825 - ]
826 - ),
827 - 'qv_product_quick_checkout' => apply_filters(
828 - 'rtsb/elements/qv_product_quick_checkout/options',
829 - [
830 - 'id' => 'qv_product_quick_checkout',
831 - 'title' => esc_html__( 'Quick Checkout', 'shopbuilder' ),
832 - 'category' => 'quick_view',
833 - 'is_front_page' => 'quick_view',
834 - 'active' => 'on',
835 - 'package' => $this->pro_package(),
836 - 'fields' => [],
837 - ]
838 - ),
839 -
840 - 'qv_product_size_chart' => apply_filters(
841 - 'rtsb/elements/qv_product_size_chart/options',
842 - [
843 - 'id' => 'qv_product_size_chart',
844 - 'title' => esc_html__( 'Size Chart', 'shopbuilder' ),
845 - 'category' => 'quick_view',
846 - 'is_front_page' => 'quick_view',
847 - 'active' => '',
848 - 'package' => $this->pro_package(),
849 - 'fields' => [],
850 - ]
851 - ),
852 -
853 - ];
854 -
855 - return apply_filters( 'rtsb/core/elements/quick_view/widget_list', $list );
856 - }
857 -
858 - /**
859 - * Product Archive Widget List.
860 - *
861 - * @return array
862 - */
863 - protected function shop_archive_page_widget_list() {
864 - $list = [
865 - 'archive_title' => apply_filters(
866 - 'rtsb/elements/archive_title/options',
867 - [
868 - 'id' => 'archive_title',
869 - 'title' => esc_html__( 'Archive Title', 'shopbuilder' ),
870 - 'base_class' => Archive\ArchiveTitle::class,
871 - 'category' => 'shop',
872 - 'active' => 'on',
873 - 'package' => 'free',
874 - 'fields' => [],
875 - ]
876 - ),
877 -
878 - 'archive_description' => apply_filters(
879 - 'rtsb/elements/archive_description/options',
880 - [
881 - 'id' => 'archive_description',
882 - 'title' => esc_html__( 'Archive Description', 'shopbuilder' ),
883 - 'base_class' => Archive\ArchiveDescription::class,
884 - 'category' => 'shop',
885 - 'active' => 'on',
886 - 'package' => 'free',
887 - 'fields' => [],
888 - ]
889 - ),
890 -
891 - 'products_archive_catalog' => apply_filters(
892 - 'rtsb/elements/products_archive_catalog/options',
893 - [
894 - 'id' => 'products_archive_catalog',
895 - 'title' => esc_html__( 'Products - Default Layout', 'shopbuilder' ),
896 - 'base_class' => Archive\ProductsArchive::class,
897 - 'category' => 'shop',
898 - 'active' => 'on',
899 - 'package' => 'free',
900 - 'fields' => [],
901 - ]
902 - ),
903 -
904 - 'products_archive_catalog_custom' => apply_filters(
905 - 'rtsb/elements/products_archive_catalog_custom/options',
906 - [
907 - 'id' => 'products_archive_catalog_custom',
908 - 'title' => esc_html__( 'Products - Custom Layouts', 'shopbuilder' ),
909 - 'base_class' => Archive\ProductsArchiveCustom::class,
910 - 'category' => 'shop',
911 - 'active' => 'on',
912 - 'package' => 'free',
913 - 'fields' => [],
914 - ]
915 - ),
916 -
917 - 'ajax_product_filters' => apply_filters(
918 - 'rtsb/elements/ajax_product_filters/options',
919 - [
920 - 'id' => 'ajax_product_filters',
921 - 'title' => esc_html__( 'Ajax Product Filters', 'shopbuilder' ),
922 - 'category' => 'shop',
923 - 'active' => 'on',
924 - 'package' => $this->pro_package(),
925 - 'fields' => [],
926 - ]
927 - ),
928 -
929 - 'archive_result_count' => apply_filters(
930 - 'rtsb/elements/archive_result_count/options',
931 - [
932 - 'id' => 'archive_result_count',
933 - 'title' => esc_html__( 'Result Count', 'shopbuilder' ),
934 - 'base_class' => Archive\ArchiveResultCount::class,
935 - 'category' => 'shop',
936 - 'active' => 'on',
937 - 'package' => 'free',
938 - 'fields' => [],
939 - ]
940 - ),
941 - 'archive_products_ordering' => apply_filters(
942 - 'rtsb/elements/archive_products_ordering/options',
943 - [
944 - 'id' => 'archive_products_ordering',
945 - 'title' => esc_html__( 'Products Ordering', 'shopbuilder' ),
946 - 'base_class' => Archive\ProductsOrdering::class,
947 - 'category' => 'shop',
948 - 'active' => 'on',
949 - 'package' => 'free',
950 - 'fields' => [],
951 - ]
952 - ),
953 - 'archive_product_mode' => apply_filters(
954 - 'rtsb/elements/archive_product_mode/options',
955 - [
956 - 'id' => 'archive_product_mode',
957 - 'title' => esc_html__( 'View Mode', 'shopbuilder' ),
958 - 'base_class' => Archive\ArchiveProductMode::class,
959 - 'category' => 'shop',
960 - 'active' => 'on',
961 - 'package' => 'free',
962 - 'fields' => [],
963 - ]
964 - ),
965 - ];
966 -
967 - return apply_filters( 'rtsb/core/elements/shop/widget_list', $list );
968 - }
969 -
970 - /**
971 - * Cart Page Widget List.
972 - *
973 - * @return array
974 - */
975 - protected function cart_page_widget_list() {
976 - $list = [
977 - 'cart_table' => apply_filters(
978 - 'rtsb/elements/cart_table/options',
979 - [
980 - 'id' => 'cart_table',
981 - 'title' => esc_html__( 'Cart Table', 'shopbuilder' ),
982 - 'base_class' => Cart\CartTable::class,
983 - 'category' => 'cart',
984 - 'active' => 'on',
985 - 'package' => 'free',
986 - 'fields' => [],
987 - ]
988 - ),
989 - 'cart_totals' => apply_filters(
990 - 'rtsb/elements/cart_totals/options',
991 - [
992 - 'id' => 'cart_totals',
993 - 'title' => esc_html__( 'Cart Totals', 'shopbuilder' ),
994 - 'base_class' => Cart\CartTotals::class,
995 - 'category' => 'cart',
996 - 'active' => 'on',
997 - 'package' => 'free',
998 - 'fields' => [],
999 - ]
1000 - ),
1001 - 'cart_coupon_form' => apply_filters(
1002 - 'rtsb/elements/cart_coupon_form/options',
1003 - [
1004 - 'id' => 'cart_coupon_form',
1005 - 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
1006 - 'category' => 'cart',
1007 - 'active' => 'on',
1008 - 'package' => $this->pro_package(),
1009 - 'fields' => [],
1010 - ]
1011 - ),
1012 - 'cross_sells' => apply_filters(
1013 - 'rtsb/elements/cross_sells/options',
1014 - [
1015 - 'id' => 'cross_sells',
1016 - 'title' => esc_html__( 'Cross Sell - Default Layout', 'shopbuilder' ),
1017 - 'base_class' => Cart\CrossSellProduct::class,
1018 - 'category' => 'cart',
1019 - 'active' => 'on',
1020 - 'package' => 'free',
1021 - 'fields' => [],
1022 - ]
1023 - ),
1024 - 'cross_sells_custom' => apply_filters(
1025 - 'rtsb/elements/cross_sells_custom/options',
1026 - [
1027 - 'id' => 'cross_sells_custom',
1028 - 'title' => esc_html__( 'Cross Sell - Custom Layouts', 'shopbuilder' ),
1029 - 'base_class' => Cart\CrossSellsProductsCustom::class,
1030 - 'category' => 'cart',
1031 - 'active' => 'on',
1032 - 'package' => 'free',
1033 - 'fields' => [],
1034 - ]
1035 - ),
1036 - 'cross_sells_custom_slider' => apply_filters(
1037 - 'rtsb/elements/cross_sells_custom_slider/options',
1038 - [
1039 - 'id' => 'cross_sells_custom_slider',
1040 - 'title' => esc_html__( 'Cross Sell - Slider Layouts', 'shopbuilder' ),
1041 - 'base_class' => Cart\CrossSellsProductsSlider::class,
1042 - 'category' => 'cart',
1043 - 'active' => 'on',
1044 - 'package' => 'free',
1045 - 'fields' => [],
1046 - ]
1047 - ),
1048 - ];
1049 -
1050 - return apply_filters( 'rtsb/core/elements/cart/widget_list', $list );
1051 - }
1052 -
1053 - /**
1054 - * Checkout Page Widget List.
1055 - *
1056 - * @return array
1057 - */
1058 - protected function checkout_page_widget_list() {
1059 - $list = [
1060 - 'billing_form' => apply_filters(
1061 - 'rtsb/elements/billing_form/options',
1062 - [
1063 - 'id' => 'billing_form',
1064 - 'title' => esc_html__( 'Billing Form', 'shopbuilder' ),
1065 - 'base_class' => Checkout\BillingForm::class,
1066 - 'category' => 'checkout',
1067 - 'active' => 'on',
1068 - 'package' => 'free',
1069 - 'fields' => [],
1070 - ]
1071 - ),
1072 - 'shipping_form' => apply_filters(
1073 - 'rtsb/elements/shipping_form/options',
1074 - [
1075 - 'id' => 'shipping_form',
1076 - 'title' => esc_html__( 'Shipping Form', 'shopbuilder' ),
1077 - 'base_class' => Checkout\ShippingForm::class,
1078 - 'category' => 'checkout',
1079 - 'active' => 'on',
1080 - 'package' => 'free',
1081 - 'fields' => [],
1082 - ]
1083 - ),
1084 - 'order_notes' => apply_filters(
1085 - 'rtsb/elements/order_notes/options',
1086 - [
1087 - 'id' => 'order_notes',
1088 - 'title' => esc_html__( 'Order Notes', 'shopbuilder' ),
1089 - 'base_class' => Checkout\OrderNotes::class,
1090 - 'category' => 'checkout',
1091 - 'active' => 'on',
1092 - 'package' => 'free',
1093 - 'fields' => [],
1094 - ]
1095 - ),
1096 - 'order_review' => apply_filters(
1097 - 'rtsb/elements/order_review/options',
1098 - [
1099 - 'id' => 'order_review',
1100 - 'title' => esc_html__( 'Order Review', 'shopbuilder' ),
1101 - 'base_class' => Checkout\OrderReview::class,
1102 - 'category' => 'checkout',
1103 - 'active' => 'on',
1104 - 'package' => 'free',
1105 - 'fields' => [],
1106 - ]
1107 - ),
1108 - 'checkout_payment' => apply_filters(
1109 - 'rtsb/elements/checkout_payment/options',
1110 - [
1111 - 'id' => 'checkout_payment',
1112 - 'title' => esc_html__( 'Checkout Payment Method', 'shopbuilder' ),
1113 - 'base_class' => Checkout\CheckoutPayment::class,
1114 - 'category' => 'checkout',
1115 - 'active' => 'on',
1116 - 'package' => 'free',
1117 - 'fields' => [],
1118 - ]
1119 - ),
1120 - 'coupon_form' => apply_filters(
1121 - 'rtsb/elements/coupon_form/options',
1122 - [
1123 - 'id' => 'coupon_form',
1124 - 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
1125 - 'base_class' => Checkout\CouponForm::class,
1126 - 'category' => 'checkout',
1127 - 'active' => 'on',
1128 - 'package' => 'free',
1129 - 'fields' => [],
1130 - ]
1131 - ),
1132 - 'checkout_login_form' => apply_filters(
1133 - 'rtsb/elements/checkout_login_form/options',
1134 - [
1135 - 'id' => 'checkout_login_form',
1136 - 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
1137 - 'base_class' => Checkout\CheckoutLoginForm::class,
1138 - 'category' => 'checkout',
1139 - 'active' => 'on',
1140 - 'package' => 'free',
1141 - 'fields' => [],
1142 - ]
1143 - ),
1144 - 'shipping_method' => apply_filters(
1145 - 'rtsb/elements/shipping_method/options',
1146 - [
1147 - 'id' => 'shipping_method',
1148 - 'title' => esc_html__( 'Shipping Method', 'shopbuilder' ),
1149 - 'base_class' => Checkout\ShippingMethod::class,
1150 - 'category' => 'checkout',
1151 - 'active' => 'on',
1152 - 'package' => 'free',
1153 - 'fields' => [],
1154 - ]
1155 - ),
1156 - 'multi_step_checkout_widget' => apply_filters(
1157 - 'rtsb/elements/multi_step_checkout_widget/options',
1158 - [
1159 - 'id' => 'multi_step_checkout_widget',
1160 - 'title' => esc_html__( 'Multi Step Checkout', 'shopbuilder' ),
1161 - 'base_class' => CheckoutPro\MultiStepCheckout::class,
1162 - 'category' => 'checkout',
1163 - 'active' => '',
1164 - 'package' => $this->pro_package(),
1165 - 'fields' => [],
1166 - ]
1167 - ),
1168 -
1169 - ];
1170 -
1171 - return apply_filters( 'rtsb/core/elements/checkout/widget_list', $list );
1172 - }
1173 -
1174 - /**
1175 - * Checkout Page Widget List.
1176 - *
1177 - * @return array
1178 - */
1179 - protected function thankyou_page_widget_list() {
1180 - return [
1181 - 'order_received_text' => apply_filters(
1182 - 'rtsb/elements/order_received_text/options',
1183 - [
1184 - 'id' => 'order_received_text',
1185 - 'title' => esc_html__( 'Order Received Text', 'shopbuilder' ),
1186 - 'category' => 'thank_you',
1187 - 'is_front_page' => 'thank_you',
1188 - 'active' => 'on',
1189 - 'package' => $this->pro_package(),
1190 - 'fields' => [],
1191 - ]
1192 - ),
1193 - 'order_details_summary' => apply_filters(
1194 - 'rtsb/elements/order_details_summary/options',
1195 - [
1196 - 'id' => 'order_details_summary',
1197 - 'title' => esc_html__( 'Order Details Summary', 'shopbuilder' ),
1198 - 'category' => 'thank_you',
1199 - 'is_front_page' => 'thank_you',
1200 - 'active' => 'on',
1201 - 'package' => $this->pro_package(),
1202 - 'fields' => [],
1203 - ]
1204 - ),
1205 - 'order_details_table' => apply_filters(
1206 - 'rtsb/elements/order_details_table/options',
1207 - [
1208 - 'id' => 'order_details_table',
1209 - 'title' => esc_html__( 'Order Details Table', 'shopbuilder' ),
1210 - 'category' => 'thank_you',
1211 - 'is_front_page' => 'thank_you',
1212 - 'active' => 'on',
1213 - 'package' => $this->pro_package(),
1214 - 'fields' => [],
1215 - ]
1216 - ),
1217 - 'downloadable_products' => apply_filters(
1218 - 'rtsb/elements/downloadable_products/options',
1219 - [
1220 - 'id' => 'downloadable_products',
1221 - 'title' => esc_html__( 'Downloadable Products', 'shopbuilder' ),
1222 - 'category' => 'thank_you',
1223 - 'is_front_page' => 'thank_you',
1224 - 'active' => 'on',
1225 - 'package' => $this->pro_package(),
1226 - 'fields' => [],
1227 - ]
1228 - ),
1229 - 'order_billing_address' => apply_filters(
1230 - 'rtsb/elements/order_billing_address/options',
1231 - [
1232 - 'id' => 'order_billing_address',
1233 - 'title' => esc_html__( 'Order Billing Address', 'shopbuilder' ),
1234 - 'category' => 'thank_you',
1235 - 'is_front_page' => 'thank_you',
1236 - 'active' => 'on',
1237 - 'package' => $this->pro_package(),
1238 - 'fields' => [],
1239 - ]
1240 - ),
1241 - 'order_shipping_address' => apply_filters(
1242 - 'rtsb/elements/order_shipping_address/options',
1243 - [
1244 - 'id' => 'order_shipping_address',
1245 - 'title' => esc_html__( 'Order Shipping Address', 'shopbuilder' ),
1246 - 'category' => 'thank_you',
1247 - 'is_front_page' => 'thank_you',
1248 - 'active' => 'on',
1249 - 'package' => $this->pro_package(),
1250 - 'fields' => [],
1251 - ]
1252 - ),
1253 - ];
1254 - }
1255 -
1256 - /**
1257 - * Checkout Page Widget List.
1258 - *
1259 - * @return array
1260 - */
1261 - protected function my_account_page_widget_list() {
1262 - $widgets = [
1263 - 'account_navigation_edit_shipping' => apply_filters(
1264 - 'rtsb/elements/account_navigation_edit_shipping/options',
1265 - [
1266 - 'id' => 'account_navigation_edit_shipping',
1267 - 'title' => esc_html__( 'Account Navigation', 'shopbuilder' ),
1268 - 'category' => 'myaccount_dashboard',
1269 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1270 - 'active' => 'on',
1271 - 'package' => $this->pro_package(),
1272 - 'fields' => [],
1273 - ]
1274 - ),
1275 - 'account_dashboard' => apply_filters(
1276 - 'rtsb/elements/account_dashboard/options',
1277 - [
1278 - 'id' => 'account_dashboard',
1279 - 'title' => esc_html__( 'Account Dashboard', 'shopbuilder' ),
1280 - 'category' => 'myaccount_dashboard',
1281 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1282 - 'active' => 'on',
1283 - 'package' => $this->pro_package(),
1284 - 'fields' => [],
1285 - ]
1286 - ),
1287 - 'account_orders' => apply_filters(
1288 - 'rtsb/elements/account_orders/options',
1289 - [
1290 - 'id' => 'account_orders',
1291 - 'title' => esc_html__( 'Account Orders', 'shopbuilder' ),
1292 - 'category' => 'myaccount_dashboard',
1293 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1294 - 'active' => 'on',
1295 - 'package' => $this->pro_package(),
1296 - 'fields' => [],
1297 - ]
1298 - ),
1299 - 'account_downloads' => apply_filters(
1300 - 'rtsb/elements/account_downloads/options',
1301 - [
1302 - 'id' => 'account_downloads',
1303 - 'title' => esc_html__( 'Account Downloads', 'shopbuilder' ),
1304 - 'category' => 'myaccount_dashboard',
1305 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1306 - 'active' => 'on',
1307 - 'package' => $this->pro_package(),
1308 - 'fields' => [],
1309 - ]
1310 - ),
1311 - 'account_billing_address' => apply_filters(
1312 - 'rtsb/elements/account_billing_address/options',
1313 - [
1314 - 'id' => 'account_billing_address',
1315 - 'title' => esc_html__( 'Account Billing Address', 'shopbuilder' ),
1316 - 'category' => 'myaccount_dashboard',
1317 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1318 - 'active' => 'on',
1319 - 'package' => $this->pro_package(),
1320 - 'fields' => [],
1321 - ]
1322 - ),
1323 - 'account_shipping_address' => apply_filters(
1324 - 'rtsb/elements/account_shipping_address/options',
1325 - [
1326 - 'id' => 'account_shipping_address',
1327 - 'title' => esc_html__( 'Account Shipping Address', 'shopbuilder' ),
1328 - 'category' => 'myaccount_dashboard',
1329 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1330 - 'active' => 'on',
1331 - 'package' => $this->pro_package(),
1332 - 'fields' => [],
1333 - ]
1334 - ),
1335 - 'account_address_description' => apply_filters(
1336 - 'rtsb/elements/account_address_description/options',
1337 - [
1338 - 'id' => 'account_address_description',
1339 - 'title' => esc_html__( 'Account Address Description', 'shopbuilder' ),
1340 - 'category' => 'myaccount_dashboard',
1341 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1342 - 'active' => 'on',
1343 - 'package' => $this->pro_package(),
1344 - 'fields' => [],
1345 - ]
1346 - ),
1347 - 'account_details' => apply_filters(
1348 - 'rtsb/elements/account_details/options',
1349 - [
1350 - 'id' => 'account_details',
1351 - 'title' => esc_html__( 'Account Edit / Details', 'shopbuilder' ),
1352 - 'category' => 'myaccount_dashboard',
1353 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1354 - 'active' => 'on',
1355 - 'package' => $this->pro_package(),
1356 - 'fields' => [],
1357 - ]
1358 - ),
1359 - 'account_order_status' => apply_filters(
1360 - 'rtsb/elements/account_order_status/options',
1361 - [
1362 - 'id' => 'account_order_status',
1363 - 'title' => esc_html__( 'Account Order Status', 'shopbuilder' ),
1364 - 'category' => 'myaccount_dashboard',
1365 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1366 - 'active' => 'on',
1367 - 'package' => $this->pro_package(),
1368 - 'fields' => [],
1369 - ]
1370 - ),
1371 - 'account_order_details_download' => apply_filters(
1372 - 'rtsb/elements/account_order_details_download/options',
1373 - [
1374 - 'id' => 'account_order_details_download',
1375 - 'title' => esc_html__( 'Account Order Download', 'shopbuilder' ),
1376 - 'category' => 'myaccount_dashboard',
1377 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1378 - 'active' => 'on',
1379 - 'package' => $this->pro_package(),
1380 - 'fields' => [],
1381 - ]
1382 - ),
1383 - 'account_order_details_note' => apply_filters(
1384 - 'rtsb/elements/account_order_details_note/options',
1385 - [
1386 - 'id' => 'account_order_details_note',
1387 - 'title' => esc_html__( 'Account Order Note', 'shopbuilder' ),
1388 - 'category' => 'myaccount_dashboard',
1389 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1390 - 'active' => 'on',
1391 - 'package' => $this->pro_package(),
1392 - 'fields' => [],
1393 - ]
1394 - ),
1395 - 'account_order_details_table' => apply_filters(
1396 - 'rtsb/elements/account_order_details_table/options',
1397 - [
1398 - 'id' => 'account_order_details_table',
1399 - 'title' => esc_html__( 'Account Order Table', 'shopbuilder' ),
1400 - 'category' => 'myaccount_dashboard',
1401 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1402 - 'active' => 'on',
1403 - 'package' => $this->pro_package(),
1404 - 'fields' => [],
1405 - ]
1406 - ),
1407 - 'account_order_details_order_again' => apply_filters(
1408 - 'rtsb/elements/account_order_details_order_again/options',
1409 - [
1410 - 'id' => 'account_order_details_order_again',
1411 - 'title' => esc_html__( 'Account Order Again Button', 'shopbuilder' ),
1412 - 'category' => 'myaccount_dashboard',
1413 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1414 - 'active' => 'on',
1415 - 'package' => $this->pro_package(),
1416 - 'fields' => [],
1417 - ]
1418 - ),
1419 - 'account_order_details_order_shipping' => apply_filters(
1420 - 'rtsb/elements/account_order_details_order_shipping/options',
1421 - [
1422 - 'id' => 'account_order_details_order_shipping',
1423 - 'title' => esc_html__( 'Account Order Shipping', 'shopbuilder' ),
1424 - 'category' => 'myaccount_dashboard',
1425 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1426 - 'active' => 'on',
1427 - 'package' => $this->pro_package(),
1428 - 'fields' => [],
1429 - ]
1430 - ),
1431 - 'account_order_details_order_billing' => apply_filters(
1432 - 'rtsb/elements/account_order_details_order_billing/options',
1433 - [
1434 - 'id' => 'account_order_details_order_billing',
1435 - 'title' => esc_html__( 'Account Order Billing', 'shopbuilder' ),
1436 - 'category' => 'myaccount_dashboard',
1437 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1438 - 'active' => 'on',
1439 - 'package' => $this->pro_package(),
1440 - 'fields' => [],
1441 - ]
1442 - ),
1443 - 'account_edit_billing_address' => apply_filters(
1444 - 'rtsb/elements/account_edit_billing_address/options',
1445 - [
1446 - 'id' => 'account_edit_billing_address',
1447 - 'title' => esc_html__( 'Edit Billing Address', 'shopbuilder' ),
1448 - 'category' => 'myaccount_dashboard',
1449 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1450 - 'active' => 'on',
1451 - 'package' => $this->pro_package(),
1452 - 'fields' => [],
1453 - ]
1454 - ),
1455 - 'account_edit_shipping_address' => apply_filters(
1456 - 'rtsb/elements/account_edit_shipping_address/options',
1457 - [
1458 - 'id' => 'account_edit_shipping_address',
1459 - 'title' => esc_html__( 'Edit Shipping Address', 'shopbuilder' ),
1460 - 'category' => 'myaccount_dashboard',
1461 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1462 - 'active' => 'on',
1463 - 'package' => $this->pro_package(),
1464 - 'fields' => [],
1465 - ]
1466 - ),
1467 - ];
1468 -
1469 - return apply_filters( 'rtsb/core/elements/my_account/widget_list', $widgets );
1470 - }
1471 -
1472 - /***
1473 - * @return array
1474 - */
1475 - protected function myaccount_auth_page_widget_list() {
1476 - return [
1477 - 'account_login' => apply_filters(
1478 - 'rtsb/elements/account_login/options',
1479 - [
1480 - 'id' => 'account_login',
1481 - 'title' => esc_html__( 'Login Register Form', 'shopbuilder' ),
1482 - 'category' => 'others_widget',
1483 - 'is_front_page' => 'myaccount_auth',
1484 - 'active' => 'on',
1485 - 'package' => $this->pro_package(),
1486 - 'fields' => [],
1487 - ]
1488 - ),
1489 - 'account_login_form' => apply_filters(
1490 - 'rtsb/elements/account_login_form/options',
1491 - [
1492 - 'id' => 'account_login_form',
1493 - 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
1494 - 'category' => 'others_widget',
1495 - 'is_front_page' => 'myaccount_auth',
1496 - 'active' => 'on',
1497 - 'package' => $this->pro_package(),
1498 - 'fields' => [],
1499 - ]
1500 - ),
1501 - 'account_registration_form' => apply_filters(
1502 - 'rtsb/elements/account_registration_form/options',
1503 - [
1504 - 'id' => 'account_registration_form',
1505 - 'title' => esc_html__( 'Registration Form', 'shopbuilder' ),
1506 - 'category' => 'others_widget',
1507 - 'is_front_page' => 'myaccount_auth',
1508 - 'active' => 'on',
1509 - 'package' => $this->pro_package(),
1510 - 'fields' => [],
1511 - ]
1512 - ),
1513 - 'account_lost_password' => apply_filters(
1514 - 'rtsb/elements/account_lost_password/options',
1515 - [
1516 - 'id' => 'account_lost_password',
1517 - 'title' => esc_html__( 'Lost Password Form', 'shopbuilder' ),
1518 - 'category' => 'others_widget',
1519 - 'is_front_page' => 'myaccount_auth',
1520 - 'active' => 'on',
1521 - 'package' => $this->pro_package(),
1522 - 'fields' => [],
1523 - ]
1524 - ),
1525 - ];
1526 - }
1527 -}
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 +
18 +/**
19 + * Elementor Element List
20 + */
21 +class ElementList extends ListModel {
22 + /**
23 + * Singleton
24 + */
25 + use SingletonTrait;
26 + /**
27 + * List id
28 + *
29 + * @var string
30 + */
31 + protected $list_id = 'elements';
32 + /**
33 + * Elementor Elements
34 + */
35 + public function __construct() {
36 + parent::__construct();
37 + $this->title = esc_html__( 'Elementor Widgets', 'shopbuilder' );
38 + $this->short_title = esc_html__( 'Elements', 'shopbuilder' );
39 + $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' );
40 + $this->categories = [
41 + 'general' => [
42 + 'title' => esc_html__( 'General', 'shopbuilder' ),
43 + ],
44 + 'shop' => [
45 + 'title' => esc_html__( 'Shop / Archive', 'shopbuilder' ),
46 + ],
47 + 'product' => [
48 + 'title' => esc_html__( 'Single', 'shopbuilder' ),
49 + ],
50 + 'cart' => [
51 + 'title' => esc_html__( 'Cart', 'shopbuilder' ),
52 + ],
53 + /*
54 + * TODO:: Will add later
55 + 'checkout' => [
56 + 'title' => esc_html__( 'Checkout', 'shopbuilder' ),
57 + ],
58 + */
59 + ];
60 + }
61 +
62 + /**
63 + * Widget List.
64 + *
65 + * @return array
66 + */
67 + protected function raw_list() {
68 + $list = $this->product_page_widget_list()
69 + + $this->general_widget_list()
70 + + $this->shop_archive_page_widget_list()
71 + + $this->cart_page_widget_list()
72 + + $this->checkout_page_widget_list();
73 +
74 + return apply_filters( 'rtsb/core/elements/raw_list', $list );
75 + }
76 +
77 + /**
78 + * GLobal Widget List.
79 + *
80 + * @return array
81 + */
82 + protected function general_widget_list() {
83 + $list = [
84 + 'wc_breadcrumbs' => apply_filters(
85 + 'rtsb/elements/wc_breadcrumbs/options',
86 + [
87 + 'id' => 'wc_breadcrumbs',
88 + 'title' => esc_html__( 'Breadcrumbs', 'shopbuilder' ),
89 + 'base_class' => General\ProductBreadcrumbs::class,
90 + 'category' => 'general',
91 + 'active' => 'on',
92 + 'package' => 'free',
93 + 'fields' => [],
94 + ]
95 + ),
96 + 'products_grid' => apply_filters(
97 + 'rtsb/elements/products_grid/options',
98 + [
99 + 'id' => 'products_grid',
100 + 'title' => esc_html__( 'Products - Grid Layouts', 'shopbuilder' ),
101 + 'base_class' => General\ProductsGrid::class,
102 + 'category' => 'general',
103 + 'active' => 'on',
104 + 'package' => 'free',
105 + 'fields' => [],
106 + ]
107 + ),
108 + 'products_list' => apply_filters(
109 + 'rtsb/elements/products_list/options',
110 + [
111 + 'id' => 'products_list',
112 + 'title' => esc_html__( 'Products - List Layouts', 'shopbuilder' ),
113 + 'base_class' => General\ProductsList::class,
114 + 'category' => 'general',
115 + 'active' => 'on',
116 + 'package' => 'free',
117 + 'fields' => [],
118 + ]
119 + ),
120 +
121 + 'products_slider' => apply_filters(
122 + 'rtsb/elements/products_slider/options',
123 + [
124 + 'id' => 'products_slider',
125 + 'title' => esc_html__( 'Products - Slider Layouts', 'shopbuilder' ),
126 + 'base_class' => General\ProductsSlider::class,
127 + 'category' => 'general',
128 + 'active' => 'on',
129 + 'package' => 'free',
130 + 'fields' => [],
131 + ]
132 + ),
133 +
134 + 'products_single_cateogory' => apply_filters(
135 + 'rtsb/elements/products_single_cateogory/options',
136 + [
137 + 'id' => 'products_single_cateogory',
138 + 'title' => esc_html__( 'Single Category', 'shopbuilder' ),
139 + 'base_class' => General\ProductsSingleCategory::class,
140 + 'category' => 'general',
141 + 'active' => 'on',
142 + 'package' => 'free',
143 + 'fields' => [],
144 + ]
145 + ),
146 + 'product_cateogories' => apply_filters(
147 + 'rtsb/elements/product_cateogories/options',
148 + [
149 + 'id' => 'product_cateogories',
150 + 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
151 + 'base_class' => General\ProductCategories::class,
152 + 'category' => 'general',
153 + 'active' => 'on',
154 + 'package' => 'free',
155 + 'fields' => [],
156 + ]
157 + ),
158 + 'social_share' => apply_filters(
159 + 'rtsb/elements/social_share/options',
160 + [
161 + 'id' => 'social_share',
162 + 'title' => esc_html__( 'Social Share', 'shopbuilder' ),
163 + 'base_class' => General\SocialShare::class,
164 + 'category' => 'general',
165 + 'active' => 'on',
166 + 'package' => 'free',
167 + 'fields' => [],
168 + ]
169 + ),
170 + ];
171 +
172 + return apply_filters( 'rtsb/core/elements/general/widget_list', $list );
173 + }
174 +
175 + /**
176 + * Product Single Widget List.
177 + *
178 + * @return array
179 + */
180 + protected function product_page_widget_list() {
181 +
182 + $list = [
183 +
184 + 'upsells_product_custom' => apply_filters(
185 + 'rtsb/elements/upsells_product_custom/options',
186 + [
187 + 'id' => 'upsells_product_custom',
188 + 'title' => esc_html__( 'Upsells Product - Custom Layout', 'shopbuilder' ),
189 + 'base_class' => Single\UpsellsProductsCustom::class,
190 + 'category' => 'product',
191 + 'active' => 'on',
192 + 'package' => 'free',
193 + 'fields' => [],
194 + ]
195 + ),
196 +
197 + 'upsells_products_slider_custom' => apply_filters(
198 + 'rtsb/elements/upsells_products_slider_custom/options',
199 + [
200 + 'id' => 'upsells_products_slider_custom',
201 + 'title' => esc_html__( 'Upsells Product Slider- Custom Layout', 'shopbuilder' ),
202 + 'base_class' => Single\UpsellsProductsSlider::class,
203 + 'category' => 'product',
204 + 'active' => 'on',
205 + 'package' => 'free',
206 + 'fields' => [],
207 + ]
208 + ),
209 +
210 +
211 + 'related_product_custom' => apply_filters(
212 + 'rtsb/elements/related_product_custom/options',
213 + [
214 + 'id' => 'related_product_custom',
215 + 'title' => esc_html__( 'Related Product - Custom Layout', 'shopbuilder' ),
216 + 'base_class' => Single\RelatedProductsCustom::class,
217 + 'category' => 'product',
218 + 'active' => 'on',
219 + 'package' => 'free',
220 + 'fields' => [],
221 + ]
222 + ),
223 +
224 + 'related_products_slider_custom' => apply_filters(
225 + 'rtsb/elements/related_products_slider_custom/options',
226 + [
227 + 'id' => 'related_products_slider_custom',
228 + 'title' => esc_html__( 'Related Products Slider - Custom Layouts', 'shopbuilder' ),
229 + 'base_class' => Single\RelatedProductsSlider::class,
230 + 'category' => 'product',
231 + 'active' => 'on',
232 + 'package' => 'free',
233 + 'fields' => [],
234 + ]
235 + ),
236 +
237 + 'upsells_product' => apply_filters(
238 + 'rtsb/elements/upsells_product/options',
239 + [
240 + 'id' => 'upsells_product',
241 + 'title' => esc_html__( 'Upsells Product - Default Layout', 'shopbuilder' ),
242 + 'base_class' => Single\UpsellsProduct::class,
243 + 'category' => 'product',
244 + 'active' => 'on',
245 + 'package' => 'free',
246 + 'fields' => [],
247 + ]
248 + ),
249 +
250 + 'related_product' => apply_filters(
251 + 'rtsb/elements/related_product/options',
252 + [
253 + 'id' => 'related_product',
254 + 'title' => esc_html__( 'Related Product - Default Layout', 'shopbuilder' ),
255 + 'base_class' => Single\RelatedProduct::class,
256 + 'category' => 'product',
257 + 'active' => 'on',
258 + 'package' => 'free',
259 + 'fields' => [],
260 + ]
261 + ),
262 +
263 + 'product_title' => apply_filters(
264 + 'rtsb/elements/product_title/options',
265 + [
266 + 'id' => 'product_title',
267 + 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
268 + 'base_class' => Single\ProductTitle::class,
269 + 'category' => 'product',
270 + 'active' => 'on',
271 + 'package' => 'free',
272 + 'fields' => [],
273 + ]
274 + ),
275 + 'product_images' => apply_filters(
276 + 'rtsb/elements/product_images/options',
277 + [
278 + 'id' => 'product_images',
279 + 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
280 + 'base_class' => Single\ProductImages::class,
281 + 'category' => 'product',
282 + 'active' => 'on',
283 + 'package' => 'free',
284 + 'fields' => [],
285 + ]
286 + ),
287 + 'product_short_description' => apply_filters(
288 + 'rtsb/elements/product_short_description/options',
289 + [
290 + 'id' => 'product_short_description',
291 + 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
292 + 'base_class' => Single\ShortDescription::class,
293 + 'category' => 'product',
294 + 'active' => 'on',
295 + 'package' => 'free',
296 + 'fields' => [],
297 + ]
298 + ),
299 + 'product_description' => apply_filters(
300 + 'rtsb/elements/product_description/options',
301 + [
302 + 'id' => 'product_description',
303 + 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
304 + 'base_class' => Single\ProductDescription::class,
305 + 'category' => 'product',
306 + 'active' => 'on',
307 + 'package' => 'free',
308 + 'fields' => [],
309 + ]
310 + ),
311 + 'product_additional_info' => apply_filters(
312 + 'rtsb/elements/product_additional_info/options',
313 + [
314 + 'id' => 'product_additional_info',
315 + 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
316 + 'base_class' => Single\AdditionalInformation::class,
317 + 'category' => 'product',
318 + 'active' => 'on',
319 + 'package' => 'free',
320 + 'fields' => [],
321 + ]
322 + ),
323 + 'product_rating' => apply_filters(
324 + 'rtsb/elements/product_rating/options',
325 + [
326 + 'id' => 'product_rating',
327 + 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
328 + 'base_class' => Single\ProductRating::class,
329 + 'category' => 'product',
330 + 'active' => 'on',
331 + 'package' => 'free',
332 + 'fields' => [],
333 + ]
334 + ),
335 + 'product_price' => apply_filters(
336 + 'rtsb/elements/product_price/options',
337 + [
338 + 'id' => 'product_price',
339 + 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
340 + 'base_class' => Single\ProductPrice::class,
341 + 'category' => 'product',
342 + 'active' => 'on',
343 + 'package' => 'free',
344 + 'fields' => [],
345 + ]
346 + ),
347 + 'product_meta' => apply_filters(
348 + 'rtsb/elements/product_meta/options',
349 + [
350 + 'id' => 'product_meta',
351 + 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
352 + 'base_class' => Single\ProductMeta::class,
353 + 'category' => 'product',
354 + 'active' => 'on',
355 + 'package' => 'free',
356 + 'fields' => [],
357 + ]
358 + ),
359 + 'product_categories' => apply_filters(
360 + 'rtsb/elements/product_categories/options',
361 + [
362 + 'id' => 'product_categories',
363 + 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
364 + 'base_class' => Single\ProductCats::class,
365 + 'category' => 'product',
366 + 'active' => 'on',
367 + 'package' => 'free',
368 + 'fields' => [],
369 + ]
370 + ),
371 + 'product_tags' => apply_filters(
372 + 'rtsb/elements/product_tags/options',
373 + [
374 + 'id' => 'product_tags',
375 + 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
376 + 'base_class' => Single\ProductTags::class,
377 + 'category' => 'product',
378 + 'active' => 'on',
379 + 'package' => 'free',
380 + 'fields' => [],
381 + ]
382 + ),
383 + 'product_sku' => apply_filters(
384 + 'rtsb/elements/product_sku/options',
385 + [
386 + 'id' => 'product_sku',
387 + 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
388 + 'base_class' => Single\ProductSKU::class,
389 + 'category' => 'product',
390 + 'active' => 'on',
391 + 'package' => 'free',
392 + 'fields' => [],
393 + ]
394 + ),
395 + 'product_stock' => apply_filters(
396 + 'rtsb/elements/product_stock/options',
397 + [
398 + 'id' => 'product_stock',
399 + 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
400 + 'base_class' => Single\ProductStock::class,
401 + 'category' => 'product',
402 + 'active' => 'on',
403 + 'package' => 'free',
404 + 'fields' => [],
405 + ]
406 + ),
407 + 'product_add_to_cart' => apply_filters(
408 + 'rtsb/elements/product_add_to_cart/options',
409 + [
410 + 'id' => 'product_add_to_cart',
411 + 'title' => esc_html__( 'Product add to cart', 'shopbuilder' ),
412 + 'base_class' => Single\ProductAddToCart::class,
413 + 'category' => 'product',
414 + 'active' => 'on',
415 + 'package' => 'free',
416 + 'fields' => [],
417 + ]
418 + ),
419 + 'product_notice' => apply_filters(
420 + 'rtsb/elements/product_notice/options',
421 + [
422 + 'id' => 'product_notice',
423 + 'title' => esc_html__( 'Notice', 'shopbuilder' ),
424 + 'base_class' => Single\Notice::class,
425 + 'category' => 'product',
426 + 'active' => 'on',
427 + 'package' => 'free',
428 + 'fields' => [],
429 + ]
430 + ),
431 + 'product_reviews' => apply_filters(
432 + 'rtsb/elements/product_reviews/options',
433 + [
434 + 'id' => 'product_reviews',
435 + 'title' => esc_html__( 'Product Reviews', 'shopbuilder' ),
436 + 'base_class' => Single\ProductReviews::class,
437 + 'category' => 'product',
438 + 'active' => 'on',
439 + 'package' => 'free',
440 + 'fields' => [],
441 + ]
442 + ),
443 +
444 + 'product_tabs' => apply_filters(
445 + 'rtsb/elements/product_tabs/options',
446 + [
447 + 'id' => 'product_tabs',
448 + 'title' => esc_html__( 'Product Tabs', 'shopbuilder' ),
449 + 'base_class' => Single\ProductTabs::class,
450 + 'category' => 'product',
451 + 'active' => 'on',
452 + 'package' => 'free',
453 + 'fields' => [],
454 + ]
455 + ),
456 + 'actions_button' => apply_filters(
457 + 'rtsb/elements/actions_button/options',
458 + [
459 + 'id' => 'actions_button',
460 + 'title' => esc_html__( 'Actions Button', 'shopbuilder' ),
461 + 'base_class' => Single\ActionsButton::class,
462 + 'category' => 'product',
463 + 'active' => 'on',
464 + 'package' => 'free',
465 + 'fields' => [],
466 + ]
467 + ),
468 + 'product_share' => apply_filters(
469 + 'rtsb/elements/product_share/options',
470 + [
471 + 'id' => 'product_share',
472 + 'title' => esc_html__( 'Product Share', 'shopbuilder' ),
473 + 'base_class' => Single\ProductShare::class,
474 + 'category' => 'product',
475 + 'active' => 'on',
476 + 'package' => 'free',
477 + 'fields' => [],
478 + ]
479 + ),
480 +
481 +
482 + ];
483 +
484 + return apply_filters( 'rtsb/core/elements/product_page/widget_list', $list );
485 + }
486 +
487 + /**
488 + * Product Archive Widget List.
489 + *
490 + * @return array
491 + */
492 + protected function shop_archive_page_widget_list() {
493 + $list = [
494 +
495 + 'products_archive_catalog_custom' => apply_filters(
496 + 'rtsb/elements/products_archive_catalog_custom/options',
497 + [
498 + 'id' => 'products_archive_catalog_custom',
499 + 'title' => esc_html__( 'Products Archive - Custom ', 'shopbuilder' ),
500 + 'base_class' => Archive\ProductsArchiveCustom::class,
501 + 'category' => 'shop',
502 + 'active' => 'on',
503 + 'package' => 'free',
504 + 'fields' => [],
505 + ]
506 + ),
507 +
508 + 'products_archive_catalog' => apply_filters(
509 + 'rtsb/elements/products_archive_catalog/options',
510 + [
511 + 'id' => 'products_archive_catalog',
512 + 'title' => esc_html__( 'Products Archive - Default Layout', 'shopbuilder' ),
513 + 'base_class' => Archive\ProductsArchive::class,
514 + 'category' => 'shop',
515 + 'active' => 'on',
516 + 'package' => 'free',
517 + 'fields' => [],
518 + ]
519 + ),
520 +
521 + 'archive_title' => apply_filters(
522 + 'rtsb/elements/archive_title/options',
523 + [
524 + 'id' => 'archive_title',
525 + 'title' => esc_html__( 'Archive Title', 'shopbuilder' ),
526 + 'base_class' => Archive\ArchiveTitle::class,
527 + 'category' => 'shop',
528 + 'active' => 'on',
529 + 'package' => 'free',
530 + 'fields' => [],
531 + ]
532 + ),
533 + 'archive_description' => apply_filters(
534 + 'rtsb/elements/archive_description/options',
535 + [
536 + 'id' => 'archive_description',
537 + 'title' => esc_html__( 'Archive Description', 'shopbuilder' ),
538 + 'base_class' => Archive\ArchiveDescription::class,
539 + 'category' => 'shop',
540 + 'active' => 'on',
541 + 'package' => 'free',
542 + 'fields' => [],
543 + ]
544 + ),
545 +
546 +
547 + 'archive_result_count' => apply_filters(
548 + 'rtsb/elements/archive_result_count/options',
549 + [
550 + 'id' => 'archive_result_count',
551 + 'title' => esc_html__( 'Result Count', 'shopbuilder' ),
552 + 'base_class' => Archive\ArchiveResultCount::class,
553 + 'category' => 'shop',
554 + 'active' => 'on',
555 + 'package' => 'free',
556 + 'fields' => [],
557 + ]
558 + ),
559 + 'archive_products_ordering' => apply_filters(
560 + 'rtsb/elements/archive_products_ordering/options',
561 + [
562 + 'id' => 'archive_products_ordering',
563 + 'title' => esc_html__( 'Products Ordering', 'shopbuilder' ),
564 + 'base_class' => Archive\ProductsOrdering::class,
565 + 'category' => 'shop',
566 + 'active' => 'on',
567 + 'package' => 'free',
568 + 'fields' => [],
569 + ]
570 + ),
571 + 'archive_product_mode' => apply_filters(
572 + 'rtsb/elements/archive_product_mode/options',
573 + [
574 + 'id' => 'archive_product_mode',
575 + 'title' => esc_html__( 'View Mode', 'shopbuilder' ),
576 + 'base_class' => Archive\ArchiveProductMode::class,
577 + 'category' => 'shop',
578 + 'active' => 'on',
579 + 'package' => 'free',
580 + 'fields' => [],
581 + ]
582 + ),
583 + ];
584 +
585 + return apply_filters( 'rtsb/core/elements/shop/widget_list', $list );
586 + }
587 +
588 + /**
589 + * Cart Page Widget List.
590 + *
591 + * @return array
592 + */
593 + protected function cart_page_widget_list() {
594 + $list = [
595 + 'cross_sells_custom' => apply_filters(
596 + 'rtsb/elements/cross_sells_custom/options',
597 + [
598 + 'id' => 'cross_sells_custom',
599 + 'title' => esc_html__( 'Cross sells - Custom Layout', 'shopbuilder' ),
600 + 'base_class' => Cart\CrossSellsProductsCustom::class,
601 + 'category' => 'cart',
602 + 'active' => 'on',
603 + 'package' => 'free',
604 + 'fields' => [],
605 + ]
606 + ),
607 +
608 + 'cross_sells_custom_slider' => apply_filters(
609 + 'rtsb/elements/cross_sells_custom_slider/options',
610 + [
611 + 'id' => 'cross_sells_custom_slider',
612 + 'title' => esc_html__( 'Cross sells Slider- Custom Layout', 'shopbuilder' ),
613 + 'base_class' => Cart\CrossSellsProductsSlider::class,
614 + 'category' => 'cart',
615 + 'active' => 'on',
616 + 'package' => 'free',
617 + 'fields' => [],
618 + ]
619 + ),
620 +
621 + 'cross_sells' => apply_filters(
622 + 'rtsb/elements/cross_sells/options',
623 + [
624 + 'id' => 'cross_sells',
625 + 'title' => esc_html__( 'Cross sells - Default Layout', 'shopbuilder' ),
626 + 'base_class' => Cart\CrossSellProduct::class,
627 + 'category' => 'cart',
628 + 'active' => 'on',
629 + 'package' => 'free',
630 + 'fields' => [],
631 + ]
632 + ),
633 + 'cart_table' => apply_filters(
634 + 'rtsb/elements/cart_table/options',
635 + [
636 + 'id' => 'cart_table',
637 + 'title' => esc_html__( 'Cart Table', 'shopbuilder' ),
638 + 'base_class' => Cart\CartTable::class,
639 + 'category' => 'cart',
640 + 'active' => 'on',
641 + 'package' => 'free',
642 + 'fields' => [],
643 + ]
644 + ),
645 + 'cart_totals' => apply_filters(
646 + 'rtsb/elements/cart_totals/options',
647 + [
648 + 'id' => 'cart_totals',
649 + 'title' => esc_html__( 'Cart Totals', 'shopbuilder' ),
650 + 'base_class' => Cart\CartTotals::class,
651 + 'category' => 'cart',
652 + 'active' => 'on',
653 + 'package' => 'free',
654 + 'fields' => [],
655 + ]
656 + ),
657 +
658 +
659 +
660 + ];
661 +
662 + return apply_filters( 'rtsb/core/elements/cart/widget_list', $list );
663 + }
664 + /**
665 + * Checkout Page Widget List.
666 + *
667 + * @return array
668 + */
669 + protected function checkout_page_widget_list() {
670 + $list = [
671 + 'billing_form' => apply_filters(
672 + 'rtsb/elements/billing_form/options',
673 + [
674 + 'id' => 'billing_form',
675 + 'title' => esc_html__( 'Billing Form', 'shopbuilder' ),
676 + 'base_class' => Checkout\BillingForm::class,
677 + 'category' => 'checkout',
678 + 'active' => 'on',
679 + 'package' => 'pro-disabled',
680 + 'fields' => [],
681 + ]
682 + ),
683 +
684 + 'shipping_form' => apply_filters(
685 + 'rtsb/elements/shipping_form/options',
686 + [
687 + 'id' => 'shipping_form',
688 + 'title' => esc_html__( 'Shipping Form', 'shopbuilder' ),
689 + 'base_class' => Checkout\ShippingForm::class,
690 + 'category' => 'checkout',
691 + 'active' => 'on',
692 + 'package' => 'pro-disabled',
693 + 'fields' => [],
694 + ]
695 + ),
696 +
697 + 'order_notes' => apply_filters(
698 + 'rtsb/elements/order_notes/options',
699 + [
700 + 'id' => 'order_notes',
701 + 'title' => esc_html__( 'Order Notes', 'shopbuilder' ),
702 + 'base_class' => Checkout\OrderNotes::class,
703 + 'category' => 'checkout',
704 + 'active' => 'on',
705 + 'package' => 'pro-disabled',
706 + 'fields' => [],
707 + ]
708 + ),
709 + 'order_review' => apply_filters(
710 + 'rtsb/elements/order_review/options',
711 + [
712 + 'id' => 'order_review',
713 + 'title' => esc_html__( 'Order Review', 'shopbuilder' ),
714 + 'base_class' => Checkout\OrderReview::class,
715 + 'category' => 'checkout',
716 + 'active' => 'on',
717 + 'package' => 'pro-disabled',
718 + 'fields' => [],
719 + ]
720 + ),
721 +
722 + 'checkout_payment' => apply_filters(
723 + 'rtsb/elements/checkout_payment/options',
724 + [
725 + 'id' => 'checkout_payment',
726 + 'title' => esc_html__( 'Checkout payment', 'shopbuilder' ),
727 + 'base_class' => Checkout\CheckoutPayment::class,
728 + 'category' => 'checkout',
729 + 'active' => 'on',
730 + 'package' => 'pro-disabled',
731 + 'fields' => [],
732 + ]
733 + ),
734 +
735 + 'coupon_form' => apply_filters(
736 + 'rtsb/elements/coupon_form/options',
737 + [
738 + 'id' => 'coupon_form',
739 + 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
740 + 'base_class' => Checkout\CouponForm::class,
741 + 'category' => 'checkout',
742 + 'active' => 'on',
743 + 'package' => 'pro-disabled',
744 + 'fields' => [],
745 + ]
746 + ),
747 +
748 + ];
749 + return apply_filters( 'rtsb/core/elements/checkout/widget_list', $list );
750 + }
751 +}