Skip to content

Commit 17a05da

Browse files
committed
fix(gallery): replace photoswipe-gallery with elegant-gallery
1 parent 25cf0bd commit 17a05da

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

documentation/content/Components/code-style-highlight-lines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Another example,
2525

2626
:::html hl_lines="2"
2727
<div
28-
class="photoswipe-gallery"
28+
class="elegant-gallery"
2929
itemscope
3030
itemtype="http://schema.org/ImageGallery"
3131
>

documentation/content/Components/code-style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ of [Gruvbox](https://github.com/morhetz/gruvbox) theme for syntax highlighting.
2121

2222
```html
2323
<div
24-
class="photoswipe-gallery"
24+
class="elegant-gallery"
2525
itemscope
2626
itemtype="http://schema.org/ImageGallery"
2727
>

documentation/content/Components/photoswipe-raw-gallery.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Category: Components
1010

1111
Elegant integrates with [PhotoSwipe](https://photoswipe.com/) to create gallery of images. Here is an example.
1212

13-
<div class="photoswipe-gallery" itemscope itemtype="http://schema.org/ImageGallery">
13+
<div class="elegant-gallery" itemscope itemtype="http://schema.org/ImageGallery">
1414
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
1515
<a href="https://i.picsum.photos/id/1019/5472/3648.jpg" itemprop="contentUrl" data-size="5472x3648">
1616
<img src="https://i.picsum.photos/id/1019/200/200.jpg" itemprop="thumbnail" alt="Image description" />
@@ -53,7 +53,7 @@ Here is the require HTML with two images in it.
5353

5454
```html
5555
<div
56-
class="photoswipe-gallery"
56+
class="elegant-gallery"
5757
itemscope
5858
itemtype="http://schema.org/ImageGallery"
5959
>
@@ -101,7 +101,7 @@ Here is the require HTML with two images in it.
101101
</div>
102102
```
103103

104-
<div class="photoswipe-gallery" itemscope itemtype="http://schema.org/ImageGallery">
104+
<div class="elegant-gallery" itemscope itemtype="http://schema.org/ImageGallery">
105105
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
106106
<a href="https://i.picsum.photos/id/1019/5472/3648.jpg" itemprop="contentUrl" data-size="5472x3648">
107107
<img src="https://i.picsum.photos/id/1019/100/100.jpg" itemprop="thumbnail" alt="Image description" />
@@ -121,13 +121,13 @@ Here is the require HTML with two images in it.
121121

122122
```html
123123
<div
124-
class="photoswipe-gallery"
124+
class="elegant-gallery"
125125
itemscope
126126
itemtype="http://schema.org/ImageGallery"
127127
></div>
128128
```
129129

130-
Notice the class, `photoswipe-gallery`. You should not change it.
130+
Notice the class, `elegant-gallery`. You should not change it.
131131

132132
## Define `figure`
133133

static/css/gallery.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
div.photoswipe-gallery {
1+
div.elegant-gallery {
22
display: flex;
33
flex-wrap: wrap;
44
flex-direction: row;

static/photoswipe/photoswipe-array-from-dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,4 @@ var initPhotoSwipeFromDOM = function(gallerySelector) {
200200
};
201201

202202
// execute above function
203-
initPhotoSwipeFromDOM(".photoswipe-gallery");
203+
initPhotoSwipeFromDOM(".elegant-gallery");

0 commit comments

Comments
 (0)