← All changes
|
app/Hooks/Handlers/ShortCodes/SearchBarShortCode.php
+1
-1
1.3.21
→
1.6.5
View file →
| @@ -3,9 +3,8 @@ | ||
| 3 | 3 | namespace FluentCart\App\Hooks\Handlers\ShortCodes; |
| 4 | 4 | |
| 5 | 5 | use FluentCart\App\CPT\FluentProducts; |
| 6 | 6 | use FluentCart\App\Helpers\Helper; |
| 7 | -use FluentCart\App\Vite; | |
| 8 | 7 | use FluentCart\Framework\Support\Arr; |
| 9 | 8 | use FluentCart\Framework\Support\Collection; |
| 10 | 9 | use FluentCart\App\Services\Renderer\SearchBarRenderer; |
| 11 | 10 | |
| @@ -45,8 +44,9 @@ | ||
| 45 | 44 | 'url_mode' => Arr::get($this->shortCodeAttributes, 'url_mode'), |
| 46 | 45 | 'category_mode' => Arr::get($this->shortCodeAttributes, 'category_mode'), |
| 47 | 46 | 'termData' => $this->getTermsData('categories'), |
| 48 | 47 | 'link_with_shop_app' => Arr::get($this->shortCodeAttributes, 'link_with_shop_app'), |
| 48 | + 'show_thumbnail' => filter_var(Arr::get($this->shortCodeAttributes, 'show_thumbnail', true), FILTER_VALIDATE_BOOLEAN), | |
| 49 | 49 | ]; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | public function render(?array $viewData = null) |