PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 1.1.4
ShopBuilder – WooCommerce Builder For Elementor v1.1.4
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 +795 -1526 2.1.81.1.4 View file →
@@ -1,1526 +1,795 @@
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 - return [
1263 -
1264 - 'account_navigation_edit_shipping' => apply_filters(
1265 - 'rtsb/elements/account_navigation_edit_shipping/options',
1266 - [
1267 - 'id' => 'account_navigation_edit_shipping',
1268 - 'title' => esc_html__( 'Account Navigation', 'shopbuilder' ),
1269 - 'category' => 'myaccount_dashboard',
1270 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1271 - 'active' => 'on',
1272 - 'package' => $this->pro_package(),
1273 - 'fields' => [],
1274 - ]
1275 - ),
1276 - 'account_dashboard' => apply_filters(
1277 - 'rtsb/elements/account_dashboard/options',
1278 - [
1279 - 'id' => 'account_dashboard',
1280 - 'title' => esc_html__( 'Account Dashboard', 'shopbuilder' ),
1281 - 'category' => 'myaccount_dashboard',
1282 - 'is_front_page' => 'myaccount_dashboard',
1283 - 'active' => 'on',
1284 - 'package' => $this->pro_package(),
1285 - 'fields' => [],
1286 - ]
1287 - ),
1288 - 'account_orders' => apply_filters(
1289 - 'rtsb/elements/account_orders/options',
1290 - [
1291 - 'id' => 'account_orders',
1292 - 'title' => esc_html__( 'Account Orders', 'shopbuilder' ),
1293 - 'category' => 'myaccount_dashboard',
1294 - 'is_front_page' => 'myaccount_order',
1295 - 'active' => 'on',
1296 - 'package' => $this->pro_package(),
1297 - 'fields' => [],
1298 - ]
1299 - ),
1300 - 'account_downloads' => apply_filters(
1301 - 'rtsb/elements/account_downloads/options',
1302 - [
1303 - 'id' => 'account_downloads',
1304 - 'title' => esc_html__( 'Account Downloads', 'shopbuilder' ),
1305 - 'category' => 'myaccount_dashboard',
1306 - 'is_front_page' => 'myaccount_downloads',
1307 - 'active' => 'on',
1308 - 'package' => $this->pro_package(),
1309 - 'fields' => [],
1310 - ]
1311 - ),
1312 - 'account_billing_address' => apply_filters(
1313 - 'rtsb/elements/account_billing_address/options',
1314 - [
1315 - 'id' => 'account_billing_address',
1316 - 'title' => esc_html__( 'Account Billing Address', 'shopbuilder' ),
1317 - 'category' => 'myaccount_dashboard',
1318 - 'is_front_page' => 'myaccount_address',
1319 - 'active' => 'on',
1320 - 'package' => $this->pro_package(),
1321 - 'fields' => [],
1322 - ]
1323 - ),
1324 - 'account_shipping_address' => apply_filters(
1325 - 'rtsb/elements/account_shipping_address/options',
1326 - [
1327 - 'id' => 'account_shipping_address',
1328 - 'title' => esc_html__( 'Account Shipping Address', 'shopbuilder' ),
1329 - 'category' => 'myaccount_dashboard',
1330 - 'is_front_page' => 'myaccount_address',
1331 - 'active' => 'on',
1332 - 'package' => $this->pro_package(),
1333 - 'fields' => [],
1334 - ]
1335 - ),
1336 - 'account_address_description' => apply_filters(
1337 - 'rtsb/elements/account_address_description/options',
1338 - [
1339 - 'id' => 'account_address_description',
1340 - 'title' => esc_html__( 'Account Address Description', 'shopbuilder' ),
1341 - 'category' => 'myaccount_dashboard',
1342 - 'is_front_page' => 'myaccount_address',
1343 - 'active' => 'on',
1344 - 'package' => $this->pro_package(),
1345 - 'fields' => [],
1346 - ]
1347 - ),
1348 - 'account_details' => apply_filters(
1349 - 'rtsb/elements/account_details/options',
1350 - [
1351 - 'id' => 'account_details',
1352 - 'title' => esc_html__( 'Account Edit / Details', 'shopbuilder' ),
1353 - 'category' => 'myaccount_dashboard',
1354 - 'is_front_page' => 'myaccount_edit_details',
1355 - 'active' => 'on',
1356 - 'package' => $this->pro_package(),
1357 - 'fields' => [],
1358 - ]
1359 - ),
1360 - 'account_order_status' => apply_filters(
1361 - 'rtsb/elements/account_order_status/options',
1362 - [
1363 - 'id' => 'account_order_status',
1364 - 'title' => esc_html__( 'Account Order Status', 'shopbuilder' ),
1365 - 'category' => 'myaccount_dashboard',
1366 - 'is_front_page' => 'myaccount_orders_details',
1367 - 'active' => 'on',
1368 - 'package' => $this->pro_package(),
1369 - 'fields' => [],
1370 - ]
1371 - ),
1372 - 'account_order_details_download' => apply_filters(
1373 - 'rtsb/elements/account_order_details_download/options',
1374 - [
1375 - 'id' => 'account_order_details_download',
1376 - 'title' => esc_html__( 'Account Order Download', 'shopbuilder' ),
1377 - 'category' => 'myaccount_dashboard',
1378 - 'is_front_page' => 'myaccount_orders_details',
1379 - 'active' => 'on',
1380 - 'package' => $this->pro_package(),
1381 - 'fields' => [],
1382 - ]
1383 - ),
1384 - 'account_order_details_note' => apply_filters(
1385 - 'rtsb/elements/account_order_details_note/options',
1386 - [
1387 - 'id' => 'account_order_details_note',
1388 - 'title' => esc_html__( 'Account Order Note', 'shopbuilder' ),
1389 - 'category' => 'myaccount_dashboard',
1390 - 'is_front_page' => 'myaccount_orders_details',
1391 - 'active' => 'on',
1392 - 'package' => $this->pro_package(),
1393 - 'fields' => [],
1394 - ]
1395 - ),
1396 - 'account_order_details_table' => apply_filters(
1397 - 'rtsb/elements/account_order_details_table/options',
1398 - [
1399 - 'id' => 'account_order_details_table',
1400 - 'title' => esc_html__( 'Account Order Table', 'shopbuilder' ),
1401 - 'category' => 'myaccount_dashboard',
1402 - 'is_front_page' => 'myaccount_orders_details',
1403 - 'active' => 'on',
1404 - 'package' => $this->pro_package(),
1405 - 'fields' => [],
1406 - ]
1407 - ),
1408 - 'account_order_details_order_again' => apply_filters(
1409 - 'rtsb/elements/account_order_details_order_again/options',
1410 - [
1411 - 'id' => 'account_order_details_order_again',
1412 - 'title' => esc_html__( 'Account Order Again Button', 'shopbuilder' ),
1413 - 'category' => 'myaccount_dashboard',
1414 - 'is_front_page' => 'myaccount_orders_details',
1415 - 'active' => 'on',
1416 - 'package' => $this->pro_package(),
1417 - 'fields' => [],
1418 - ]
1419 - ),
1420 - 'account_order_details_order_shipping' => apply_filters(
1421 - 'rtsb/elements/account_order_details_order_shipping/options',
1422 - [
1423 - 'id' => 'account_order_details_order_shipping',
1424 - 'title' => esc_html__( 'Account Order Shipping', 'shopbuilder' ),
1425 - 'category' => 'myaccount_dashboard',
1426 - 'is_front_page' => 'myaccount_orders_details',
1427 - 'active' => 'on',
1428 - 'package' => $this->pro_package(),
1429 - 'fields' => [],
1430 - ]
1431 - ),
1432 - 'account_order_details_order_billing' => apply_filters(
1433 - 'rtsb/elements/account_order_details_order_billing/options',
1434 - [
1435 - 'id' => 'account_order_details_order_billing',
1436 - 'title' => esc_html__( 'Account Order Billing', 'shopbuilder' ),
1437 - 'category' => 'myaccount_dashboard',
1438 - 'is_front_page' => 'myaccount_orders_details',
1439 - 'active' => 'on',
1440 - 'package' => $this->pro_package(),
1441 - 'fields' => [],
1442 - ]
1443 - ),
1444 - 'account_edit_billing_address' => apply_filters(
1445 - 'rtsb/elements/account_edit_billing_address/options',
1446 - [
1447 - 'id' => 'account_edit_billing_address',
1448 - 'title' => esc_html__( 'Edit Billing Address', 'shopbuilder' ),
1449 - 'category' => 'myaccount_dashboard',
1450 - 'is_front_page' => 'myaccount_edit_billing_address',
1451 - 'active' => 'on',
1452 - 'package' => $this->pro_package(),
1453 - 'fields' => [],
1454 - ]
1455 - ),
1456 - 'account_edit_shipping_address' => apply_filters(
1457 - 'rtsb/elements/account_edit_shipping_address/options',
1458 - [
1459 - 'id' => 'account_edit_shipping_address',
1460 - 'title' => esc_html__( 'Edit Shipping Address', 'shopbuilder' ),
1461 - 'category' => 'myaccount_dashboard',
1462 - 'is_front_page' => 'myaccount_edit_shipping_address',
1463 - 'active' => 'on',
1464 - 'package' => $this->pro_package(),
1465 - 'fields' => [],
1466 - ]
1467 - ),
1468 - ];
1469 - }
1470 -
1471 - /***
1472 - * @return array
1473 - */
1474 - protected function myaccount_auth_page_widget_list() {
1475 - return [
1476 - 'account_login' => apply_filters(
1477 - 'rtsb/elements/account_login/options',
1478 - [
1479 - 'id' => 'account_login',
1480 - 'title' => esc_html__( 'Login Register Form', 'shopbuilder' ),
1481 - 'category' => 'others_widget',
1482 - 'is_front_page' => 'myaccount_auth',
1483 - 'active' => 'on',
1484 - 'package' => $this->pro_package(),
1485 - 'fields' => [],
1486 - ]
1487 - ),
1488 - 'account_login_form' => apply_filters(
1489 - 'rtsb/elements/account_login_form/options',
1490 - [
1491 - 'id' => 'account_login_form',
1492 - 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
1493 - 'category' => 'others_widget',
1494 - 'is_front_page' => 'myaccount_auth',
1495 - 'active' => 'on',
1496 - 'package' => $this->pro_package(),
1497 - 'fields' => [],
1498 - ]
1499 - ),
1500 - 'account_registration_form' => apply_filters(
1501 - 'rtsb/elements/account_registration_form/options',
1502 - [
1503 - 'id' => 'account_registration_form',
1504 - 'title' => esc_html__( 'Registration Form', 'shopbuilder' ),
1505 - 'category' => 'others_widget',
1506 - 'is_front_page' => 'myaccount_auth',
1507 - 'active' => 'on',
1508 - 'package' => $this->pro_package(),
1509 - 'fields' => [],
1510 - ]
1511 - ),
1512 - 'account_lost_password' => apply_filters(
1513 - 'rtsb/elements/account_lost_password/options',
1514 - [
1515 - 'id' => 'account_lost_password',
1516 - 'title' => esc_html__( 'Lost Password Form', 'shopbuilder' ),
1517 - 'category' => 'others_widget',
1518 - 'is_front_page' => 'myaccount_lost_password',
1519 - 'active' => 'on',
1520 - 'package' => $this->pro_package(),
1521 - 'fields' => [],
1522 - ]
1523 - ),
1524 - ];
1525 - }
1526 -}
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 = apply_filters(
41 + 'rtsb/elements/list/categories',
42 + [
43 + 'general' => [
44 + 'title' => esc_html__( 'General', 'shopbuilder' ),
45 + ],
46 + 'shop' => [
47 + 'title' => esc_html__( 'Shop / Archive', 'shopbuilder' ),
48 + ],
49 + 'product' => [
50 + 'title' => esc_html__( 'Single', 'shopbuilder' ),
51 + ],
52 + 'cart' => [
53 + 'title' => esc_html__( 'Cart', 'shopbuilder' ),
54 + ],
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 + 'product_notice' => apply_filters(
97 + 'rtsb/elements/product_notice/options',
98 + [
99 + 'id' => 'product_notice',
100 + 'title' => esc_html__( 'Notice', 'shopbuilder' ),
101 + 'base_class' => General\Notice::class,
102 + 'category' => 'general',
103 + 'active' => 'on',
104 + 'package' => 'free',
105 + 'fields' => [],
106 + ]
107 + ),
108 + 'products_grid' => apply_filters(
109 + 'rtsb/elements/products_grid/options',
110 + [
111 + 'id' => 'products_grid',
112 + 'title' => esc_html__( 'Products - Grid Layouts', 'shopbuilder' ),
113 + 'base_class' => General\ProductsGrid::class,
114 + 'category' => 'general',
115 + 'active' => 'on',
116 + 'package' => 'free',
117 + 'fields' => [],
118 + ]
119 + ),
120 + 'products_list' => apply_filters(
121 + 'rtsb/elements/products_list/options',
122 + [
123 + 'id' => 'products_list',
124 + 'title' => esc_html__( 'Products - List Layouts', 'shopbuilder' ),
125 + 'base_class' => General\ProductsList::class,
126 + 'category' => 'general',
127 + 'active' => 'on',
128 + 'package' => 'free',
129 + 'fields' => [],
130 + ]
131 + ),
132 +
133 + 'products_slider' => apply_filters(
134 + 'rtsb/elements/products_slider/options',
135 + [
136 + 'id' => 'products_slider',
137 + 'title' => esc_html__( 'Products - Slider Layouts', 'shopbuilder' ),
138 + 'base_class' => General\ProductsSlider::class,
139 + 'category' => 'general',
140 + 'active' => 'on',
141 + 'package' => 'free',
142 + 'fields' => [],
143 + ]
144 + ),
145 +
146 + 'products_single_cateogory' => apply_filters(
147 + 'rtsb/elements/products_single_cateogory/options',
148 + [
149 + 'id' => 'products_single_cateogory',
150 + 'title' => esc_html__( 'Single Category', 'shopbuilder' ),
151 + 'base_class' => General\ProductsSingleCategory::class,
152 + 'category' => 'general',
153 + 'active' => 'on',
154 + 'package' => 'free',
155 + 'fields' => [],
156 + ]
157 + ),
158 + 'product_cateogories' => apply_filters(
159 + 'rtsb/elements/product_cateogories/options',
160 + [
161 + 'id' => 'product_cateogories',
162 + 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
163 + 'base_class' => General\ProductCategories::class,
164 + 'category' => 'general',
165 + 'active' => 'on',
166 + 'package' => 'free',
167 + 'fields' => [],
168 + ]
169 + ),
170 + 'social_share' => apply_filters(
171 + 'rtsb/elements/social_share/options',
172 + [
173 + 'id' => 'social_share',
174 + 'title' => esc_html__( 'Social Share', 'shopbuilder' ),
175 + 'base_class' => General\SocialShare::class,
176 + 'category' => 'general',
177 + 'active' => 'on',
178 + 'package' => 'free',
179 + 'fields' => [],
180 + ]
181 + ),
182 + ];
183 +
184 + return apply_filters( 'rtsb/core/elements/general/widget_list', $list );
185 + }
186 +
187 + /**
188 + * Product Single Widget List.
189 + *
190 + * @return array
191 + */
192 + protected function product_page_widget_list() {
193 +
194 + $list = [
195 +
196 + 'upsells_product_custom' => apply_filters(
197 + 'rtsb/elements/upsells_product_custom/options',
198 + [
199 + 'id' => 'upsells_product_custom',
200 + 'title' => esc_html__( 'Upsells Product - Custom Layout', 'shopbuilder' ),
201 + 'base_class' => Single\UpsellsProductsCustom::class,
202 + 'category' => 'product',
203 + 'active' => 'on',
204 + 'package' => 'free',
205 + 'fields' => [],
206 + ]
207 + ),
208 +
209 + 'upsells_products_slider_custom' => apply_filters(
210 + 'rtsb/elements/upsells_products_slider_custom/options',
211 + [
212 + 'id' => 'upsells_products_slider_custom',
213 + 'title' => esc_html__( 'Upsells Product Slider- Custom Layout', 'shopbuilder' ),
214 + 'base_class' => Single\UpsellsProductsSlider::class,
215 + 'category' => 'product',
216 + 'active' => 'on',
217 + 'package' => 'free',
218 + 'fields' => [],
219 + ]
220 + ),
221 +
222 + 'related_product_custom' => apply_filters(
223 + 'rtsb/elements/related_product_custom/options',
224 + [
225 + 'id' => 'related_product_custom',
226 + 'title' => esc_html__( 'Related Product - Custom Layout', 'shopbuilder' ),
227 + 'base_class' => Single\RelatedProductsCustom::class,
228 + 'category' => 'product',
229 + 'active' => 'on',
230 + 'package' => 'free',
231 + 'fields' => [],
232 + ]
233 + ),
234 +
235 + 'related_products_slider_custom' => apply_filters(
236 + 'rtsb/elements/related_products_slider_custom/options',
237 + [
238 + 'id' => 'related_products_slider_custom',
239 + 'title' => esc_html__( 'Related Products Slider - Custom Layouts', 'shopbuilder' ),
240 + 'base_class' => Single\RelatedProductsSlider::class,
241 + 'category' => 'product',
242 + 'active' => 'on',
243 + 'package' => 'free',
244 + 'fields' => [],
245 + ]
246 + ),
247 +
248 + 'upsells_product' => apply_filters(
249 + 'rtsb/elements/upsells_product/options',
250 + [
251 + 'id' => 'upsells_product',
252 + 'title' => esc_html__( 'Upsells Product - Default Layout', 'shopbuilder' ),
253 + 'base_class' => Single\UpsellsProduct::class,
254 + 'category' => 'product',
255 + 'active' => 'on',
256 + 'package' => 'free',
257 + 'fields' => [],
258 + ]
259 + ),
260 +
261 + 'related_product' => apply_filters(
262 + 'rtsb/elements/related_product/options',
263 + [
264 + 'id' => 'related_product',
265 + 'title' => esc_html__( 'Related Product - Default Layout', 'shopbuilder' ),
266 + 'base_class' => Single\RelatedProduct::class,
267 + 'category' => 'product',
268 + 'active' => 'on',
269 + 'package' => 'free',
270 + 'fields' => [],
271 + ]
272 + ),
273 +
274 + 'product_title' => apply_filters(
275 + 'rtsb/elements/product_title/options',
276 + [
277 + 'id' => 'product_title',
278 + 'title' => esc_html__( 'Product Title', 'shopbuilder' ),
279 + 'base_class' => Single\ProductTitle::class,
280 + 'category' => 'product',
281 + 'active' => 'on',
282 + 'package' => 'free',
283 + 'fields' => [],
284 + ]
285 + ),
286 + 'product_images' => apply_filters(
287 + 'rtsb/elements/product_images/options',
288 + [
289 + 'id' => 'product_images',
290 + 'title' => esc_html__( 'Product Images', 'shopbuilder' ),
291 + 'base_class' => Single\ProductImages::class,
292 + 'category' => 'product',
293 + 'active' => 'on',
294 + 'package' => 'free',
295 + 'fields' => [],
296 + ]
297 + ),
298 + 'product_short_description' => apply_filters(
299 + 'rtsb/elements/product_short_description/options',
300 + [
301 + 'id' => 'product_short_description',
302 + 'title' => esc_html__( 'Short Description', 'shopbuilder' ),
303 + 'base_class' => Single\ShortDescription::class,
304 + 'category' => 'product',
305 + 'active' => 'on',
306 + 'package' => 'free',
307 + 'fields' => [],
308 + ]
309 + ),
310 + 'product_description' => apply_filters(
311 + 'rtsb/elements/product_description/options',
312 + [
313 + 'id' => 'product_description',
314 + 'title' => esc_html__( 'Product Description', 'shopbuilder' ),
315 + 'base_class' => Single\ProductDescription::class,
316 + 'category' => 'product',
317 + 'active' => 'on',
318 + 'package' => 'free',
319 + 'fields' => [],
320 + ]
321 + ),
322 + 'product_additional_info' => apply_filters(
323 + 'rtsb/elements/product_additional_info/options',
324 + [
325 + 'id' => 'product_additional_info',
326 + 'title' => esc_html__( 'Additional Information', 'shopbuilder' ),
327 + 'base_class' => Single\AdditionalInformation::class,
328 + 'category' => 'product',
329 + 'active' => 'on',
330 + 'package' => 'free',
331 + 'fields' => [],
332 + ]
333 + ),
334 + 'product_rating' => apply_filters(
335 + 'rtsb/elements/product_rating/options',
336 + [
337 + 'id' => 'product_rating',
338 + 'title' => esc_html__( 'Product Rating', 'shopbuilder' ),
339 + 'base_class' => Single\ProductRating::class,
340 + 'category' => 'product',
341 + 'active' => 'on',
342 + 'package' => 'free',
343 + 'fields' => [],
344 + ]
345 + ),
346 + 'product_price' => apply_filters(
347 + 'rtsb/elements/product_price/options',
348 + [
349 + 'id' => 'product_price',
350 + 'title' => esc_html__( 'Product Price', 'shopbuilder' ),
351 + 'base_class' => Single\ProductPrice::class,
352 + 'category' => 'product',
353 + 'active' => 'on',
354 + 'package' => 'free',
355 + 'fields' => [],
356 + ]
357 + ),
358 + 'product_meta' => apply_filters(
359 + 'rtsb/elements/product_meta/options',
360 + [
361 + 'id' => 'product_meta',
362 + 'title' => esc_html__( 'Product Meta', 'shopbuilder' ),
363 + 'base_class' => Single\ProductMeta::class,
364 + 'category' => 'product',
365 + 'active' => 'on',
366 + 'package' => 'free',
367 + 'fields' => [],
368 + ]
369 + ),
370 + 'product_categories' => apply_filters(
371 + 'rtsb/elements/product_categories/options',
372 + [
373 + 'id' => 'product_categories',
374 + 'title' => esc_html__( 'Product Categories', 'shopbuilder' ),
375 + 'base_class' => Single\ProductCats::class,
376 + 'category' => 'product',
377 + 'active' => 'on',
378 + 'package' => 'free',
379 + 'fields' => [],
380 + ]
381 + ),
382 + 'product_tags' => apply_filters(
383 + 'rtsb/elements/product_tags/options',
384 + [
385 + 'id' => 'product_tags',
386 + 'title' => esc_html__( 'Product Tags', 'shopbuilder' ),
387 + 'base_class' => Single\ProductTags::class,
388 + 'category' => 'product',
389 + 'active' => 'on',
390 + 'package' => 'free',
391 + 'fields' => [],
392 + ]
393 + ),
394 + 'product_sku' => apply_filters(
395 + 'rtsb/elements/product_sku/options',
396 + [
397 + 'id' => 'product_sku',
398 + 'title' => esc_html__( 'Product SKU', 'shopbuilder' ),
399 + 'base_class' => Single\ProductSKU::class,
400 + 'category' => 'product',
401 + 'active' => 'on',
402 + 'package' => 'free',
403 + 'fields' => [],
404 + ]
405 + ),
406 + 'product_stock' => apply_filters(
407 + 'rtsb/elements/product_stock/options',
408 + [
409 + 'id' => 'product_stock',
410 + 'title' => esc_html__( 'Product Stock', 'shopbuilder' ),
411 + 'base_class' => Single\ProductStock::class,
412 + 'category' => 'product',
413 + 'active' => 'on',
414 + 'package' => 'free',
415 + 'fields' => [],
416 + ]
417 + ),
418 + 'product_add_to_cart' => apply_filters(
419 + 'rtsb/elements/product_add_to_cart/options',
420 + [
421 + 'id' => 'product_add_to_cart',
422 + 'title' => esc_html__( 'Product add to cart', 'shopbuilder' ),
423 + 'base_class' => Single\ProductAddToCart::class,
424 + 'category' => 'product',
425 + 'active' => 'on',
426 + 'package' => 'free',
427 + 'fields' => [],
428 + ]
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 + 'product_onsale' => apply_filters(
481 + 'rtsb/elements/product_onsale/options',
482 + [
483 + 'id' => 'product_onsale',
484 + 'title' => esc_html__( 'Sale Flash - Onsale', 'shopbuilder' ),
485 + 'base_class' => Single\ProductOnSale::class,
486 + 'category' => 'product',
487 + 'active' => 'on',
488 + 'package' => 'free',
489 + 'fields' => [],
490 + ]
491 + ),
492 +
493 + ];
494 +
495 + return apply_filters( 'rtsb/core/elements/product_page/widget_list', $list );
496 + }
497 +
498 + /**
499 + * Product Archive Widget List.
500 + *
501 + * @return array
502 + */
503 + protected function shop_archive_page_widget_list() {
504 + $list = [
505 +
506 + 'products_archive_catalog_custom' => apply_filters(
507 + 'rtsb/elements/products_archive_catalog_custom/options',
508 + [
509 + 'id' => 'products_archive_catalog_custom',
510 + 'title' => esc_html__( 'Products Archive - Custom ', 'shopbuilder' ),
511 + 'base_class' => Archive\ProductsArchiveCustom::class,
512 + 'category' => 'shop',
513 + 'active' => 'on',
514 + 'package' => 'free',
515 + 'fields' => [],
516 + ]
517 + ),
518 +
519 + 'products_archive_catalog' => apply_filters(
520 + 'rtsb/elements/products_archive_catalog/options',
521 + [
522 + 'id' => 'products_archive_catalog',
523 + 'title' => esc_html__( 'Products Archive - Default Layout', 'shopbuilder' ),
524 + 'base_class' => Archive\ProductsArchive::class,
525 + 'category' => 'shop',
526 + 'active' => 'on',
527 + 'package' => 'free',
528 + 'fields' => [],
529 + ]
530 + ),
531 +
532 + 'archive_title' => apply_filters(
533 + 'rtsb/elements/archive_title/options',
534 + [
535 + 'id' => 'archive_title',
536 + 'title' => esc_html__( 'Archive Title', 'shopbuilder' ),
537 + 'base_class' => Archive\ArchiveTitle::class,
538 + 'category' => 'shop',
539 + 'active' => 'on',
540 + 'package' => 'free',
541 + 'fields' => [],
542 + ]
543 + ),
544 + 'archive_description' => apply_filters(
545 + 'rtsb/elements/archive_description/options',
546 + [
547 + 'id' => 'archive_description',
548 + 'title' => esc_html__( 'Archive Description', 'shopbuilder' ),
549 + 'base_class' => Archive\ArchiveDescription::class,
550 + 'category' => 'shop',
551 + 'active' => 'on',
552 + 'package' => 'free',
553 + 'fields' => [],
554 + ]
555 + ),
556 +
557 + 'archive_result_count' => apply_filters(
558 + 'rtsb/elements/archive_result_count/options',
559 + [
560 + 'id' => 'archive_result_count',
561 + 'title' => esc_html__( 'Result Count', 'shopbuilder' ),
562 + 'base_class' => Archive\ArchiveResultCount::class,
563 + 'category' => 'shop',
564 + 'active' => 'on',
565 + 'package' => 'free',
566 + 'fields' => [],
567 + ]
568 + ),
569 + 'archive_products_ordering' => apply_filters(
570 + 'rtsb/elements/archive_products_ordering/options',
571 + [
572 + 'id' => 'archive_products_ordering',
573 + 'title' => esc_html__( 'Products Ordering', 'shopbuilder' ),
574 + 'base_class' => Archive\ProductsOrdering::class,
575 + 'category' => 'shop',
576 + 'active' => 'on',
577 + 'package' => 'free',
578 + 'fields' => [],
579 + ]
580 + ),
581 + 'archive_product_mode' => apply_filters(
582 + 'rtsb/elements/archive_product_mode/options',
583 + [
584 + 'id' => 'archive_product_mode',
585 + 'title' => esc_html__( 'View Mode', 'shopbuilder' ),
586 + 'base_class' => Archive\ArchiveProductMode::class,
587 + 'category' => 'shop',
588 + 'active' => 'on',
589 + 'package' => 'free',
590 + 'fields' => [],
591 + ]
592 + ),
593 + ];
594 +
595 + return apply_filters( 'rtsb/core/elements/shop/widget_list', $list );
596 + }
597 +
598 + /**
599 + * Cart Page Widget List.
600 + *
601 + * @return array
602 + */
603 + protected function cart_page_widget_list() {
604 + $list = [
605 + 'cross_sells_custom' => apply_filters(
606 + 'rtsb/elements/cross_sells_custom/options',
607 + [
608 + 'id' => 'cross_sells_custom',
609 + 'title' => esc_html__( 'Cross sells - Custom Layout', 'shopbuilder' ),
610 + 'base_class' => Cart\CrossSellsProductsCustom::class,
611 + 'category' => 'cart',
612 + 'active' => 'on',
613 + 'package' => 'free',
614 + 'fields' => [],
615 + ]
616 + ),
617 +
618 + 'cross_sells_custom_slider' => apply_filters(
619 + 'rtsb/elements/cross_sells_custom_slider/options',
620 + [
621 + 'id' => 'cross_sells_custom_slider',
622 + 'title' => esc_html__( 'Cross sells Slider- Custom Layout', 'shopbuilder' ),
623 + 'base_class' => Cart\CrossSellsProductsSlider::class,
624 + 'category' => 'cart',
625 + 'active' => 'on',
626 + 'package' => 'free',
627 + 'fields' => [],
628 + ]
629 + ),
630 +
631 + 'cross_sells' => apply_filters(
632 + 'rtsb/elements/cross_sells/options',
633 + [
634 + 'id' => 'cross_sells',
635 + 'title' => esc_html__( 'Cross sells - Default Layout', 'shopbuilder' ),
636 + 'base_class' => Cart\CrossSellProduct::class,
637 + 'category' => 'cart',
638 + 'active' => 'on',
639 + 'package' => 'free',
640 + 'fields' => [],
641 + ]
642 + ),
643 + 'cart_table' => apply_filters(
644 + 'rtsb/elements/cart_table/options',
645 + [
646 + 'id' => 'cart_table',
647 + 'title' => esc_html__( 'Cart Table', 'shopbuilder' ),
648 + 'base_class' => Cart\CartTable::class,
649 + 'category' => 'cart',
650 + 'active' => 'on',
651 + 'package' => 'free',
652 + 'fields' => [],
653 + ]
654 + ),
655 + 'cart_totals' => apply_filters(
656 + 'rtsb/elements/cart_totals/options',
657 + [
658 + 'id' => 'cart_totals',
659 + 'title' => esc_html__( 'Cart Totals', 'shopbuilder' ),
660 + 'base_class' => Cart\CartTotals::class,
661 + 'category' => 'cart',
662 + 'active' => 'on',
663 + 'package' => 'free',
664 + 'fields' => [],
665 + ]
666 + ),
667 + /*
668 + 'cart_coupon_form' => apply_filters(
669 + 'rtsb/elements/cart_coupon_form/options',
670 + [
671 + 'id' => 'cart_coupon_form',
672 + 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
673 + 'base_class' => Checkout\CouponForm::class,
674 + 'category' => 'cart',
675 + 'active' => 'on',
676 + 'package' => 'free',
677 + 'fields' => [],
678 + ]
679 + ),
680 + */
681 +
682 + ];
683 +
684 + return apply_filters( 'rtsb/core/elements/cart/widget_list', $list );
685 + }
686 + /**
687 + * Checkout Page Widget List.
688 + *
689 + * @return array
690 + */
691 + protected function checkout_page_widget_list() {
692 + $list = [
693 + 'billing_form' => apply_filters(
694 + 'rtsb/elements/billing_form/options',
695 + [
696 + 'id' => 'billing_form',
697 + 'title' => esc_html__( 'Billing Form', 'shopbuilder' ),
698 + 'base_class' => Checkout\BillingForm::class,
699 + 'category' => 'checkout',
700 + 'active' => 'on',
701 + 'package' => 'free',
702 + 'fields' => [],
703 + ]
704 + ),
705 + 'shipping_form' => apply_filters(
706 + 'rtsb/elements/shipping_form/options',
707 + [
708 + 'id' => 'shipping_form',
709 + 'title' => esc_html__( 'Shipping Form', 'shopbuilder' ),
710 + 'base_class' => Checkout\ShippingForm::class,
711 + 'category' => 'checkout',
712 + 'active' => 'on',
713 + 'package' => 'free',
714 + 'fields' => [],
715 + ]
716 + ),
717 + 'order_notes' => apply_filters(
718 + 'rtsb/elements/order_notes/options',
719 + [
720 + 'id' => 'order_notes',
721 + 'title' => esc_html__( 'Order Notes', 'shopbuilder' ),
722 + 'base_class' => Checkout\OrderNotes::class,
723 + 'category' => 'checkout',
724 + 'active' => 'on',
725 + 'package' => 'free',
726 + 'fields' => [],
727 + ]
728 + ),
729 + 'order_review' => apply_filters(
730 + 'rtsb/elements/order_review/options',
731 + [
732 + 'id' => 'order_review',
733 + 'title' => esc_html__( 'Order Review', 'shopbuilder' ),
734 + 'base_class' => Checkout\OrderReview::class,
735 + 'category' => 'checkout',
736 + 'active' => 'on',
737 + 'package' => 'free',
738 + 'fields' => [],
739 + ]
740 + ),
741 + 'checkout_payment' => apply_filters(
742 + 'rtsb/elements/checkout_payment/options',
743 + [
744 + 'id' => 'checkout_payment',
745 + 'title' => esc_html__( 'Checkout Payment Method', 'shopbuilder' ),
746 + 'base_class' => Checkout\CheckoutPayment::class,
747 + 'category' => 'checkout',
748 + 'active' => 'on',
749 + 'package' => 'free',
750 + 'fields' => [],
751 + ]
752 + ),
753 + 'coupon_form' => apply_filters(
754 + 'rtsb/elements/coupon_form/options',
755 + [
756 + 'id' => 'coupon_form',
757 + 'title' => esc_html__( 'Coupon Form', 'shopbuilder' ),
758 + 'base_class' => Checkout\CouponForm::class,
759 + 'category' => 'checkout',
760 + 'active' => 'on',
761 + 'package' => 'free',
762 + 'fields' => [],
763 + ]
764 + ),
765 + 'checkout_login_form' => apply_filters(
766 + 'rtsb/elements/checkout_login_form/options',
767 + [
768 + 'id' => 'checkout_login_form',
769 + 'title' => esc_html__( 'Login Form', 'shopbuilder' ),
770 + 'base_class' => Checkout\CheckoutLoginForm::class,
771 + 'category' => 'checkout',
772 + 'active' => 'on',
773 + 'package' => 'free',
774 + 'fields' => [],
775 + ]
776 + ),
777 +
778 + 'shipping_method' => apply_filters(
779 + 'rtsb/elements/shipping_method/options',
780 + [
781 + 'id' => 'shipping_method',
782 + 'title' => esc_html__( 'Shipping Method', 'shopbuilder' ),
783 + 'base_class' => Checkout\ShippingMethod::class,
784 + 'category' => 'checkout',
785 + 'active' => 'on',
786 + 'package' => 'free',
787 + 'fields' => [],
788 + ]
789 + ),
790 +
791 + ];
792 + return apply_filters( 'rtsb/core/elements/checkout/widget_list', $list );
793 + }
794 +
795 +}