| @@ -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\Fns; | |
| 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 | |
| @@ -88,8 +87,9 @@ | ||
| 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() |
| 91 | + + $this->orderpay_page_widget_list() | |
| 92 | 92 | + $this->my_account_page_widget_list() |
| 93 | 93 | + $this->myaccount_auth_page_widget_list(); |
| 94 | 94 | |
| 95 | 95 | return apply_filters( 'rtsb/core/elements/raw_list', $list ); |
| @@ -125,9 +125,8 @@ | ||
| 125 | 125 | 'package' => 'free', |
| 126 | 126 | 'fields' => [], |
| 127 | 127 | ] |
| 128 | 128 | ), |
| 129 | - | |
| 130 | 129 | 'products_slider' => apply_filters( |
| 131 | 130 | 'rtsb/elements/products_slider/options', |
| 132 | 131 | [ |
| 133 | 132 | 'id' => 'products_slider', |
| @@ -138,9 +137,19 @@ | ||
| 138 | 137 | 'package' => 'free', |
| 139 | 138 | 'fields' => [], |
| 140 | 139 | ] |
| 141 | 140 | ), |
| 142 | - | |
| 141 | + 'highlighted_product' => apply_filters( | |
| 142 | + 'rtsb/elements/highlighted_product/options', | |
| 143 | + [ | |
| 144 | + 'id' => 'highlighted_product', | |
| 145 | + 'title' => esc_html__( 'Highlighted Product', 'shopbuilder' ), | |
| 146 | + 'category' => 'general', | |
| 147 | + 'active' => '', | |
| 148 | + 'package' => $this->pro_package(), | |
| 149 | + 'fields' => [], | |
| 150 | + ] | |
| 151 | + ), | |
| 143 | 152 | 'products_single_cateogory' => apply_filters( |
| 144 | 153 | 'rtsb/elements/products_single_cateogory/options', |
| 145 | 154 | [ |
| 146 | 155 | 'id' => 'products_single_cateogory', |
| @@ -163,8 +172,31 @@ | ||
| 163 | 172 | 'package' => 'free', |
| 164 | 173 | 'fields' => [], |
| 165 | 174 | ] |
| 166 | 175 | ), |
| 176 | + 'product_lookbook' => apply_filters( | |
| 177 | + 'rtsb/elements/product_lookbook/options', | |
| 178 | + [ | |
| 179 | + 'id' => 'product_lookbook', | |
| 180 | + 'title' => esc_html__( 'Product LookBook', 'shopbuilder' ), | |
| 181 | + 'category' => 'general', | |
| 182 | + 'active' => '', | |
| 183 | + 'package' => $this->pro_package(), | |
| 184 | + 'fields' => [], | |
| 185 | + ] | |
| 186 | + ), | |
| 187 | + 'rtsb_wishlist' => apply_filters( | |
| 188 | + 'rtsb/elements/rtsb_wishlist/options', | |
| 189 | + [ | |
| 190 | + 'id' => 'rtsb_wishlist', | |
| 191 | + 'title' => esc_html__( 'Wishlist Table', 'shopbuilder' ), | |
| 192 | + 'base_class' => General\Wishlist::class, | |
| 193 | + 'category' => 'general', | |
| 194 | + 'active' => 'on', | |
| 195 | + 'package' => 'free', | |
| 196 | + 'fields' => [], | |
| 197 | + ] | |
| 198 | + ), | |
| 167 | 199 | 'social_share' => apply_filters( |
| 168 | 200 | 'rtsb/elements/social_share/options', |
| 169 | 201 | [ |
| 170 | 202 | 'id' => 'social_share', |
| @@ -199,14 +231,14 @@ | ||
| 199 | 231 | 'package' => 'free', |
| 200 | 232 | 'fields' => [], |
| 201 | 233 | ] |
| 202 | 234 | ), |
| 203 | - 'rtsb_wishlist' => apply_filters( | |
| 204 | - 'rtsb/elements/rtsb_wishlist/options', | |
| 235 | + 'advanced_heading' => apply_filters( | |
| 236 | + 'rtsb/elements/advanced_heading/options', | |
| 205 | 237 | [ |
| 206 | - 'id' => 'rtsb_wishlist', | |
| 207 | - 'title' => esc_html__( 'Wishlist Table', 'shopbuilder' ), | |
| 208 | - 'base_class' => General\Wishlist::class, | |
| 238 | + 'id' => 'advanced_heading', | |
| 239 | + 'title' => esc_html__( 'Advanced Heading', 'shopbuilder' ), | |
| 240 | + 'base_class' => General\AdvancedHeading\AdvancedHeading::class, | |
| 209 | 241 | 'category' => 'general', |
| 210 | 242 | 'active' => 'on', |
| 211 | 243 | 'package' => 'free', |
| 212 | 244 | 'fields' => [], |
| @@ -211,13 +243,85 @@ | ||
| 211 | 243 | 'package' => 'free', |
| 212 | 244 | 'fields' => [], |
| 213 | 245 | ] |
| 214 | 246 | ), |
| 215 | - 'highlighted_product' => apply_filters( | |
| 216 | - 'rtsb/elements/highlighted_product/options', | |
| 247 | + 'dropcaps' => apply_filters( | |
| 248 | + 'rtsb/elements/dropcaps/options', | |
| 217 | 249 | [ |
| 218 | - 'id' => 'highlighted_product', | |
| 219 | - 'title' => esc_html__( 'Highlighted Product', 'shopbuilder' ), | |
| 250 | + 'id' => 'dropcaps', | |
| 251 | + 'title' => esc_html__( 'Dropcaps', 'shopbuilder' ), | |
| 252 | + 'base_class' => General\DropCaps\DropCaps::class, | |
| 253 | + 'category' => 'general', | |
| 254 | + 'active' => 'on', | |
| 255 | + 'package' => 'free', | |
| 256 | + 'fields' => [], | |
| 257 | + ] | |
| 258 | + ), | |
| 259 | + 'shopbuilder_button' => apply_filters( | |
| 260 | + 'rtsb/elements/shopbuilder_button/options', | |
| 261 | + [ | |
| 262 | + 'id' => 'shopbuilder_button', | |
| 263 | + 'title' => esc_html__( 'Advanced Button', 'shopbuilder' ), | |
| 264 | + 'base_class' => General\ShopBuilderButton\ShopBuilderButton::class, | |
| 265 | + 'category' => 'general', | |
| 266 | + 'active' => 'on', | |
| 267 | + 'package' => 'free', | |
| 268 | + 'fields' => [], | |
| 269 | + ] | |
| 270 | + ), | |
| 271 | + 'shopbuilder_cta' => apply_filters( | |
| 272 | + 'rtsb/elements/shopbuilder_cta/options', | |
| 273 | + [ | |
| 274 | + 'id' => 'shopbuilder_cta', | |
| 275 | + 'title' => esc_html__( 'Call To Action', 'shopbuilder' ), | |
| 276 | + 'base_class' => General\CallToAction\CallToAction::class, | |
| 277 | + 'category' => 'general', | |
| 278 | + 'active' => 'on', | |
| 279 | + 'package' => 'free', | |
| 280 | + 'fields' => [], | |
| 281 | + ] | |
| 282 | + ), | |
| 283 | + 'shopbuilder_info_box' => apply_filters( | |
| 284 | + 'rtsb/elements/shopbuilder_info_box/options', | |
| 285 | + [ | |
| 286 | + 'id' => 'shopbuilder_info_box', | |
| 287 | + 'title' => esc_html__( 'Info Box', 'shopbuilder' ), | |
| 288 | + 'base_class' => General\InfoBox\InfoBox::class, | |
| 289 | + 'category' => 'general', | |
| 290 | + 'active' => 'on', | |
| 291 | + 'package' => 'free', | |
| 292 | + 'fields' => [], | |
| 293 | + ] | |
| 294 | + ), | |
| 295 | + 'shopbuilder_flip_box' => apply_filters( | |
| 296 | + 'rtsb/elements/shopbuilder_flip_box/options', | |
| 297 | + [ | |
| 298 | + 'id' => 'shopbuilder_flip_box', | |
| 299 | + 'title' => esc_html__( 'Flip Box', 'shopbuilder' ), | |
| 300 | + 'base_class' => General\FlipBox\FlipBox::class, | |
| 301 | + 'category' => 'general', | |
| 302 | + 'active' => 'on', | |
| 303 | + 'package' => 'free', | |
| 304 | + 'fields' => [], | |
| 305 | + ] | |
| 306 | + ), | |
| 307 | + 'shopbuilder_pricing_table' => apply_filters( | |
| 308 | + 'rtsb/elements/shopbuilder_pricing_table/options', | |
| 309 | + [ | |
| 310 | + 'id' => 'shopbuilder_pricing_table', | |
| 311 | + 'title' => esc_html__( 'Pricing Table', 'shopbuilder' ), | |
| 312 | + 'base_class' => General\PricingTable\PricingTable::class, | |
| 313 | + 'category' => 'general', | |
| 314 | + 'active' => 'on', | |
| 315 | + 'package' => 'free', | |
| 316 | + 'fields' => [], | |
| 317 | + ] | |
| 318 | + ), | |
| 319 | + 'image_hotspots' => apply_filters( | |
| 320 | + 'rtsb/elements/image_hotspots/options', | |
| 321 | + [ | |
| 322 | + 'id' => 'image_hotspots', | |
| 323 | + 'title' => esc_html__( 'Image Hotspots', 'shopbuilder' ), | |
| 220 | 324 | 'category' => 'general', |
| 221 | 325 | 'active' => '', |
| 222 | 326 | 'package' => $this->pro_package(), |
| 223 | 327 | 'fields' => [], |
| @@ -222,9 +326,150 @@ | ||
| 222 | 326 | 'package' => $this->pro_package(), |
| 223 | 327 | 'fields' => [], |
| 224 | 328 | ] |
| 225 | 329 | ), |
| 226 | - | |
| 330 | + 'coupon_list' => apply_filters( | |
| 331 | + 'rtsb/elements/coupon_list/options', | |
| 332 | + [ | |
| 333 | + 'id' => 'coupon_list', | |
| 334 | + 'title' => esc_html__( 'Coupon List', 'shopbuilder' ), | |
| 335 | + 'category' => 'general', | |
| 336 | + 'active' => '', | |
| 337 | + 'package' => $this->pro_package(), | |
| 338 | + 'fields' => [], | |
| 339 | + ] | |
| 340 | + ), | |
| 341 | + 'hero_slider' => apply_filters( | |
| 342 | + 'rtsb/elements/hero_slider/options', | |
| 343 | + [ | |
| 344 | + 'id' => 'hero_slider', | |
| 345 | + 'title' => esc_html__( 'Hero Slider', 'shopbuilder' ), | |
| 346 | + 'category' => 'general', | |
| 347 | + 'active' => '', | |
| 348 | + 'package' => $this->pro_package(), | |
| 349 | + 'fields' => [], | |
| 350 | + ] | |
| 351 | + ), | |
| 352 | + 'shopbuilder_counter' => apply_filters( | |
| 353 | + 'rtsb/elements/shopbuilder_counter/options', | |
| 354 | + [ | |
| 355 | + 'id' => 'shopbuilder_counter', | |
| 356 | + 'title' => esc_html__( 'Fun Facts', 'shopbuilder' ), | |
| 357 | + 'base_class' => General\Counter\Counter::class, | |
| 358 | + 'category' => 'general', | |
| 359 | + 'active' => 'on', | |
| 360 | + 'package' => 'free', | |
| 361 | + 'fields' => [], | |
| 362 | + ] | |
| 363 | + ), | |
| 364 | + 'shopbuilder_countdown' => apply_filters( | |
| 365 | + 'rtsb/elements/shopbuilder_countdown/options', | |
| 366 | + [ | |
| 367 | + 'id' => 'shopbuilder_countdown', | |
| 368 | + 'title' => esc_html__( 'Countdown', 'shopbuilder' ), | |
| 369 | + 'base_class' => General\CountDown\CountDown::class, | |
| 370 | + 'category' => 'general', | |
| 371 | + 'active' => 'on', | |
| 372 | + 'package' => 'free', | |
| 373 | + 'fields' => [], | |
| 374 | + ] | |
| 375 | + ), | |
| 376 | + 'shopbuilder_progress_bar' => apply_filters( | |
| 377 | + 'rtsb/elements/shopbuilder_progress_bar/options', | |
| 378 | + [ | |
| 379 | + 'id' => 'shopbuilder_progress_bar', | |
| 380 | + 'title' => esc_html__( 'Progress Bar', 'shopbuilder' ), | |
| 381 | + 'base_class' => General\ProgressBar\ProgressBar::class, | |
| 382 | + 'category' => 'general', | |
| 383 | + 'active' => 'on', | |
| 384 | + 'package' => 'free', | |
| 385 | + 'fields' => [], | |
| 386 | + ] | |
| 387 | + ), | |
| 388 | + 'image_accordion' => apply_filters( | |
| 389 | + 'rtsb/elements/image_accordion/options', | |
| 390 | + [ | |
| 391 | + 'id' => 'image_accordion', | |
| 392 | + 'title' => esc_html__( 'Image Accordion', 'shopbuilder' ), | |
| 393 | + 'base_class' => General\ImageAccordion\ImageAccordion::class, | |
| 394 | + 'category' => 'general', | |
| 395 | + 'active' => 'on', | |
| 396 | + 'package' => 'free', | |
| 397 | + 'fields' => [], | |
| 398 | + ] | |
| 399 | + ), | |
| 400 | + 'shopbuilder_faq' => apply_filters( | |
| 401 | + 'rtsb/elements/shopbuilder_faq/options', | |
| 402 | + [ | |
| 403 | + 'id' => 'shopbuilder_faq', | |
| 404 | + 'title' => esc_html__( 'FAQ', 'shopbuilder' ), | |
| 405 | + 'base_class' => General\ShopBuilderFaq\ShopBuilderFaq::class, | |
| 406 | + 'category' => 'general', | |
| 407 | + 'active' => 'on', | |
| 408 | + 'package' => 'free', | |
| 409 | + 'fields' => [], | |
| 410 | + ] | |
| 411 | + ), | |
| 412 | + 'logo_slider_and_grid' => apply_filters( | |
| 413 | + 'rtsb/elements/logo_slider_and_grid/options', | |
| 414 | + [ | |
| 415 | + 'id' => 'logo_slider_and_grid', | |
| 416 | + 'title' => esc_html__( 'Logo Slider and Grid', 'shopbuilder' ), | |
| 417 | + 'base_class' => General\LogoSliderAndGrid\LogoSliderAndGrid::class, | |
| 418 | + 'category' => 'general', | |
| 419 | + 'active' => 'on', | |
| 420 | + 'package' => 'free', | |
| 421 | + 'fields' => [], | |
| 422 | + ] | |
| 423 | + ), | |
| 424 | + 'testimonial' => apply_filters( | |
| 425 | + 'rtsb/elements/testimonial/options', | |
| 426 | + [ | |
| 427 | + 'id' => 'testimonial', | |
| 428 | + 'title' => esc_html__( 'Testimonials', 'shopbuilder' ), | |
| 429 | + 'base_class' => General\Testimonial\Testimonial::class, | |
| 430 | + 'category' => 'general', | |
| 431 | + 'active' => 'on', | |
| 432 | + 'package' => 'free', | |
| 433 | + 'fields' => [], | |
| 434 | + ] | |
| 435 | + ), | |
| 436 | + 'team_member' => apply_filters( | |
| 437 | + 'rtsb/elements/team_member/options', | |
| 438 | + [ | |
| 439 | + 'id' => 'team_member', | |
| 440 | + 'title' => esc_html__( 'Team Members', 'shopbuilder' ), | |
| 441 | + 'base_class' => General\TeamMember\TeamMember::class, | |
| 442 | + 'category' => 'general', | |
| 443 | + 'active' => 'on', | |
| 444 | + 'package' => 'free', | |
| 445 | + 'fields' => [], | |
| 446 | + ] | |
| 447 | + ), | |
| 448 | + 'post_grid' => apply_filters( | |
| 449 | + 'rtsb/elements/post_grid/options', | |
| 450 | + [ | |
| 451 | + 'id' => 'post_grid', | |
| 452 | + 'title' => esc_html__( 'Post Grid', 'shopbuilder' ), | |
| 453 | + 'base_class' => General\PostGrid\PostGrid::class, | |
| 454 | + 'category' => 'general', | |
| 455 | + 'active' => 'on', | |
| 456 | + 'package' => 'free', | |
| 457 | + 'fields' => [], | |
| 458 | + ] | |
| 459 | + ), | |
| 460 | + 'post_list' => apply_filters( | |
| 461 | + 'rtsb/elements/post_list/options', | |
| 462 | + [ | |
| 463 | + 'id' => 'post_list', | |
| 464 | + 'title' => esc_html__( 'Post List', 'shopbuilder' ), | |
| 465 | + 'base_class' => General\PostList\PostList::class, | |
| 466 | + 'category' => 'general', | |
| 467 | + 'active' => 'on', | |
| 468 | + 'package' => 'free', | |
| 469 | + 'fields' => [], | |
| 470 | + ] | |
| 471 | + ), | |
| 227 | 472 | ]; |
| 228 | 473 | |
| 229 | 474 | return apply_filters( 'rtsb/core/elements/general/widget_list', $list ); |
| 230 | 475 | } |
| @@ -506,8 +751,19 @@ | ||
| 506 | 751 | 'package' => $this->pro_package(), |
| 507 | 752 | 'fields' => [], |
| 508 | 753 | ] |
| 509 | 754 | ), |
| 755 | + 'product_qr_code' => apply_filters( | |
| 756 | + 'rtsb/elements/product_qr_code/options', | |
| 757 | + [ | |
| 758 | + 'id' => 'product_qr_code', | |
| 759 | + 'title' => esc_html__( 'QR Code', 'shopbuilder' ), | |
| 760 | + 'category' => 'product', | |
| 761 | + 'active' => '', | |
| 762 | + 'package' => $this->pro_package(), | |
| 763 | + 'fields' => [], | |
| 764 | + ] | |
| 765 | + ), | |
| 510 | 766 | 'product_reviews' => apply_filters( |
| 511 | 767 | 'rtsb/elements/product_reviews/options', |
| 512 | 768 | [ |
| 513 | 769 | 'id' => 'product_reviews', |
| @@ -924,8 +1180,20 @@ | ||
| 924 | 1180 | 'package' => $this->pro_package(), |
| 925 | 1181 | 'fields' => [], |
| 926 | 1182 | ] |
| 927 | 1183 | ), |
| 1184 | + 'product_filters' => apply_filters( | |
| 1185 | + 'rtsb/elements/product_filters/options', | |
| 1186 | + [ | |
| 1187 | + 'id' => 'product_filters', | |
| 1188 | + 'title' => esc_html__( 'Product Filters', 'shopbuilder' ), | |
| 1189 | + 'base_class' => Archive\ProductFilters::class, | |
| 1190 | + 'category' => 'shop', | |
| 1191 | + 'active' => 'on', | |
| 1192 | + 'package' => 'free', | |
| 1193 | + 'fields' => [], | |
| 1194 | + ] | |
| 1195 | + ), | |
| 928 | 1196 | |
| 929 | 1197 | 'archive_result_count' => apply_filters( |
| 930 | 1198 | 'rtsb/elements/archive_result_count/options', |
| 931 | 1199 | [ |
| @@ -1177,9 +1445,9 @@ | ||
| 1177 | 1445 | * @return array |
| 1178 | 1446 | */ |
| 1179 | 1447 | protected function thankyou_page_widget_list() { |
| 1180 | 1448 | return [ |
| 1181 | - 'order_received_text' => apply_filters( | |
| 1449 | + 'order_received_text' => apply_filters( | |
| 1182 | 1450 | 'rtsb/elements/order_received_text/options', |
| 1183 | 1451 | [ |
| 1184 | 1452 | 'id' => 'order_received_text', |
| 1185 | 1453 | 'title' => esc_html__( 'Order Received Text', 'shopbuilder' ), |
| @@ -1189,9 +1457,9 @@ | ||
| 1189 | 1457 | 'package' => $this->pro_package(), |
| 1190 | 1458 | 'fields' => [], |
| 1191 | 1459 | ] |
| 1192 | 1460 | ), |
| 1193 | - 'order_details_summary' => apply_filters( | |
| 1461 | + 'order_details_summary' => apply_filters( | |
| 1194 | 1462 | 'rtsb/elements/order_details_summary/options', |
| 1195 | 1463 | [ |
| 1196 | 1464 | 'id' => 'order_details_summary', |
| 1197 | 1465 | 'title' => esc_html__( 'Order Details Summary', 'shopbuilder' ), |
| @@ -1201,9 +1469,9 @@ | ||
| 1201 | 1469 | 'package' => $this->pro_package(), |
| 1202 | 1470 | 'fields' => [], |
| 1203 | 1471 | ] |
| 1204 | 1472 | ), |
| 1205 | - 'order_details_table' => apply_filters( | |
| 1473 | + 'order_details_table' => apply_filters( | |
| 1206 | 1474 | 'rtsb/elements/order_details_table/options', |
| 1207 | 1475 | [ |
| 1208 | 1476 | 'id' => 'order_details_table', |
| 1209 | 1477 | 'title' => esc_html__( 'Order Details Table', 'shopbuilder' ), |
| @@ -1213,9 +1481,9 @@ | ||
| 1213 | 1481 | 'package' => $this->pro_package(), |
| 1214 | 1482 | 'fields' => [], |
| 1215 | 1483 | ] |
| 1216 | 1484 | ), |
| 1217 | - 'downloadable_products' => apply_filters( | |
| 1485 | + 'downloadable_products' => apply_filters( | |
| 1218 | 1486 | 'rtsb/elements/downloadable_products/options', |
| 1219 | 1487 | [ |
| 1220 | 1488 | 'id' => 'downloadable_products', |
| 1221 | 1489 | 'title' => esc_html__( 'Downloadable Products', 'shopbuilder' ), |
| @@ -1225,9 +1493,9 @@ | ||
| 1225 | 1493 | 'package' => $this->pro_package(), |
| 1226 | 1494 | 'fields' => [], |
| 1227 | 1495 | ] |
| 1228 | 1496 | ), |
| 1229 | - 'order_billing_address' => apply_filters( | |
| 1497 | + 'order_billing_address' => apply_filters( | |
| 1230 | 1498 | 'rtsb/elements/order_billing_address/options', |
| 1231 | 1499 | [ |
| 1232 | 1500 | 'id' => 'order_billing_address', |
| 1233 | 1501 | 'title' => esc_html__( 'Order Billing Address', 'shopbuilder' ), |
| @@ -1237,9 +1505,9 @@ | ||
| 1237 | 1505 | 'package' => $this->pro_package(), |
| 1238 | 1506 | 'fields' => [], |
| 1239 | 1507 | ] |
| 1240 | 1508 | ), |
| 1241 | - 'order_shipping_address' => apply_filters( | |
| 1509 | + 'order_shipping_address' => apply_filters( | |
| 1242 | 1510 | 'rtsb/elements/order_shipping_address/options', |
| 1243 | 1511 | [ |
| 1244 | 1512 | 'id' => 'order_shipping_address', |
| 1245 | 1513 | 'title' => esc_html__( 'Order Shipping Address', 'shopbuilder' ), |
| @@ -1249,11 +1517,45 @@ | ||
| 1249 | 1517 | 'package' => $this->pro_package(), |
| 1250 | 1518 | 'fields' => [], |
| 1251 | 1519 | ] |
| 1252 | 1520 | ), |
| 1521 | + 'order_custom_fields_data' => apply_filters( | |
| 1522 | + 'rtsb/elements/order_custom_fields_data/options', | |
| 1523 | + [ | |
| 1524 | + 'id' => 'order_custom_fields_data', | |
| 1525 | + 'title' => esc_html__( 'Checkout Form Custom Fields Data', 'shopbuilder' ), | |
| 1526 | + 'category' => 'thank_you', | |
| 1527 | + 'is_front_page' => 'thank_you', | |
| 1528 | + 'active' => 'on', | |
| 1529 | + 'package' => $this->pro_package(), | |
| 1530 | + 'fields' => [], | |
| 1531 | + ] | |
| 1532 | + ), | |
| 1253 | 1533 | ]; |
| 1254 | 1534 | } |
| 1535 | + /** | |
| 1536 | + * Checkout Page Order Pay Widget List. | |
| 1537 | + * | |
| 1538 | + * @return array | |
| 1539 | + */ | |
| 1540 | + protected function orderpay_page_widget_list() { | |
| 1541 | + return [ | |
| 1542 | + 'order_pay_form' => apply_filters( | |
| 1543 | + 'rtsb/elements/order_pay_form/options', | |
| 1544 | + [ | |
| 1545 | + 'id' => 'order_pay_form', | |
| 1546 | + 'title' => esc_html__( 'Order Pay Form', 'shopbuilder' ), | |
| 1547 | + 'category' => 'myaccount_dashboard', | |
| 1548 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1549 | + 'active' => 'on', | |
| 1550 | + 'package' => $this->pro_package(), | |
| 1551 | + 'fields' => [], | |
| 1552 | + ] | |
| 1553 | + ), | |
| 1255 | 1554 | |
| 1555 | + ]; | |
| 1556 | + } | |
| 1557 | + | |
| 1256 | 1558 | /** |
| 1257 | 1559 | * Checkout Page Widget List. |
| 1258 | 1560 | * |
| 1259 | 1561 | * @return array |
| @@ -1258,10 +1560,9 @@ | ||
| 1258 | 1560 | * |
| 1259 | 1561 | * @return array |
| 1260 | 1562 | */ |
| 1261 | 1563 | protected function my_account_page_widget_list() { |
| 1262 | - return [ | |
| 1263 | - | |
| 1564 | + $widgets = [ | |
| 1264 | 1565 | 'account_navigation_edit_shipping' => apply_filters( |
| 1265 | 1566 | 'rtsb/elements/account_navigation_edit_shipping/options', |
| 1266 | 1567 | [ |
| 1267 | 1568 | 'id' => 'account_navigation_edit_shipping', |
| @@ -1278,9 +1579,9 @@ | ||
| 1278 | 1579 | [ |
| 1279 | 1580 | 'id' => 'account_dashboard', |
| 1280 | 1581 | 'title' => esc_html__( 'Account Dashboard', 'shopbuilder' ), |
| 1281 | 1582 | 'category' => 'myaccount_dashboard', |
| 1282 | - 'is_front_page' => 'myaccount_dashboard', | |
| 1583 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1283 | 1584 | 'active' => 'on', |
| 1284 | 1585 | 'package' => $this->pro_package(), |
| 1285 | 1586 | 'fields' => [], |
| 1286 | 1587 | ] |
| @@ -1290,9 +1591,9 @@ | ||
| 1290 | 1591 | [ |
| 1291 | 1592 | 'id' => 'account_orders', |
| 1292 | 1593 | 'title' => esc_html__( 'Account Orders', 'shopbuilder' ), |
| 1293 | 1594 | 'category' => 'myaccount_dashboard', |
| 1294 | - 'is_front_page' => 'myaccount_order', | |
| 1595 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1295 | 1596 | 'active' => 'on', |
| 1296 | 1597 | 'package' => $this->pro_package(), |
| 1297 | 1598 | 'fields' => [], |
| 1298 | 1599 | ] |
| @@ -1302,9 +1603,9 @@ | ||
| 1302 | 1603 | [ |
| 1303 | 1604 | 'id' => 'account_downloads', |
| 1304 | 1605 | 'title' => esc_html__( 'Account Downloads', 'shopbuilder' ), |
| 1305 | 1606 | 'category' => 'myaccount_dashboard', |
| 1306 | - 'is_front_page' => 'myaccount_downloads', | |
| 1607 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1307 | 1608 | 'active' => 'on', |
| 1308 | 1609 | 'package' => $this->pro_package(), |
| 1309 | 1610 | 'fields' => [], |
| 1310 | 1611 | ] |
| @@ -1314,9 +1615,9 @@ | ||
| 1314 | 1615 | [ |
| 1315 | 1616 | 'id' => 'account_billing_address', |
| 1316 | 1617 | 'title' => esc_html__( 'Account Billing Address', 'shopbuilder' ), |
| 1317 | 1618 | 'category' => 'myaccount_dashboard', |
| 1318 | - 'is_front_page' => 'myaccount_address', | |
| 1619 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1319 | 1620 | 'active' => 'on', |
| 1320 | 1621 | 'package' => $this->pro_package(), |
| 1321 | 1622 | 'fields' => [], |
| 1322 | 1623 | ] |
| @@ -1326,9 +1627,9 @@ | ||
| 1326 | 1627 | [ |
| 1327 | 1628 | 'id' => 'account_shipping_address', |
| 1328 | 1629 | 'title' => esc_html__( 'Account Shipping Address', 'shopbuilder' ), |
| 1329 | 1630 | 'category' => 'myaccount_dashboard', |
| 1330 | - 'is_front_page' => 'myaccount_address', | |
| 1631 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1331 | 1632 | 'active' => 'on', |
| 1332 | 1633 | 'package' => $this->pro_package(), |
| 1333 | 1634 | 'fields' => [], |
| 1334 | 1635 | ] |
| @@ -1338,9 +1639,9 @@ | ||
| 1338 | 1639 | [ |
| 1339 | 1640 | 'id' => 'account_address_description', |
| 1340 | 1641 | 'title' => esc_html__( 'Account Address Description', 'shopbuilder' ), |
| 1341 | 1642 | 'category' => 'myaccount_dashboard', |
| 1342 | - 'is_front_page' => 'myaccount_address', | |
| 1643 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1343 | 1644 | 'active' => 'on', |
| 1344 | 1645 | 'package' => $this->pro_package(), |
| 1345 | 1646 | 'fields' => [], |
| 1346 | 1647 | ] |
| @@ -1350,9 +1651,9 @@ | ||
| 1350 | 1651 | [ |
| 1351 | 1652 | 'id' => 'account_details', |
| 1352 | 1653 | 'title' => esc_html__( 'Account Edit / Details', 'shopbuilder' ), |
| 1353 | 1654 | 'category' => 'myaccount_dashboard', |
| 1354 | - 'is_front_page' => 'myaccount_edit_details', | |
| 1655 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1355 | 1656 | 'active' => 'on', |
| 1356 | 1657 | 'package' => $this->pro_package(), |
| 1357 | 1658 | 'fields' => [], |
| 1358 | 1659 | ] |
| @@ -1362,9 +1663,9 @@ | ||
| 1362 | 1663 | [ |
| 1363 | 1664 | 'id' => 'account_order_status', |
| 1364 | 1665 | 'title' => esc_html__( 'Account Order Status', 'shopbuilder' ), |
| 1365 | 1666 | 'category' => 'myaccount_dashboard', |
| 1366 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1667 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1367 | 1668 | 'active' => 'on', |
| 1368 | 1669 | 'package' => $this->pro_package(), |
| 1369 | 1670 | 'fields' => [], |
| 1370 | 1671 | ] |
| @@ -1374,9 +1675,9 @@ | ||
| 1374 | 1675 | [ |
| 1375 | 1676 | 'id' => 'account_order_details_download', |
| 1376 | 1677 | 'title' => esc_html__( 'Account Order Download', 'shopbuilder' ), |
| 1377 | 1678 | 'category' => 'myaccount_dashboard', |
| 1378 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1679 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1379 | 1680 | 'active' => 'on', |
| 1380 | 1681 | 'package' => $this->pro_package(), |
| 1381 | 1682 | 'fields' => [], |
| 1382 | 1683 | ] |
| @@ -1386,9 +1687,9 @@ | ||
| 1386 | 1687 | [ |
| 1387 | 1688 | 'id' => 'account_order_details_note', |
| 1388 | 1689 | 'title' => esc_html__( 'Account Order Note', 'shopbuilder' ), |
| 1389 | 1690 | 'category' => 'myaccount_dashboard', |
| 1390 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1691 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1391 | 1692 | 'active' => 'on', |
| 1392 | 1693 | 'package' => $this->pro_package(), |
| 1393 | 1694 | 'fields' => [], |
| 1394 | 1695 | ] |
| @@ -1398,9 +1699,9 @@ | ||
| 1398 | 1699 | [ |
| 1399 | 1700 | 'id' => 'account_order_details_table', |
| 1400 | 1701 | 'title' => esc_html__( 'Account Order Table', 'shopbuilder' ), |
| 1401 | 1702 | 'category' => 'myaccount_dashboard', |
| 1402 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1703 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1403 | 1704 | 'active' => 'on', |
| 1404 | 1705 | 'package' => $this->pro_package(), |
| 1405 | 1706 | 'fields' => [], |
| 1406 | 1707 | ] |
| @@ -1410,9 +1711,9 @@ | ||
| 1410 | 1711 | [ |
| 1411 | 1712 | 'id' => 'account_order_details_order_again', |
| 1412 | 1713 | 'title' => esc_html__( 'Account Order Again Button', 'shopbuilder' ), |
| 1413 | 1714 | 'category' => 'myaccount_dashboard', |
| 1414 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1715 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1415 | 1716 | 'active' => 'on', |
| 1416 | 1717 | 'package' => $this->pro_package(), |
| 1417 | 1718 | 'fields' => [], |
| 1418 | 1719 | ] |
| @@ -1422,9 +1723,9 @@ | ||
| 1422 | 1723 | [ |
| 1423 | 1724 | 'id' => 'account_order_details_order_shipping', |
| 1424 | 1725 | 'title' => esc_html__( 'Account Order Shipping', 'shopbuilder' ), |
| 1425 | 1726 | 'category' => 'myaccount_dashboard', |
| 1426 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1727 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1427 | 1728 | 'active' => 'on', |
| 1428 | 1729 | 'package' => $this->pro_package(), |
| 1429 | 1730 | 'fields' => [], |
| 1430 | 1731 | ] |
| @@ -1434,9 +1735,9 @@ | ||
| 1434 | 1735 | [ |
| 1435 | 1736 | 'id' => 'account_order_details_order_billing', |
| 1436 | 1737 | 'title' => esc_html__( 'Account Order Billing', 'shopbuilder' ), |
| 1437 | 1738 | 'category' => 'myaccount_dashboard', |
| 1438 | - 'is_front_page' => 'myaccount_orders_details', | |
| 1739 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1439 | 1740 | 'active' => 'on', |
| 1440 | 1741 | 'package' => $this->pro_package(), |
| 1441 | 1742 | 'fields' => [], |
| 1442 | 1743 | ] |
| @@ -1446,9 +1747,9 @@ | ||
| 1446 | 1747 | [ |
| 1447 | 1748 | 'id' => 'account_edit_billing_address', |
| 1448 | 1749 | 'title' => esc_html__( 'Edit Billing Address', 'shopbuilder' ), |
| 1449 | 1750 | 'category' => 'myaccount_dashboard', |
| 1450 | - 'is_front_page' => 'myaccount_edit_billing_address', | |
| 1751 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1451 | 1752 | 'active' => 'on', |
| 1452 | 1753 | 'package' => $this->pro_package(), |
| 1453 | 1754 | 'fields' => [], |
| 1454 | 1755 | ] |
| @@ -1458,9 +1759,9 @@ | ||
| 1458 | 1759 | [ |
| 1459 | 1760 | 'id' => 'account_edit_shipping_address', |
| 1460 | 1761 | 'title' => esc_html__( 'Edit Shipping Address', 'shopbuilder' ), |
| 1461 | 1762 | 'category' => 'myaccount_dashboard', |
| 1462 | - 'is_front_page' => 'myaccount_edit_shipping_address', | |
| 1763 | + 'is_front_page' => 'all_myaccount_dashboard_inner', | |
| 1463 | 1764 | 'active' => 'on', |
| 1464 | 1765 | 'package' => $this->pro_package(), |
| 1465 | 1766 | 'fields' => [], |
| 1466 | 1767 | ] |
| @@ -1465,8 +1766,10 @@ | ||
| 1465 | 1766 | 'fields' => [], |
| 1466 | 1767 | ] |
| 1467 | 1768 | ), |
| 1468 | 1769 | ]; |
| 1770 | + | |
| 1771 | + return apply_filters( 'rtsb/core/elements/my_account/widget_list', $widgets ); | |
| 1469 | 1772 | } |
| 1470 | 1773 | |
| 1471 | 1774 | /*** |
| 1472 | 1775 | * @return array |
| @@ -1514,9 +1817,9 @@ | ||
| 1514 | 1817 | [ |
| 1515 | 1818 | 'id' => 'account_lost_password', |
| 1516 | 1819 | 'title' => esc_html__( 'Lost Password Form', 'shopbuilder' ), |
| 1517 | 1820 | 'category' => 'others_widget', |
| 1518 | - 'is_front_page' => 'myaccount_lost_password', | |
| 1821 | + 'is_front_page' => 'myaccount_auth', | |
| 1519 | 1822 | 'active' => 'on', |
| 1520 | 1823 | 'package' => $this->pro_package(), |
| 1521 | 1824 | 'fields' => [], |
| 1522 | 1825 | ] |