diff --git a/src/app/Core/ChannelLogo.php b/src/app/Core/ChannelLogo.php index a3429b5..36a3de1 100644 --- a/src/app/Core/ChannelLogo.php +++ b/src/app/Core/ChannelLogo.php @@ -19,7 +19,7 @@ class ChannelLogo implements \Stringable /** * @var string|null Путь к файлу изображению на диске */ - protected ?string $path; + protected ?string $path = ''; /** * @var string|null MIME-тип изображения diff --git a/src/views/details.twig b/src/views/details.twig index 8e8b872..ff36fcf 100644 --- a/src/views/details.twig +++ b/src/views/details.twig @@ -3,7 +3,13 @@ {% block title %}{{ name }} - {{ config('app.title') }}{% endblock %} {% block head %} - + {% endblock %} {% block header %} @@ -76,23 +82,31 @@
{{ loop.index }} | -+ | {{ loop.index }} | ++ + src="{{ channel.logo.base64 }}" {% elseif (channel.attributes['tvg-logo']) %} - + src="{{ base_url('logo?url=' ~ channel.attributes['tvg-logo']) }}" + loading="lazy" {% else %} - + src="{{ base_url('no-tvg-logo.png') }}" {% endif %} + alt="Логотип канала '{{ channel.name }}'" + title="Логотип канала '{{ channel.name }}'" + /> | -{{ channel.name }} | +{{ channel.name }} |