-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a new version of the PR by #3441 by @samikeijonen. It's just basically "rebased". It seems to be working fine in practice, the chief purpose is to make the gallery be list based. I'm getting "modified externally" warnings, though.
- Loading branch information
Joen Asmussen
committed
Dec 14, 2017
1 parent
e421572
commit 4cfe4f5
Showing
15 changed files
with
110 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
<!-- wp:core/gallery --> | ||
<div class="wp-block-gallery alignnone columns-2 is-cropped"> | ||
<figure class="blocks-gallery-image"> | ||
<img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" /> | ||
</figure> | ||
<figure class="blocks-gallery-image"> | ||
<img src="http://google.com/hi.png" alt="title" /> | ||
</figure> | ||
</div> | ||
<ul class="wp-block-gallery alignnone columns-2 is-cropped"> | ||
<li class="blocks-gallery-image"> | ||
<figure> | ||
<img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" /> | ||
</figure> | ||
</li> | ||
<li class="blocks-gallery-image"> | ||
<figure> | ||
<img src="http://google.com/hi.png" alt="title" /> | ||
</figure> | ||
</li> | ||
</ul> | ||
<!-- /wp:core/gallery --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<!-- wp:gallery --> | ||
<div class="wp-block-gallery alignnone columns-2 is-cropped"> | ||
<figure class="blocks-gallery-image"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" /></figure> | ||
<figure class="blocks-gallery-image"><img src="http://google.com/hi.png" alt="title" /></figure> | ||
</div> | ||
<ul class="wp-block-gallery alignnone columns-2 is-cropped"> | ||
<li class="blocks-gallery-image"> | ||
<figure> | ||
<img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" /> | ||
</figure> | ||
</li> | ||
<li class="blocks-gallery-image"> | ||
<figure> | ||
<img src="http://google.com/hi.png" alt="title" /> | ||
</figure> | ||
</li> | ||
</ul> | ||
<!-- /wp:gallery --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
<!-- wp:core/gallery {"columns":"1"} --> | ||
<div class="wp-block-gallery alignnone columns-1 is-cropped"> | ||
<figure class="blocks-gallery-image"> | ||
<img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" /> | ||
</figure> | ||
<figure class="blocks-gallery-image"> | ||
<img src="http://google.com/hi.png" alt="title" /> | ||
</figure> | ||
</div> | ||
<ul class="wp-block-gallery columns-1 "> | ||
<li class="blocks-gallery-item"> | ||
<figure> | ||
<img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" /> | ||
</figure> | ||
</li> | ||
<li class="blocks-gallery-item"> | ||
<figure> | ||
<img src="http://google.com/hi.png" alt="title" /> | ||
</figure> | ||
</li> | ||
</ul> | ||
<!-- /wp:core/gallery --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 12 additions & 4 deletions
16
blocks/test/fixtures/core__gallery__columns.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<!-- wp:gallery {"columns":1} --> | ||
<div class="wp-block-gallery alignnone columns-1 is-cropped"> | ||
<figure class="blocks-gallery-image"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" /></figure> | ||
<figure class="blocks-gallery-image"><img src="http://google.com/hi.png" alt="title" /></figure> | ||
</div> | ||
<ul class="wp-block-gallery columns-1 "> | ||
<li class="blocks-gallery-item"> | ||
<figure> | ||
<img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" /> | ||
</figure> | ||
</li> | ||
<li class="blocks-gallery-item"> | ||
<figure> | ||
<img src="http://google.com/hi.png" alt="title" /> | ||
</figure> | ||
</li> | ||
</ul> | ||
<!-- /wp:gallery --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters