From: fomichev Date: Wed, 16 Apr 2025 14:31:26 +0000 (+0300) Subject: Разделение галлерей X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=683bee98043e60a101bad05f1e226204dbae092e;p=erp24_rep%2Fyii-erp24%2F.git Разделение галлерей --- 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 .= "