| @@ -86,9 +86,9 @@ | ||
| 86 | 86 | * |
| 87 | 87 | * @return object |
| 88 | 88 | */ |
| 89 | 89 | private function get_public_styles() { |
| 90 | - $rtl_suffix = is_rtl() ? '-rtl' : ''; | |
| 90 | + $rtl_suffix = is_rtl() ? '-rtl' : ''; | |
| 91 | 91 | $this->styles[] = [ |
| 92 | 92 | 'handle' => 'rtsb-fonts', |
| 93 | 93 | 'src' => rtsb()->get_assets_uri( 'css/frontend/rtsb-fonts.css' ), |
| 94 | 94 | ]; |
| @@ -322,20 +322,18 @@ | ||
| 322 | 322 | wp_localize_script( |
| 323 | 323 | 'rtsb-public', |
| 324 | 324 | 'rtsbPublicParams', |
| 325 | 325 | [ |
| 326 | - 'ajaxUrl' => esc_url( self::$ajaxurl ), | |
| 327 | - 'homeurl' => home_url(), | |
| 328 | - 'wcCartUrl' => wc_get_cart_url(), | |
| 329 | - 'addedToCartText' => esc_html__( 'Product Added', 'shopbuilder' ), | |
| 330 | - 'singleCartToastrText' => esc_html__( 'Successfully Added', 'shopbuilder' ), | |
| 331 | - 'singleCartBtnText' => apply_filters( 'rtsb/global/single_add_to_cart_success', esc_html__( 'Added to Cart', 'shopbuilder' ) ), | |
| 332 | - 'browseCartText' => esc_html__( 'Browse Cart', 'shopbuilder' ), | |
| 333 | - 'noProductsText' => apply_filters( 'rtsb/global/no_products_text', esc_html__( 'No more products to load', 'shopbuilder' ) ), | |
| 334 | - 'notice' => [ | |
| 326 | + 'ajaxUrl' => esc_url( self::$ajaxurl ), | |
| 327 | + 'homeurl' => home_url(), | |
| 328 | + 'wcCartUrl' => wc_get_cart_url(), | |
| 329 | + 'addedToCartText' => esc_html__( 'Product Added', 'shopbuilder' ), | |
| 330 | + 'browseCartText' => esc_html__( 'Browse Cart', 'shopbuilder' ), | |
| 331 | + 'noProductsText' => apply_filters( 'rtsb/global/no_products_text', esc_html__( 'No more products to load', 'shopbuilder' ) ), | |
| 332 | + 'notice' => [ | |
| 335 | 333 | 'position' => Fns::get_option( 'general', 'notification', 'notification_position', 'center-center' ), |
| 336 | 334 | ], |
| 337 | - rtsb()->nonceId => wp_create_nonce( rtsb()->nonceText ), | |
| 335 | + rtsb()->nonceId => wp_create_nonce( rtsb()->nonceText ), | |
| 338 | 336 | ] |
| 339 | 337 | ); |
| 340 | 338 | } |
| 341 | 339 | |
| @@ -356,8 +354,9 @@ | ||
| 356 | 354 | * Scripts. |
| 357 | 355 | */ |
| 358 | 356 | wp_register_script( 'rtsb-admin-app', rtsb()->get_assets_uri( 'js/backend/admin-settings.js' ), '', $this->version, true ); |
| 359 | 357 | wp_register_script( 'rtsb-templatebuilder', rtsb()->get_assets_uri( 'js/backend/template-builder.js' ), '', $this->version, true ); |
| 358 | + | |
| 360 | 359 | } |
| 361 | 360 | |
| 362 | 361 | /** |
| 363 | 362 | * Enqueues admin scripts. |
| @@ -417,9 +416,9 @@ | ||
| 417 | 416 | 'rest_nonce' => wp_create_nonce( 'wp_rest' ), |
| 418 | 417 | 'nonce' => wp_create_nonce( rtsb()->nonceText ), |
| 419 | 418 | 'sections' => Settings::instance()->get_sections(), |
| 420 | 419 | 'pages' => Fns::get_pages(), |
| 421 | - 'hasPro' => rtsb()->has_pro() ? 'yes' : 'no', | |
| 420 | + 'hasPro' => rtsb()->has_pro() ? 'yes' : 'no' | |
| 422 | 421 | ] |
| 423 | 422 | ); |
| 424 | 423 | } else { |
| 425 | 424 | $current_screen = get_current_screen(); |
| @@ -432,9 +431,9 @@ | ||
| 432 | 431 | * Styles. |
| 433 | 432 | */ |
| 434 | 433 | wp_enqueue_style( 'rtsb-templatebuilder' ); |
| 435 | 434 | |
| 436 | - wp_enqueue_style( 'select2', plugins_url( 'assets/css/select2.css', WC_PLUGIN_FILE ) ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion | |
| 435 | + wp_enqueue_style( 'select2', plugins_url( 'assets/css/select2.css', WC_PLUGIN_FILE ) ); | |
| 437 | 436 | |
| 438 | 437 | wp_enqueue_script( 'selectWoo' ); |
| 439 | 438 | /** |
| 440 | 439 | * Scripts. |
| @@ -447,9 +446,9 @@ | ||
| 447 | 446 | [ |
| 448 | 447 | 'ajaxurl' => esc_url( self::$ajaxurl ), |
| 449 | 448 | 'homeurl' => home_url(), |
| 450 | 449 | rtsb()->nonceId => wp_create_nonce( rtsb()->nonceText ), |
| 451 | - 'hasPro' => rtsb()->has_pro() ? 'yes' : 'no', | |
| 450 | + 'hasPro' => rtsb()->has_pro() ? 'yes' : 'no' | |
| 452 | 451 | ] |
| 453 | 452 | ); |
| 454 | 453 | } |
| 455 | 454 | } |