Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit the bundled block patterns #29973

Merged
merged 44 commits into from
Apr 19, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
967e639
added new block patterns
MaggieCabrera Mar 18, 2021
21bc477
changed background colors to group block
MaggieCabrera Mar 18, 2021
0a423db
Switch large text to use viewport width font sizes.
kjellr Mar 22, 2021
36deadb
Make "Overseas" font size slightly smaller so it sits on one line.
kjellr Mar 22, 2021
9349744
renaming and pattern adjustments
MaggieCabrera Mar 23, 2021
b2c77c4
linting
MaggieCabrera Mar 23, 2021
c87b788
buttons block pattern
MaggieCabrera Mar 23, 2021
8e378cc
Remove URL links.
kjellr Mar 23, 2021
a44cd15
Adjust categories.
kjellr Mar 23, 2021
4c7fe17
Ensure "Columns" category is registered.
kjellr Mar 23, 2021
6561f68
alt text for images
MaggieCabrera Mar 24, 2021
c9ffb62
added missing alt text
MaggieCabrera Mar 24, 2021
faffc0f
Revise patterns for wider theme support.
kjellr Mar 25, 2021
595f3d4
Replace images with optimized versions
kjellr Mar 25, 2021
22b18b1
Fix line height and block markup error.
kjellr Mar 26, 2021
334c2d2
Remove extra space from text.
kjellr Mar 26, 2021
1f937a5
Add "Three columns of text" to the columns category.
kjellr Mar 29, 2021
eb6b871
Update text for three columns pattern.
kjellr Mar 29, 2021
ed279e1
Set line height for three columns pattern.
kjellr Mar 29, 2021
cddeb89
Update copy for Offset Title direction.
kjellr Mar 29, 2021
5c3d731
Simplify the Two columns of text with offset heading pattern.
kjellr Mar 29, 2021
50fd294
Add a small spacer to the "Three columns with images and text" pattern.
kjellr Mar 29, 2021
602311c
change color values to use hexadecimal
MaggieCabrera Mar 30, 2021
0b08664
fixed syntax
MaggieCabrera Mar 30, 2021
d73cc30
Update images to the final WP.org CDN URLs
kjellr Mar 30, 2021
8a52fe4
renamed patterns and unregistered duplicates
MaggieCabrera Apr 5, 2021
638fd1f
added context and domain to translations, escaped strings
MaggieCabrera Apr 5, 2021
4b86032
unregistered all the old default patterns
MaggieCabrera Apr 5, 2021
e343edb
escape attributes with esc_attr__
MaggieCabrera Apr 5, 2021
047a4f5
escaped strings with html tags using wp_kses_post
MaggieCabrera Apr 5, 2021
7ced16e
linting
MaggieCabrera Apr 5, 2021
e679c01
Update lib/block-patterns/media-text-arquitecture.php
MaggieCabrera Apr 5, 2021
bd7c8e3
Add blockTypes prop for compatibility with #30469.
kjellr Apr 13, 2021
5fce33f
Add categories for uncategorized patterns.
kjellr Apr 13, 2021
09ce72c
Add code comment.
kjellr Apr 13, 2021
03c5327
linting
MaggieCabrera Apr 14, 2021
393fce9
more linting
MaggieCabrera Apr 14, 2021
eb3092e
updated snapshot related to 2 buttons block
MaggieCabrera Apr 15, 2021
6f71de4
fixed conflict
MaggieCabrera Apr 19, 2021
001c639
fixed adding patterns snapshot
MaggieCabrera Apr 19, 2021
f927288
removed IDs from gallery to fix e2e tests
MaggieCabrera Apr 19, 2021
91a3e21
removed unnecesary data attributes
MaggieCabrera Apr 19, 2021
a1b5529
removed unnecesary ids
MaggieCabrera Apr 19, 2021
1cb8196
changed ids to null
MaggieCabrera Apr 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
buttons block pattern
  • Loading branch information
MaggieCabrera committed Apr 19, 2021
commit c87b78836265ddc6340f3a41f675989448a4d8f4
1 change: 1 addition & 0 deletions lib/block-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
'three-images-gallery',
'text-two-columns-2',
'media-text-arquitecture',
'two-buttons-2',
);

foreach ( $core_block_patterns as $core_block_pattern ) {
Expand Down
22 changes: 22 additions & 0 deletions lib/block-patterns/two-buttons-2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
/**
* Two Buttons block pattern.
*
* @package WordPress
*/

return array(
'title' => __( 'Two buttons' ),
'content' => '<!-- wp:buttons {"contentJustification":"center"} -->
<div class="wp-block-buttons is-content-justification-center"><!-- wp:button {"borderRadius":0} -->
<div class="wp-block-button"><a class="wp-block-button__link no-border-radius">' . __( 'Our Work' ) . '</a></div>
<!-- /wp:button -->

<!-- wp:button {"borderRadius":1,"className":"is-style-outline"} -->
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" style="border-radius:1px">' . __( 'Where We Are' ) . '</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->',
'viewportWidth' => 500,
'categories' => array( 'buttons' ),
'description' => _x( 'Two buttons, one filled and one outlined, side by side.', 'Block pattern description' ),
);