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