18
|
1 |
<?php |
|
2 |
/** |
|
3 |
* Query: Grid. |
|
4 |
* |
|
5 |
* @package WordPress |
|
6 |
*/ |
|
7 |
|
|
8 |
return array( |
|
9 |
'title' => _x( 'Grid', 'Block pattern title' ), |
|
10 |
'blockTypes' => array( 'core/query' ), |
|
11 |
'categories' => array( 'query' ), |
|
12 |
'content' => '<!-- wp:query {"query":{"perPage":6,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":3}} --> |
|
13 |
<div class="wp-block-query"> |
|
14 |
<!-- wp:post-template --> |
|
15 |
<!-- wp:group {"style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}},"layout":{"inherit":false}} --> |
|
16 |
<div class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><!-- wp:post-title {"isLink":true} /--> |
|
17 |
<!-- wp:post-excerpt /--> |
|
18 |
<!-- wp:post-date /--></div> |
|
19 |
<!-- /wp:group --> |
|
20 |
<!-- /wp:post-template --> |
|
21 |
</div> |
|
22 |
<!-- /wp:query -->', |
|
23 |
); |