-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Takes advantage of new native Details block.
- Loading branch information
1 parent
b761122
commit e004af1
Showing
2 changed files
with
51 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
/** | ||
* Title: Accordions | ||
* Slug: loadlifter/accordions | ||
* Categories: text | ||
* Description: Multiple Details blocks in a Group w/ appropriate CSS classes set. | ||
* Keywords: details, summary, accordion | ||
* Block Types: core/group, core/details, core/list | ||
* | ||
* @package loadlifter | ||
* @since 2.0.21 | ||
*/ | ||
?> | ||
<!-- wp:group {"className":"accordions is-style-blue","layout":{"type":"constrained","justifyContent":"left"}} --> | ||
<div class="wp-block-group accordions is-style-blue"><!-- wp:details {"summary":"Services we offer"} --> | ||
<details class="wp-block-details"><summary>Services we offer</summary><!-- wp:group {"className":"details-inner","layout":{"type":"default"}} --> | ||
<div class="wp-block-group details-inner"><!-- wp:list --> | ||
<ul><!-- wp:list-item --> | ||
<li>This</li> | ||
<!-- /wp:list-item --> | ||
|
||
<!-- wp:list-item --> | ||
<li>That</li> | ||
<!-- /wp:list-item --> | ||
|
||
<!-- wp:list-item --> | ||
<li>The other service</li> | ||
<!-- /wp:list-item --></ul> | ||
<!-- /wp:list --></div> | ||
<!-- /wp:group --></details> | ||
<!-- /wp:details --> | ||
|
||
<!-- wp:details {"summary":"Another one"} --> | ||
<details class="wp-block-details"><summary>Another one</summary><!-- wp:group {"className":"details-inner","layout":{"type":"default"}} --> | ||
<div class="wp-block-group details-inner"><!-- wp:list --> | ||
<ul><!-- wp:list-item --> | ||
<li>This</li> | ||
<!-- /wp:list-item --> | ||
|
||
<!-- wp:list-item --> | ||
<li>That</li> | ||
<!-- /wp:list-item --> | ||
|
||
<!-- wp:list-item --> | ||
<li>The other service</li> | ||
<!-- /wp:list-item --></ul> | ||
<!-- /wp:list --></div> | ||
<!-- /wp:group --></details> | ||
<!-- /wp:details --></div> | ||
<!-- /wp:group --> |