Skip to content
Permalink
Browse files

Add fixtures for deprecated cover block

  • Loading branch information...
talldan committed May 6, 2019
1 parent fd2e595 commit 379efb051c7ac6c6e14d81f96a8b8e6b872c8592
@@ -0,0 +1,3 @@
<!-- wp:cover {"url":"https://cldup.com/uuUqE_dXzy.jpg","id":35} -->
<div class="wp-block-cover has-background-dim" style="background-image:url(https://cldup.com/uuUqE_dXzy.jpg)"><p class="wp-block-cover-text"><strong>Cover Block</strong></p></div>
<!-- /wp:cover -->
@@ -0,0 +1,30 @@
[
{
"clientId": "_clientId_0",
"name": "core/cover",
"isValid": true,
"attributes": {
"url": "https://cldup.com/uuUqE_dXzy.jpg",
"id": 35,
"hasParallax": false,
"dimRatio": 50,
"backgroundType": "image"
},
"innerBlocks": [
{
"clientId": "_clientId_0",
"name": "core/paragraph",
"isValid": true,
"attributes": {
"align": "center",
"content": "<strong>Cover Block</strong>",
"dropCap": false,
"placeholder": "Write title…",
"fontSize": "large"
},
"innerBlocks": []
}
],
"originalContent": "<div class=\"wp-block-cover has-background-dim\" style=\"background-image:url(https://cldup.com/uuUqE_dXzy.jpg)\"><p class=\"wp-block-cover-text\"><strong>Cover Block</strong></p></div>"
}
]
@@ -0,0 +1,23 @@
[
{
"blockName": "core/cover",
"attrs": {
"url": "https://cldup.com/uuUqE_dXzy.jpg",
"id": 35
},
"innerBlocks": [],
"innerHTML": "\n<div class=\"wp-block-cover has-background-dim\" style=\"background-image:url(https://cldup.com/uuUqE_dXzy.jpg)\"><p class=\"wp-block-cover-text\"><strong>Cover Block</strong></p></div>\n",
"innerContent": [
"\n<div class=\"wp-block-cover has-background-dim\" style=\"background-image:url(https://cldup.com/uuUqE_dXzy.jpg)\"><p class=\"wp-block-cover-text\"><strong>Cover Block</strong></p></div>\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [
"\n"
]
}
]
@@ -0,0 +1,5 @@
<!-- wp:cover {"url":"https://cldup.com/uuUqE_dXzy.jpg","id":35} -->
<div class="wp-block-cover has-background-dim" style="background-image:url(https://cldup.com/uuUqE_dXzy.jpg)"><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} -->
<p style="text-align:center" class="has-large-font-size"><strong>Cover Block</strong></p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:cover -->

0 comments on commit 379efb0

Please sign in to comment.
You can’t perform that action at this time.