PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.2
ShopBuilder – WooCommerce Builder For Elementor v2.6.2
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 +4 -304 3.4.02.6.2 View file →
@@ -11,9 +11,8 @@
11 11 use RadiusTheme\SB\Elementor\Widgets\Cart;
12 12 use RadiusTheme\SB\Elementor\Widgets\Checkout;
13 13 use RadiusTheme\SB\Elementor\Widgets\General;
14 14 use RadiusTheme\SB\Elementor\Widgets\Single;
15 -use RadiusTheme\SB\Helpers\SvgIcons;
16 15 use RadiusTheme\SB\Models\Base\ListModel;
17 16 use RadiusTheme\SB\Traits\SingletonTrait;
18 17 use RadiusTheme\SBPRO\Elementor\Widgets\Checkout as CheckoutPro;
19 18
@@ -50,9 +49,9 @@
50 49 'shop' => [
51 50 'title' => esc_html__( 'Shop / Archive', 'shopbuilder' ),
52 51 ],
53 52 'product' => [
54 - 'title' => esc_html__( 'Product Page', 'shopbuilder' ),
53 + 'title' => esc_html__( 'Single', 'shopbuilder' ),
55 54 ],
56 55 'quick_view' => [
57 56 'title' => esc_html__( 'Quick View', 'shopbuilder' ),
58 57 ],
@@ -88,191 +87,15 @@
88 87 + $this->shop_archive_page_widget_list()
89 88 + $this->cart_page_widget_list()
90 89 + $this->checkout_page_widget_list()
91 90 + $this->thankyou_page_widget_list()
92 - + $this->orderpay_page_widget_list()
93 91 + $this->my_account_page_widget_list()
94 92 + $this->myaccount_auth_page_widget_list();
95 93
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 94 return apply_filters( 'rtsb/core/elements/raw_list', $list );
104 95 }
105 96
106 97 /**
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_billing_address' => 'address',
251 - 'account_shipping_address' => 'address',
252 - 'account_address_description' => 'document',
253 - 'account_details' => 'user',
254 - 'account_order_status' => 'chart',
255 - 'account_order_details_download' => 'download',
256 - 'account_order_details_note' => 'note',
257 - 'account_order_details_table' => 'document',
258 - 'account_order_details_order_again' => 'cart',
259 - 'account_order_details_order_shipping' => 'address',
260 - 'account_order_details_order_billing' => 'address',
261 - 'account_edit_billing_address' => 'form',
262 - 'account_edit_shipping_address' => 'form',
263 - 'account_payment_methods' => 'payment',
264 - 'account_add_payment_method' => 'payment',
265 -
266 - // Others / Auth.
267 - 'account_login' => 'lock',
268 - 'account_login_form' => 'lock',
269 - 'account_registration_form' => 'user',
270 - 'account_lost_password' => 'lock',
271 - ];
272 - }
273 -
274 - /**
275 98 * GLobal Widget List.
276 99 *
277 100 * @return array
278 101 */
@@ -359,19 +182,8 @@
359 182 'package' => $this->pro_package(),
360 183 'fields' => [],
361 184 ]
362 185 ),
363 - 'category_showcase_tabs' => apply_filters(
364 - 'rtsb/elements/category_showcase_tabs/options',
365 - [
366 - 'id' => 'category_showcase_tabs',
367 - 'title' => esc_html__( 'Category Showcase Tabs', 'shopbuilder' ),
368 - 'category' => 'general',
369 - 'active' => '',
370 - 'package' => $this->pro_package(),
371 - 'fields' => [],
372 - ]
373 - ),
374 186 'rtsb_wishlist' => apply_filters(
375 187 'rtsb/elements/rtsb_wishlist/options',
376 188 [
377 189 'id' => 'rtsb_wishlist',
@@ -524,19 +336,8 @@
524 336 'package' => $this->pro_package(),
525 337 'fields' => [],
526 338 ]
527 339 ),
528 - 'hero_slider' => apply_filters(
529 - 'rtsb/elements/hero_slider/options',
530 - [
531 - 'id' => 'hero_slider',
532 - 'title' => esc_html__( 'Hero Slider', 'shopbuilder' ),
533 - 'category' => 'general',
534 - 'active' => '',
535 - 'package' => $this->pro_package(),
536 - 'fields' => [],
537 - ]
538 - ),
539 340 'shopbuilder_counter' => apply_filters(
540 341 'rtsb/elements/shopbuilder_counter/options',
541 342 [
542 343 'id' => 'shopbuilder_counter',
@@ -655,31 +456,10 @@
655 456 'package' => 'free',
656 457 'fields' => [],
657 458 ]
658 459 ),
659 - 'advanced_ajax_search' => apply_filters(
660 - 'rtsb/elements/advanced_ajax_search/options',
661 - [
662 - 'id' => 'advanced_ajax_search',
663 - 'title' => esc_html__( 'Advanced Ajax Search', 'shopbuilder' ),
664 - 'category' => 'general',
665 - 'active' => '',
666 - 'package' => $this->pro_package(),
667 - 'fields' => [],
668 - ]
669 - ),
670 - 'save_for_buy_later' => apply_filters(
671 - 'rtsb/elements/save_for_buy_later/options',
672 - [
673 - 'id' => 'save_for_buy_later',
674 - 'title' => esc_html__( 'Saved For Buy Later', 'shopbuilder' ),
675 - 'category' => 'general',
676 - 'active' => '',
677 - 'package' => $this->pro_package(),
678 - 'fields' => [],
679 - ]
680 - ),
681 460 ];
461 +
682 462 return apply_filters( 'rtsb/core/elements/general/widget_list', $list );
683 463 }
684 464
685 465 /**
@@ -959,19 +739,8 @@
959 739 'package' => $this->pro_package(),
960 740 'fields' => [],
961 741 ]
962 742 ),
963 - 'product_qr_code' => apply_filters(
964 - 'rtsb/elements/product_qr_code/options',
965 - [
966 - 'id' => 'product_qr_code',
967 - 'title' => esc_html__( 'QR Code', 'shopbuilder' ),
968 - 'category' => 'product',
969 - 'active' => '',
970 - 'package' => $this->pro_package(),
971 - 'fields' => [],
972 - ]
973 - ),
974 743 'product_reviews' => apply_filters(
975 744 'rtsb/elements/product_reviews/options',
976 745 [
977 746 'id' => 'product_reviews',
@@ -1393,9 +1162,9 @@
1393 1162 'rtsb/elements/product_filters/options',
1394 1163 [
1395 1164 'id' => 'product_filters',
1396 1165 'title' => esc_html__( 'Product Filters', 'shopbuilder' ),
1397 - 'base_class' => Archive\ProductFilters\ProductFilters::class,
1166 + 'base_class' => Archive\ProductFilters::class,
1398 1167 'category' => 'shop',
1399 1168 'active' => 'on',
1400 1169 'package' => 'free',
1401 1170 'fields' => [],
@@ -1520,20 +1289,8 @@
1520 1289 'package' => 'free',
1521 1290 'fields' => [],
1522 1291 ]
1523 1292 ),
1524 - 'save_for_later_preview' => apply_filters(
1525 - 'rtsb/elements/save_for_later_preview/options',
1526 - [
1527 - 'id' => 'save_for_later_preview',
1528 - 'title' => esc_html__( 'Save For Later Preview', 'shopbuilder' ),
1529 - 'base_class' => Cart\SaveForLaterPreview::class,
1530 - 'category' => 'cart',
1531 - 'active' => 'on',
1532 - 'package' => $this->pro_package(),
1533 - 'fields' => [],
1534 - ]
1535 - ),
1536 1293 ];
1537 1294
1538 1295 return apply_filters( 'rtsb/core/elements/cart/widget_list', $list );
1539 1296 }
@@ -1652,8 +1409,9 @@
1652 1409 'package' => $this->pro_package(),
1653 1410 'fields' => [],
1654 1411 ]
1655 1412 ),
1413 +
1656 1414 ];
1657 1415
1658 1416 return apply_filters( 'rtsb/core/elements/checkout/widget_list', $list );
1659 1417 }
@@ -1750,31 +1508,9 @@
1750 1508 ]
1751 1509 ),
1752 1510 ];
1753 1511 }
1754 - /**
1755 - * Checkout Page Order Pay Widget List.
1756 - *
1757 - * @return array
1758 - */
1759 - protected function orderpay_page_widget_list() {
1760 - return [
1761 - 'order_pay_form' => apply_filters(
1762 - 'rtsb/elements/order_pay_form/options',
1763 - [
1764 - 'id' => 'order_pay_form',
1765 - 'title' => esc_html__( 'Order Pay Form', 'shopbuilder' ),
1766 - 'category' => 'myaccount_dashboard',
1767 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1768 - 'active' => 'on',
1769 - 'package' => $this->pro_package(),
1770 - 'fields' => [],
1771 - ]
1772 - ),
1773 1512
1774 - ];
1775 - }
1776 -
1777 1513 /**
1778 1514 * Checkout Page Widget List.
1779 1515 *
1780 1516 * @return array
@@ -1780,20 +1516,8 @@
1780 1516 * @return array
1781 1517 */
1782 1518 protected function my_account_page_widget_list() {
1783 1519 $widgets = [
1784 - 'account_avatar' => apply_filters(
1785 - 'rtsb/elements/account_avatar/options',
1786 - [
1787 - 'id' => 'account_avatar',
1788 - 'title' => esc_html__( 'Account Avatar', 'shopbuilder' ),
1789 - 'category' => 'myaccount_dashboard',
1790 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1791 - 'active' => 'on',
1792 - 'package' => $this->pro_package(),
1793 - 'fields' => [],
1794 - ]
1795 - ),
1796 1520 'account_navigation_edit_shipping' => apply_filters(
1797 1521 'rtsb/elements/account_navigation_edit_shipping/options',
1798 1522 [
1799 1523 'id' => 'account_navigation_edit_shipping',
@@ -1989,32 +1713,8 @@
1989 1713 'rtsb/elements/account_edit_shipping_address/options',
1990 1714 [
1991 1715 'id' => 'account_edit_shipping_address',
1992 1716 'title' => esc_html__( 'Edit Shipping Address', 'shopbuilder' ),
1993 - 'category' => 'myaccount_dashboard',
1994 - 'is_front_page' => 'all_myaccount_dashboard_inner',
1995 - 'active' => 'on',
1996 - 'package' => $this->pro_package(),
1997 - 'fields' => [],
1998 - ]
1999 - ),
2000 - 'account_payment_methods' => apply_filters(
2001 - 'rtsb/elements/account_payment_methods/options',
2002 - [
2003 - 'id' => 'account_payment_methods',
2004 - 'title' => esc_html__( 'Payment Methods', 'shopbuilder' ),
2005 - 'category' => 'myaccount_dashboard',
2006 - 'is_front_page' => 'all_myaccount_dashboard_inner',
2007 - 'active' => 'on',
2008 - 'package' => $this->pro_package(),
2009 - 'fields' => [],
2010 - ]
2011 - ),
2012 - 'account_add_payment_method' => apply_filters(
2013 - 'rtsb/elements/account_add_payment_method/options',
2014 - [
2015 - 'id' => 'account_add_payment_method',
2016 - 'title' => esc_html__( 'Add Payment Method', 'shopbuilder' ),
2017 1717 'category' => 'myaccount_dashboard',
2018 1718 'is_front_page' => 'all_myaccount_dashboard_inner',
2019 1719 'active' => 'on',
2020 1720 'package' => $this->pro_package(),