| @@ -379,9 +379,8 @@ | ||
| 379 | 379 | [ |
| 380 | 380 | 'ajaxUrl' => esc_url( self::$ajaxurl ), |
| 381 | 381 | 'aiActivated' => ! empty( $ai_data ), |
| 382 | 382 | 'homeurl' => home_url(), |
| 383 | - 'shopUrl' => function_exists( 'wc_get_page_permalink' ) ? esc_url( wc_get_page_permalink( 'shop' ) ) : home_url( '/' ), | |
| 384 | 383 | 'wcCartUrl' => wc_get_cart_url(), |
| 385 | 384 | 'addedToCartText' => esc_html__( 'Product Added', 'shopbuilder' ), |
| 386 | 385 | 'singleCartToastrText' => esc_html__( 'Successfully Added', 'shopbuilder' ), |
| 387 | 386 | 'singleCartBtnText' => apply_filters( 'rtsb/global/single_add_to_cart_success', esc_html__( 'Added to Cart', 'shopbuilder' ) ), |
| @@ -390,9 +389,8 @@ | ||
| 390 | 389 | 'isOptimizationEnabled' => Fns::is_optimization_enabled(), |
| 391 | 390 | 'isLoaderEnabled' => Fns::enable_loader(), |
| 392 | 391 | 'notice' => [ |
| 393 | 392 | 'position' => Fns::get_option( 'general', 'notification', 'notification_position', 'center-center' ), |
| 394 | - 'timeOut' => absint( Fns::get_option( 'general', 'notification', 'notification_timeOut', 5 ) ), | |
| 395 | 393 | ], |
| 396 | 394 | rtsb()->nonceId => wp_create_nonce( rtsb()->nonceText ), |
| 397 | 395 | ] |
| 398 | 396 | ); |
| @@ -439,9 +437,8 @@ | ||
| 439 | 437 | 'rest_nonce' => wp_create_nonce( 'wp_rest' ), |
| 440 | 438 | 'nonce' => wp_create_nonce( rtsb()->nonceText ), |
| 441 | 439 | 'pages' => Fns::get_pages(), |
| 442 | 440 | 'hasPro' => rtsb()->has_pro() ? 'yes' : 'no', |
| 443 | - 'validLicence' => Fns::has_valid_license() ? 'yes' : 'no', | |
| 444 | 441 | 'proVersion' => defined( 'RTSBPRO_VERSION' ) ? RTSBPRO_VERSION : '0', |
| 445 | 442 | 'updateRates' => esc_html__( 'Update All Rates', 'shopbuilder' ), |
| 446 | 443 | 'sections' => Settings::instance()->get_sections(), |
| 447 | 444 | 'userRoles' => Fns::get_all_user_roles(), |
| @@ -549,16 +546,12 @@ | ||
| 549 | 546 | wp_localize_script( |
| 550 | 547 | 'rtsb-templatebuilder', |
| 551 | 548 | 'rtsbParams', |
| 552 | 549 | [ |
| 553 | - 'ajaxurl' => esc_url( self::$ajaxurl ), | |
| 554 | - 'homeurl' => home_url(), | |
| 555 | - rtsb()->nonceId => wp_create_nonce( rtsb()->nonceText ), | |
| 556 | - 'hasPro' => rtsb()->has_pro() ? 'yes' : 'no', | |
| 557 | - 'singletonTypes' => apply_filters( | |
| 558 | - 'rtsb/builder/singleton_types', | |
| 559 | - array_keys( \RadiusTheme\SB\Helpers\BuilderFns::builder_page_types() ) | |
| 560 | - ), | |
| 550 | + 'ajaxurl' => esc_url( self::$ajaxurl ), | |
| 551 | + 'homeurl' => home_url(), | |
| 552 | + rtsb()->nonceId => wp_create_nonce( rtsb()->nonceText ), | |
| 553 | + 'hasPro' => rtsb()->has_pro() ? 'yes' : 'no', | |
| 561 | 554 | ] |
| 562 | 555 | ); |
| 563 | 556 | } |
| 564 | 557 | } |