← All changes
|
app/Hooks/Handlers/BlockEditors/ProductImageBlockEditor.php
+2
-1
1.3.21
→
1.7.0
View file →
| @@ -1,8 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace FluentCart\App\Hooks\Handlers\BlockEditors; |
| 4 | 4 | |
| 5 | +use FluentCart\App\Helpers\Helper; | |
| 5 | 6 | use FluentCart\App\Modules\Templating\AssetLoader; |
| 6 | 7 | use FluentCart\App\Services\Renderer\ProductCardRender; |
| 7 | 8 | use FluentCart\App\Services\Translations\TransStrings; |
| 8 | 9 | use FluentCart\App\Vite; |
| @@ -69,9 +70,9 @@ | ||
| 69 | 70 | 'slug' => $this->slugPrefix, |
| 70 | 71 | 'name' => static::getEditorName(), |
| 71 | 72 | 'title' => __('Product Image', 'fluent-cart'), |
| 72 | 73 | 'description' => __('This block will display the product image.', 'fluent-cart'), |
| 73 | - 'placeholder_image' => Vite::getAssetUrl('images/placeholder.svg') | |
| 74 | + 'placeholder_image' => Helper::getProductPlaceholderUrl() | |
| 74 | 75 | ], |
| 75 | 76 | 'fluent_cart_block_translation' => TransStrings::blockStrings(), |
| 76 | 77 | ]; |
| 77 | 78 | } |