diff --git a/src/Sylius/Behat/Element/Admin/TopBarElement.php b/src/Sylius/Behat/Element/Admin/TopBarElement.php index de7140e4aef..5de51c2ba8d 100644 --- a/src/Sylius/Behat/Element/Admin/TopBarElement.php +++ b/src/Sylius/Behat/Element/Admin/TopBarElement.php @@ -24,7 +24,7 @@ public function hasAvatarInMainBar(string $avatarPath): bool public function hasDefaultAvatarInMainBar(): bool { - return strpos($this->getAvatarImagePath(), '//placehold.it/50x50') !== false; + return strpos($this->getAvatarImagePath(), '/assets/admin/img/50x50.png') !== false; } private function getAvatarImagePath(): string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/views/AdminUser/_avatarImage.html.twig b/src/Sylius/Bundle/AdminBundle/Resources/views/AdminUser/_avatarImage.html.twig index f74845a70d5..0ae1472d259 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/views/AdminUser/_avatarImage.html.twig +++ b/src/Sylius/Bundle/AdminBundle/Resources/views/AdminUser/_avatarImage.html.twig @@ -1,7 +1,7 @@ {% if app.user.avatar is not empty and app.user.avatar.path is not empty %} {% set path = app.user.avatar.path|imagine_filter('sylius_admin_admin_user_avatar_thumbnail') %} {% else %} - {% set path = '//placehold.it/50x50' %} + {% set path = asset('assets/admin/img/50x50.png') %} {% endif %} diff --git a/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_mainImage.html.twig b/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_mainImage.html.twig index e2bc1612364..324ce1aaa0a 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_mainImage.html.twig +++ b/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_mainImage.html.twig @@ -3,7 +3,7 @@ {% elseif product.images.first %} {% set path = product.images.first.path|imagine_filter(filter|default('sylius_admin_product_thumbnail')) %} {% else %} - {% set path = '//placehold.it/200x200' %} + {% set path = asset('assets/admin/img/200x200.png') %} {% endif %} {{ product.name }} diff --git a/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_media.html.twig b/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_media.html.twig index 25f80258ebd..128c9b62f31 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_media.html.twig +++ b/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_media.html.twig @@ -7,7 +7,7 @@ {% if product.images|length >= 1 %}
{% for image in product.images %} - {% set path = image.path is not null ? image.path|imagine_filter('sylius_admin_product_small_thumbnail') : '//placehold.it/200x200' %} + {% set path = image.path is not null ? image.path|imagine_filter('sylius_admin_product_small_thumbnail') : asset('assets/admin/img/200x200.png') %}
{% if product.isConfigurable() and product.variants|length > 0 %} {% include '@SyliusAdmin/Product/Show/_imageVariants.html.twig' %} diff --git a/src/Sylius/Bundle/AdminBundle/Resources/views/Product/_mainImage.html.twig b/src/Sylius/Bundle/AdminBundle/Resources/views/Product/_mainImage.html.twig index 3fe65b825b3..4550f53b258 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/views/Product/_mainImage.html.twig +++ b/src/Sylius/Bundle/AdminBundle/Resources/views/Product/_mainImage.html.twig @@ -3,7 +3,7 @@ {% elseif product.images.first %} {% set path = product.images.first.path|imagine_filter(filter|default('sylius_admin_product_thumbnail')) %} {% else %} - {% set path = '//placehold.it/50x50' %} + {% set path = asset('assets/admin/img/50x50.png') %} {% endif %} diff --git a/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Show/_images.html.twig b/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Show/_images.html.twig index ac1769d3814..391520b8e18 100644 --- a/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Show/_images.html.twig +++ b/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Show/_images.html.twig @@ -7,7 +7,7 @@ {% set original_path = source_path|imagine_filter('sylius_shop_product_original') %} {% set path = source_path|imagine_filter(filter|default('sylius_shop_product_large_thumbnail')) %} {% else %} - {% set original_path = '//placehold.it/400x300' %} + {% set original_path = asset('assets/shop/img/400x300.png') %} {% set path = original_path %} {% endif %} @@ -22,7 +22,7 @@
{% for image in product.images %} - {% set path = image.path is not null ? image.path|imagine_filter('sylius_shop_product_small_thumbnail') : '//placehold.it/200x200' %} + {% set path = image.path is not null ? image.path|imagine_filter('sylius_shop_product_small_thumbnail') : asset('assets/shop/img/200x200.png') %}
{% if product.isConfigurable() and product.enabledVariants|length > 0 %} {% include '@SyliusShop/Product/Show/_imageVariants.html.twig' %} diff --git a/src/Sylius/Bundle/ShopBundle/Resources/views/Product/_mainImage.html.twig b/src/Sylius/Bundle/ShopBundle/Resources/views/Product/_mainImage.html.twig index fd1cf34fc63..5f832e127c1 100644 --- a/src/Sylius/Bundle/ShopBundle/Resources/views/Product/_mainImage.html.twig +++ b/src/Sylius/Bundle/ShopBundle/Resources/views/Product/_mainImage.html.twig @@ -3,7 +3,7 @@ {% elseif product.images.first %} {% set path = product.images.first.path|imagine_filter(filter|default('sylius_shop_product_thumbnail')) %} {% else %} - {% set path = '//placehold.it/200x200' %} + {% set path = asset('assets/shop/img/200x200.png') %} {% endif %} {{ product.name }} diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/img/200x200.png b/src/Sylius/Bundle/UiBundle/Resources/private/img/200x200.png new file mode 100644 index 00000000000..8f7a516109b Binary files /dev/null and b/src/Sylius/Bundle/UiBundle/Resources/private/img/200x200.png differ diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/img/400x300.png b/src/Sylius/Bundle/UiBundle/Resources/private/img/400x300.png new file mode 100644 index 00000000000..187922a2e97 Binary files /dev/null and b/src/Sylius/Bundle/UiBundle/Resources/private/img/400x300.png differ diff --git a/src/Sylius/Bundle/UiBundle/Resources/private/img/50x50.png b/src/Sylius/Bundle/UiBundle/Resources/private/img/50x50.png new file mode 100644 index 00000000000..9d7b1800ecc Binary files /dev/null and b/src/Sylius/Bundle/UiBundle/Resources/private/img/50x50.png differ