From: fomichev Date: Thu, 3 Apr 2025 08:22:34 +0000 (+0300) Subject: Лайтбокс для видео X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=169d8336157430e760a27f14a100ab22f266e60c;p=erp24_rep%2Fyii-erp24%2F.git Лайтбокс для видео --- diff --git a/erp24/views/bouquet/index.php b/erp24/views/bouquet/index.php index c46ae151..9ff1438c 100644 --- a/erp24/views/bouquet/index.php +++ b/erp24/views/bouquet/index.php @@ -163,15 +163,22 @@ $this->title = 'Содержание матрицы';
- " . Html::tag('video', '', [ - 'class' => 'video-preview', - 'src' => Url::to($model->presentation->url ?? null), - 'style' => 'width: 100%; height: 100%; object-fit: cover;', - 'autoplay' => true, - 'muted' => true, - 'loop' => true, - 'playsinline' => true, - ]) . " + " . Html::a( + Html::tag('video', '', [ + 'class' => 'video-preview', + 'src' => Url::to($model->presentation->url ?? null), + 'style' => 'width: 100%; height: 100%; object-fit: cover;', + 'autoplay' => true, + 'muted' => true, + 'loop' => true, + 'playsinline' => true, + ]), + Url::to($model->presentation->url ?? null), + [ + 'data-lightbox' => $galleryId, + 'data-type' => 'video' + ] + ) . "
Презентация
"; @@ -190,15 +197,22 @@ $this->title = 'Содержание матрицы';
- " . Html::tag('video', '', [ - 'class' => 'video-preview', - 'src' => Url::to($model->buildProcess->url ?? null), - 'style' => 'width: 100%; height: 100%; object-fit: cover;', - 'autoplay' => true, - 'muted' => true, - 'loop' => true, - 'playsinline' => true, - ]) . " + " . Html::a( + Html::tag('video', '', [ + 'class' => 'video-preview', + 'src' => Url::to($model->buildProcess->url ?? null), + 'style' => 'width: 100%; height: 100%; object-fit: cover;', + 'autoplay' => true, + 'muted' => true, + 'loop' => true, + 'playsinline' => true, + ]), + Url::to($model->buildProcess->url ?? null), + [ + 'data-lightbox' => $galleryId, + 'data-type' => 'video' + ] + ) . "
Процесс сборки
";