| @@ -11,9 +11,9 @@ | ||
| 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\Fns; | |
| 15 | +use RadiusTheme\SB\Helpers\SvgIcons; | |
| 16 | 16 | use RadiusTheme\SB\Models\Base\ListModel; |
| 17 | 17 | use RadiusTheme\SB\Traits\SingletonTrait; |
| 18 | 18 | use RadiusTheme\SBPRO\Elementor\Widgets\Checkout as CheckoutPro; |
| 19 | 19 | |
| @@ -50,9 +50,9 @@ | ||
| 50 | 50 | 'shop' => [ |
| 51 | 51 | 'title' => esc_html__( 'Shop / Archive', 'shopbuilder' ), |
| 52 | 52 | ], |
| 53 | 53 | 'product' => [ |
| 54 | - 'title' => esc_html__( 'Single', 'shopbuilder' ), | |
| 54 | + 'title' => esc_html__( 'Product Page', 'shopbuilder' ), | |
| 55 | 55 | ], |
| 56 | 56 | 'quick_view' => [ |
| 57 | 57 | 'title' => esc_html__( 'Quick View', 'shopbuilder' ), |
| 58 | 58 | ], |
| @@ -88,15 +88,191 @@ | ||
| 88 | 88 | + $this->shop_archive_page_widget_list() |
| 89 | 89 | + $this->cart_page_widget_list() |
| 90 | 90 | + $this->checkout_page_widget_list() |
| 91 | 91 | + $this->thankyou_page_widget_list() |
| 92 | + + $this->orderpay_page_widget_list() | |
| 92 | 93 | + $this->my_account_page_widget_list() |
| 93 | 94 | + $this->myaccount_auth_page_widget_list(); |
| 94 | 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 | + | |
| 95 | 103 | return apply_filters( 'rtsb/core/elements/raw_list', $list ); |
| 96 | 104 | } |
| 97 | 105 | |
| 98 | 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_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 | + /** | |
| 99 | 275 | * GLobal Widget List. |
| 100 | 276 | * |
| 101 | 277 | * @return array |
| 102 | 278 | */ |
| @@ -125,9 +301,8 @@ | ||
| 125 | 301 | 'package' => 'free', |
| 126 | 302 | 'fields' => [], |
| 127 | 303 | ] |
| 128 | 304 | ), |
| 129 | - | |
| 130 | 305 | 'products_slider' => apply_filters( |
| 131 | 306 | 'rtsb/elements/products_slider/options', |
| 132 | 307 | [ |
| 133 | 308 | 'id' => 'products_slider', |
| @@ -138,9 +313,19 @@ | ||
| 138 | 313 | 'package' => 'free', |
| 139 | 314 | 'fields' => [], |
| 140 | 315 | ] |
| 141 | 316 | ), |
| 142 | - | |
| 317 | + 'highlighted_product' => apply_filters( | |
| 318 | + 'rtsb/elements/highlighted_product/options', | |
| 319 | + [ | |
| 320 | + 'id' => 'highlighted_product', | |
| 321 | + 'title' => esc_html__( 'Highlighted Product', 'shopbuilder' ), | |
| 322 | + 'category' => 'general', | |
| 323 | + 'active' => '', | |
| 324 | + 'package' => $this->pro_package(), | |
| 325 | + 'fields' => [], | |
| 326 | + ] | |
| 327 | + ), | |
| 143 | 328 | 'products_single_cateogory' => apply_filters( |
| 144 | 329 | 'rtsb/elements/products_single_cateogory/options', |
| 145 | 330 | [ |
| 146 | 331 | 'id' => 'products_single_cateogory', |
| @@ -163,8 +348,42 @@ | ||
| 163 | 348 | 'package' => 'free', |
| 164 | 349 | 'fields' => [], |
| 165 | 350 | ] |
| 166 | 351 | ), |
| 352 | + 'product_lookbook' => apply_filters( | |
| 353 | + 'rtsb/elements/product_lookbook/options', | |
| 354 | + [ | |
| 355 | + 'id' => 'product_lookbook', | |
| 356 | + 'title' => esc_html__( 'Product LookBook', 'shopbuilder' ), | |
| 357 | + 'category' => 'general', | |
| 358 | + 'active' => '', | |
| 359 | + 'package' => $this->pro_package(), | |
| 360 | + 'fields' => [], | |
| 361 | + ] | |
| 362 | + ), | |
| 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 | + 'rtsb_wishlist' => apply_filters( | |
| 375 | + 'rtsb/elements/rtsb_wishlist/options', | |
| 376 | + [ | |
| 377 | + 'id' => 'rtsb_wishlist', | |
| 378 | + 'title' => esc_html__( 'Wishlist Table', 'shopbuilder' ), | |
| 379 | + 'base_class' => General\Wishlist::class, | |
| 380 | + 'category' => 'general', | |
| 381 | + 'active' => 'on', | |
| 382 | + 'package' => 'free', | |
| 383 | + 'fields' => [], | |
| 384 | + ] | |
| 385 | + ), | |
| 167 | 386 | 'social_share' => apply_filters( |
| 168 | 387 | 'rtsb/elements/social_share/options', |
| 169 | 388 | [ |
| 170 | 389 | 'id' => 'social_share', |
| @@ -199,14 +418,14 @@ | ||
| 199 | 418 | 'package' => 'free', |
| 200 | 419 | 'fields' => [], |
| 201 | 420 | ] |
| 202 | 421 | ), |
| 203 | - 'rtsb_wishlist' => apply_filters( | |
| 204 | - 'rtsb/elements/rtsb_wishlist/options', | |
| 422 | + 'advanced_heading' => apply_filters( | |
| 423 | + 'rtsb/elements/advanced_heading/options', | |
| 205 | 424 | [ |
| 206 | - 'id' => 'rtsb_wishlist', | |
| 207 | - 'title' => esc_html__( 'Wishlist Table', 'shopbuilder' ), | |
| 208 | - 'base_class' => General\Wishlist::class, | |
| 425 | + 'id' => 'advanced_heading', | |
| 426 | + 'title' => esc_html__( 'Advanced Heading', 'shopbuilder' ), | |
| 427 | + 'base_class' => General\AdvancedHeading\AdvancedHeading::class, | |
| 209 | 428 | 'category' => 'general', |
| 210 | 429 | 'active' => 'on', |
| 211 | 430 | 'package' => 'free', |
| 212 | 431 | 'fields' => [], |
| @@ -211,13 +430,85 @@ | ||
| 211 | 430 | 'package' => 'free', |
| 212 | 431 | 'fields' => [], |
| 213 | 432 | ] |
| 214 | 433 | ), |
| 215 | - 'highlighted_product' => apply_filters( | |
| 216 | - 'rtsb/elements/highlighted_product/options', | |
| 434 | + 'dropcaps' => apply_filters( | |
| 435 | + 'rtsb/elements/dropcaps/options', | |
| 217 | 436 | [ |
| 218 | - 'id' => 'highlighted_product', | |
| 219 | - 'title' => esc_html__( 'Highlighted Product', 'shopbuilder' ), | |
| 437 | + 'id' => 'dropcaps', | |
| 438 | + 'title' => esc_html__( 'Dropcaps', 'shopbuilder' ), | |
| 439 | + 'base_class' => General\DropCaps\DropCaps::class, | |
| 440 | + 'category' => 'general', | |
| 441 | + 'active' => 'on', | |
| 442 | + 'package' => 'free', | |
| 443 | + 'fields' => [], | |
| 444 | + ] | |
| 445 | + ), | |
| 446 | + 'shopbuilder_button' => apply_filters( | |
| 447 | + 'rtsb/elements/shopbuilder_button/options', | |
| 448 | + [ | |
| 449 | + 'id' => 'shopbuilder_button', | |
| 450 | + 'title' => esc_html__( 'Advanced Button', 'shopbuilder' ), | |
| 451 | + 'base_class' => General\ShopBuilderButton\ShopBuilderButton::class, | |
| 452 | + 'category' => 'general', | |
| 453 | + 'active' => 'on', | |
| 454 | + 'package' => 'free', | |
| 455 | + 'fields' => [], | |
| 456 | + ] | |
| 457 | + ), | |
| 458 | + 'shopbuilder_cta' => apply_filters( | |
| 459 | + 'rtsb/elements/shopbuilder_cta/options', | |
| 460 | + [ | |
| 461 | + 'id' => 'shopbuilder_cta', | |
| 462 | + 'title' => esc_html__( 'Call To Action', 'shopbuilder' ), | |
| 463 | + 'base_class' => General\CallToAction\CallToAction::class, | |
| 464 | + 'category' => 'general', | |
| 465 | + 'active' => 'on', | |
| 466 | + 'package' => 'free', | |
| 467 | + 'fields' => [], | |
| 468 | + ] | |
| 469 | + ), | |
| 470 | + 'shopbuilder_info_box' => apply_filters( | |
| 471 | + 'rtsb/elements/shopbuilder_info_box/options', | |
| 472 | + [ | |
| 473 | + 'id' => 'shopbuilder_info_box', | |
| 474 | + 'title' => esc_html__( 'Info Box', 'shopbuilder' ), | |
| 475 | + 'base_class' => General\InfoBox\InfoBox::class, | |
| 476 | + 'category' => 'general', | |
| 477 | + 'active' => 'on', | |
| 478 | + 'package' => 'free', | |
| 479 | + 'fields' => [], | |
| 480 | + ] | |
| 481 | + ), | |
| 482 | + 'shopbuilder_flip_box' => apply_filters( | |
| 483 | + 'rtsb/elements/shopbuilder_flip_box/options', | |
| 484 | + [ | |
| 485 | + 'id' => 'shopbuilder_flip_box', | |
| 486 | + 'title' => esc_html__( 'Flip Box', 'shopbuilder' ), | |
| 487 | + 'base_class' => General\FlipBox\FlipBox::class, | |
| 488 | + 'category' => 'general', | |
| 489 | + 'active' => 'on', | |
| 490 | + 'package' => 'free', | |
| 491 | + 'fields' => [], | |
| 492 | + ] | |
| 493 | + ), | |
| 494 | + 'shopbuilder_pricing_table' => apply_filters( | |
| 495 | + 'rtsb/elements/shopbuilder_pricing_table/options', | |
| 496 | + [ | |
| 497 | + 'id' => 'shopbuilder_pricing_table', | |
| 498 | + 'title' => esc_html__( 'Pricing Table', 'shopbuilder' ), | |
| 499 | + 'base_class' => General\PricingTable\PricingTable::class, | |
| 500 | + 'category' => 'general', | |
| 501 | + 'active' => 'on', | |
| 502 | + 'package' => 'free', | |
| 503 | + 'fields' => [], | |
| 504 | + ] | |
| 505 | + ), | |
| 506 | + 'image_hotspots' => apply_filters( | |
| 507 | + 'rtsb/elements/image_hotspots/options', | |
| 508 | + [ | |
| 509 | + 'id' => 'image_hotspots', | |
| 510 | + 'title' => esc_html__( 'Image Hotspots', 'shopbuilder' ), | |
| 220 | 511 | 'category' => 'general', |
| 221 | 512 | 'active' => '', |
| 222 | 513 | 'package' => $this->pro_package(), |
| 223 | 514 | 'fields' => [], |
| @@ -222,11 +513,173 @@ | ||
| 222 | 513 | 'package' => $this->pro_package(), |
| 223 | 514 | 'fields' => [], |
| 224 | 515 | ] |
| 225 | 516 | ), |
| 226 | - | |
| 517 | + 'coupon_list' => apply_filters( | |
| 518 | + 'rtsb/elements/coupon_list/options', | |
| 519 | + [ | |
| 520 | + 'id' => 'coupon_list', | |
| 521 | + 'title' => esc_html__( 'Coupon List', 'shopbuilder' ), | |
| 522 | + 'category' => 'general', | |
| 523 | + 'active' => '', | |
| 524 | + 'package' => $this->pro_package(), | |
| 525 | + 'fields' => [], | |
| 526 | + ] | |
| 527 | + ), | |
| 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 | + 'shopbuilder_counter' => apply_filters( | |
| 540 | + 'rtsb/elements/shopbuilder_counter/options', | |
| 541 | + [ | |
| 542 | + 'id' => 'shopbuilder_counter', | |
| 543 | + 'title' => esc_html__( 'Fun Facts', 'shopbuilder' ), | |
| 544 | + 'base_class' => General\Counter\Counter::class, | |
| 545 | + 'category' => 'general', | |
| 546 | + 'active' => 'on', | |
| 547 | + 'package' => 'free', | |
| 548 | + 'fields' => [], | |
| 549 | + ] | |
| 550 | + ), | |
| 551 | + 'shopbuilder_countdown' => apply_filters( | |
| 552 | + 'rtsb/elements/shopbuilder_countdown/options', | |
| 553 | + [ | |
| 554 | + 'id' => 'shopbuilder_countdown', | |
| 555 | + 'title' => esc_html__( 'Countdown', 'shopbuilder' ), | |
| 556 | + 'base_class' => General\CountDown\CountDown::class, | |
| 557 | + 'category' => 'general', | |
| 558 | + 'active' => 'on', | |
| 559 | + 'package' => 'free', | |
| 560 | + 'fields' => [], | |
| 561 | + ] | |
| 562 | + ), | |
| 563 | + 'shopbuilder_progress_bar' => apply_filters( | |
| 564 | + 'rtsb/elements/shopbuilder_progress_bar/options', | |
| 565 | + [ | |
| 566 | + 'id' => 'shopbuilder_progress_bar', | |
| 567 | + 'title' => esc_html__( 'Progress Bar', 'shopbuilder' ), | |
| 568 | + 'base_class' => General\ProgressBar\ProgressBar::class, | |
| 569 | + 'category' => 'general', | |
| 570 | + 'active' => 'on', | |
| 571 | + 'package' => 'free', | |
| 572 | + 'fields' => [], | |
| 573 | + ] | |
| 574 | + ), | |
| 575 | + 'image_accordion' => apply_filters( | |
| 576 | + 'rtsb/elements/image_accordion/options', | |
| 577 | + [ | |
| 578 | + 'id' => 'image_accordion', | |
| 579 | + 'title' => esc_html__( 'Image Accordion', 'shopbuilder' ), | |
| 580 | + 'base_class' => General\ImageAccordion\ImageAccordion::class, | |
| 581 | + 'category' => 'general', | |
| 582 | + 'active' => 'on', | |
| 583 | + 'package' => 'free', | |
| 584 | + 'fields' => [], | |
| 585 | + ] | |
| 586 | + ), | |
| 587 | + 'shopbuilder_faq' => apply_filters( | |
| 588 | + 'rtsb/elements/shopbuilder_faq/options', | |
| 589 | + [ | |
| 590 | + 'id' => 'shopbuilder_faq', | |
| 591 | + 'title' => esc_html__( 'FAQ', 'shopbuilder' ), | |
| 592 | + 'base_class' => General\ShopBuilderFaq\ShopBuilderFaq::class, | |
| 593 | + 'category' => 'general', | |
| 594 | + 'active' => 'on', | |
| 595 | + 'package' => 'free', | |
| 596 | + 'fields' => [], | |
| 597 | + ] | |
| 598 | + ), | |
| 599 | + 'logo_slider_and_grid' => apply_filters( | |
| 600 | + 'rtsb/elements/logo_slider_and_grid/options', | |
| 601 | + [ | |
| 602 | + 'id' => 'logo_slider_and_grid', | |
| 603 | + 'title' => esc_html__( 'Logo Slider and Grid', 'shopbuilder' ), | |
| 604 | + 'base_class' => General\LogoSliderAndGrid\LogoSliderAndGrid::class, | |
| 605 | + 'category' => 'general', | |
| 606 | + 'active' => 'on', | |
| 607 | + 'package' => 'free', | |
| 608 | + 'fields' => [], | |
| 609 | + ] | |
| 610 | + ), | |
| 611 | + 'testimonial' => apply_filters( | |
| 612 | + 'rtsb/elements/testimonial/options', | |
| 613 | + [ | |
| 614 | + 'id' => 'testimonial', | |
| 615 | + 'title' => esc_html__( 'Testimonials', 'shopbuilder' ), | |
| 616 | + 'base_class' => General\Testimonial\Testimonial::class, | |
| 617 | + 'category' => 'general', | |
| 618 | + 'active' => 'on', | |
| 619 | + 'package' => 'free', | |
| 620 | + 'fields' => [], | |
| 621 | + ] | |
| 622 | + ), | |
| 623 | + 'team_member' => apply_filters( | |
| 624 | + 'rtsb/elements/team_member/options', | |
| 625 | + [ | |
| 626 | + 'id' => 'team_member', | |
| 627 | + 'title' => esc_html__( 'Team Members', 'shopbuilder' ), | |
| 628 | + 'base_class' => General\TeamMember\TeamMember::class, | |
| 629 | + 'category' => 'general', | |
| 630 | + 'active' => 'on', | |
| 631 | + 'package' => 'free', | |
| 632 | + 'fields' => [], | |
| 633 | + ] | |
| 634 | + ), | |
| 635 | + 'post_grid' => apply_filters( | |
| 636 | + 'rtsb/elements/post_grid/options', | |
| 637 | + [ | |
| 638 | + 'id' => 'post_grid', | |
| 639 | + 'title' => esc_html__( 'Post Grid', 'shopbuilder' ), | |
| 640 | + 'base_class' => General\PostGrid\PostGrid::class, | |
| 641 | + 'category' => 'general', | |
| 642 | + 'active' => 'on', | |
| 643 | + 'package' => 'free', | |
| 644 | + 'fields' => [], | |
| 645 | + ] | |
| 646 | + ), | |
| 647 | + 'post_list' => apply_filters( | |
| 648 | + 'rtsb/elements/post_list/options', | |
| 649 | + [ | |
| 650 | + 'id' => 'post_list', | |
| 651 | + 'title' => esc_html__( 'Post List', 'shopbuilder' ), | |
| 652 | + 'base_class' => General\PostList\PostList::class, | |
| 653 | + 'category' => 'general', | |
| 654 | + 'active' => 'on', | |
| 655 | + 'package' => 'free', | |
| 656 | + 'fields' => [], | |
| 657 | + ] | |
| 658 | + ), | |
| 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 | + ), | |
| 227 | 681 | ]; |
| 228 | - | |
| 229 | 682 | return apply_filters( 'rtsb/core/elements/general/widget_list', $list ); |
| 230 | 683 | } |
| 231 | 684 | |
| 232 | 685 | /** |
| @@ -506,8 +959,19 @@ | ||
| 506 | 959 | 'package' => $this->pro_package(), |
| 507 | 960 | 'fields' => [], |
| 508 | 961 | ] |
| 509 | 962 | ), |
| 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 | + ), | |
| 510 | 974 | 'product_reviews' => apply_filters( |
| 511 | 975 | 'rtsb/elements/product_reviews/options', |
| 512 | 976 | [ |
| 513 | 977 | 'id' => 'product_reviews', |
| @@ -924,8 +1388,20 @@ | ||
| 924 | 1388 | 'package' => $this->pro_package(), |
| 925 | 1389 | 'fields' => [], |
| 926 | 1390 | ] |
| 927 | 1391 | ), |
| 1392 | + 'product_filters' => apply_filters( | |
| 1393 | + 'rtsb/elements/product_filters/options', | |
| 1394 | + [ | |
| 1395 | + 'id' => 'product_filters', | |
| 1396 | + 'title' => esc_html__( 'Product Filters', 'shopbuilder' ), | |
| 1397 | + 'base_class' => Archive\ProductFilters\ProductFilters::class, | |
| 1398 | + 'category' => 'shop', | |
| 1399 | + 'active' => 'on', | |
| 1400 | + 'package' => 'free', | |
| 1401 | + 'fields' => [], | |
| 1402 | + ] | |
| 1403 | + ), | |
| 928 | 1404 | |
| 929 | 1405 | 'archive_result_count' => apply_filters( |
| 930 | 1406 | 'rtsb/elements/archive_result_count/options', |
| 931 | 1407 | [ |
| @@ -1044,8 +1520,20 @@ | ||
| 1044 | 1520 | 'package' => 'free', |
| 1045 | 1521 | 'fields' => [], |
| 1046 | 1522 | ] |
| 1047 | 1523 | ), |
| 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 | + ), | |
| 1048 | 1536 | ]; |
| 1049 | 1537 | |
| 1050 | 1538 | return apply_filters( 'rtsb/core/elements/cart/widget_list', $list ); |
| 1051 | 1539 | } |
| @@ -1164,9 +1652,8 @@ | ||
| 1164 | 1652 | 'package' => $this->pro_package(), |
| 1165 | 1653 | 'fields' => [], |
| 1166 | 1654 | ] |
| 1167 | 1655 | ), |
| 1168 | - | |
| 1169 | 1656 | ]; |
| 1170 | 1657 | |
| 1171 | 1658 | return apply_filters( 'rtsb/core/elements/checkout/widget_list', $list ); |
| 1172 | 1659 | } |
| @@ -1177,9 +1664,9 @@ | ||
| 1177 | 1664 | * @return array |
| 1178 | 1665 | */ |
| 1179 | 1666 | protected function thankyou_page_widget_list() { |
| 1180 | 1667 | return [ |
| 1181 | - 'order_received_text' => apply_filters( | |
| 1668 | + 'order_received_text' => apply_filters( | |
| 1182 | 1669 | 'rtsb/elements/order_received_text/options', |
| 1183 | 1670 | [ |
| 1184 | 1671 | 'id' => 'order_received_text', |
| 1185 | 1672 | 'title' => esc_html__( 'Order Received Text', 'shopbuilder' ), |
| @@ -1189,9 +1676,9 @@ | ||
| 1189 | 1676 | 'package' => $this->pro_package(), |
| 1190 | 1677 | 'fields' => [], |
| 1191 | 1678 | ] |
| 1192 | 1679 | ), |
| 1193 | - 'order_details_summary' => apply_filters( | |
| 1680 | + 'order_details_summary' => apply_filters( | |
| 1194 | 1681 | 'rtsb/elements/order_details_summary/options', |
| 1195 | 1682 | [ |
| 1196 | 1683 | 'id' => 'order_details_summary', |
| 1197 | 1684 | 'title' => esc_html__( 'Order Details Summary', 'shopbuilder' ), |
| @@ -1201,9 +1688,9 @@ | ||
| 1201 | 1688 | 'package' => $this->pro_package(), |
| 1202 | 1689 | 'fields' => [], |
| 1203 | 1690 | ] |
| 1204 | 1691 | ), |
| 1205 | - 'order_details_table' => apply_filters( | |
| 1692 | + 'order_details_table' => apply_filters( | |
| 1206 | 1693 | 'rtsb/elements/order_details_table/options', |
| 1207 | 1694 | [ |
| 1208 | 1695 | 'id' => 'order_details_table', |
| 1209 | 1696 | 'title' => esc_html__( 'Order Details Table', 'shopbuilder' ), |
| @@ -1213,9 +1700,9 @@ | ||
| 1213 | 1700 | 'package' => $this->pro_package(), |
| 1214 | 1701 | 'fields' => [], |
| 1215 | 1702 | ] |
| 1216 | 1703 | ), |
| 1217 | - 'downloadable_products' => apply_filters( | |
| 1704 | + 'downloadable_products' => apply_filters( | |
| 1218 | 1705 | 'rtsb/elements/downloadable_products/options', |
| 1219 | 1706 | [ |
| 1220 | 1707 | 'id' => 'downloadable_products', |
| 1221 | 1708 | 'title' => esc_html__( 'Downloadable Products', 'shopbuilder' ), |
| @@ -1225,9 +1712,9 @@ | ||
| 1225 | 1712 | 'package' => $this->pro_package(), |
| 1226 | 1713 | 'fields' => [], |
| 1227 | 1714 | ] |
| 1228 | 1715 | ), |
| 1229 | - 'order_billing_address' => apply_filters( | |
| 1716 | + 'order_billing_address' => apply_filters( | |
| 1230 | 1717 | 'rtsb/elements/order_billing_address/options', |
| 1231 | 1718 | [ |
| 1232 | 1719 | 'id' => 'order_billing_address', |
| 1233 | 1720 | 'title' => esc_html__( 'Order Billing Address', 'shopbuilder' ), |
| @@ -1237,9 +1724,9 @@ | ||
| 1237 | 1724 | 'package' => $this->pro_package(), |
| 1238 | 1725 | 'fields' => [], |
| 1239 | 1726 | ] |
| 1240 | 1727 | ), |
| 1241 | - 'order_shipping_address' => apply_filters( | |
| 1728 | + 'order_shipping_address' => apply_filters( | |
| 1242 | 1729 | 'rtsb/elements/order_shipping_address/options', |
| 1243 | 1730 | [ |
| 1244 | 1731 | 'id' => 'order_shipping_address', |
| 1245 | 1732 | 'title' => esc_html__( 'Order Shipping Address', 'shopbuilder' ), |
| @@ -1249,11 +1736,45 @@ | ||
| 1249 | 1736 | 'package' => $this->pro_package(), |
| 1250 | 1737 | 'fields' => [], |
| 1251 | 1738 | ] |
| 1252 | 1739 | ), |
| 1740 | + 'order_custom_fields_data' => apply_filters( | |
| 1741 | + 'rtsb/elements/order_custom_fields_data/options', | |
| 1742 | + [ | |
| 1743 | + 'id' => 'order_custom_fields_data', | |
| 1744 | + 'title' => esc_html__( 'Checkout Form Custom Fields Data', 'shopbuilder' ), | |
| 1745 | + 'category' => 'thank_you', | |
| 1746 | + 'is_front_page' => 'thank_you', | |
| 1747 | + 'active' => 'on', | |
| 1748 | + 'package' => $this->pro_package(), | |
| 1749 | + 'fields' => [], | |
| 1750 | + ] | |
| 1751 | + ), | |
| 1253 | 1752 | ]; |
| 1254 | 1753 | } |
| 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 | + ), | |
| 1255 | 1773 | |
| 1774 | + ]; | |
| 1775 | + } | |
| 1776 | + | |
| 1256 | 1777 | /** |
| 1257 | 1778 | * Checkout Page Widget List. |
| 1258 | 1779 | * |
| 1259 | 1780 | * @return array |
| @@ -1259,8 +1780,20 @@ | ||
| 1259 | 1780 | * @return array |
| 1260 | 1781 | */ |
| 1261 | 1782 | protected function my_account_page_widget_list() { |
| 1262 | 1783 | $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 | + ), | |
| 1263 | 1796 | 'account_navigation_edit_shipping' => apply_filters( |
| 1264 | 1797 | 'rtsb/elements/account_navigation_edit_shipping/options', |
| 1265 | 1798 | [ |
| 1266 | 1799 | 'id' => 'account_navigation_edit_shipping', |
| @@ -1456,8 +1989,32 @@ | ||
| 1456 | 1989 | 'rtsb/elements/account_edit_shipping_address/options', |
| 1457 | 1990 | [ |
| 1458 | 1991 | 'id' => 'account_edit_shipping_address', |
| 1459 | 1992 | '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' ), | |
| 1460 | 2017 | 'category' => 'myaccount_dashboard', |
| 1461 | 2018 | 'is_front_page' => 'all_myaccount_dashboard_inner', |
| 1462 | 2019 | 'active' => 'on', |
| 1463 | 2020 | 'package' => $this->pro_package(), |