From 683bee98043e60a101bad05f1e226204dbae092e Mon Sep 17 00:00:00 2001 From: fomichev Date: Wed, 16 Apr 2025 17:31:26 +0300 Subject: [PATCH] =?utf8?q?=D0=A0=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD?= =?utf8?q?=D0=B8=D0=B5=20=D0=B3=D0=B0=D0=BB=D0=BB=D0=B5=D1=80=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/bouquet/index.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/erp24/views/bouquet/index.php b/erp24/views/bouquet/index.php index a017569a..a2a14bf5 100644 --- a/erp24/views/bouquet/index.php +++ b/erp24/views/bouquet/index.php @@ -108,13 +108,14 @@ $this->title = 'Содержание матрицы'; $previewImageUrls = array_slice($allImageUrls, 0, 3); $previewImageUrls += array_fill(0, 3 - count($previewImageUrls), null); - $galleryId = 'gallery-' . $model->id; + $imageGalleryId = 'gallery-images-' . $model->id; + $videoGalleryId = 'gallery-video-' . $model->id; $hiddenLinks = ""; if (count($allImageUrls) > 3) { foreach (array_slice($allImageUrls, 3) as $url) { $hiddenLinks .= Html::a('', $url, [ - 'data-fancybox' => $galleryId, + 'data-fancybox' => $imageGalleryId, 'style' => 'display:none;' ]); } @@ -161,7 +162,7 @@ $this->title = 'Содержание матрицы'; 'style' => 'width: 100%; height: 100%; object-fit: cover;', ]), $previewImageUrls[0], - ['data-fancybox' => $galleryId] + ['data-fancybox' => $imageGalleryId] ); } $html .= " @@ -178,7 +179,7 @@ $this->title = 'Содержание матрицы'; 'javascript:;', [ 'style' => 'width: 100%; height: 100%; display:block;', - 'data-fancybox' => $galleryId, + 'data-fancybox' => $videoGalleryId, 'data-src' => '', @@ -194,7 +195,7 @@ $this->title = 'Содержание матрицы'; 'style' => 'width: 100%; height: 100%; object-fit: cover;', ]), $previewImageUrls[1], - ['data-fancybox' => $galleryId] + ['data-fancybox' => $imageGalleryId] ); } $html .= " @@ -211,7 +212,7 @@ $this->title = 'Содержание матрицы'; 'javascript:;', [ 'style' => 'width: 100%; height: 100%; display:block;', - 'data-fancybox' => $galleryId, + 'data-fancybox' => $videoGalleryId, 'data-src' => '', @@ -227,7 +228,7 @@ $this->title = 'Содержание матрицы'; 'style' => 'width: 100%; height: 100%; object-fit: cover;' ]), $previewImageUrls[2], - ['data-fancybox' => $galleryId] + ['data-fancybox' => $imageGalleryId] ); } $html .= " -- 2.39.5