-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Editing Toolkit: Load patterns from the rest API endpoint (#4…
- Loading branch information
Showing
52 changed files
with
2,995 additions
and
101 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
29 changes: 29 additions & 0 deletions
29
apps/editing-toolkit/editing-toolkit-plugin/block-patterns/patterns/audio-player.php
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,29 @@ | ||
<?php | ||
/** | ||
* Podcast pattern. | ||
* | ||
* @package A8C\FSE | ||
*/ | ||
|
||
$markup = ' | ||
<!-- wp:cover {"customOverlayColor":"#54426b","minHeight":250,"align":"full"} --> | ||
<div class="wp-block-cover alignfull has-background-dim" style="background-color:#54426b;min-height:250px"><div class="wp-block-cover__inner-container"><!-- wp:heading {"align":"center","level":5,"style":{"color":{"text":"#ffffff"}}} --> | ||
<h5 class="has-text-align-center has-text-color" style="color:#ffffff"><strong>%1$s</strong></h5> | ||
<!-- /wp:heading --> | ||
<!-- wp:audio {"id":1502} --> | ||
<figure class="wp-block-audio"><audio controls src="https://dotcompatterns.files.wordpress.com/2020/06/komiku_-_02_-_chill_out_theme.mp3"></audio></figure> | ||
<!-- /wp:audio --></div></div> | ||
<!-- /wp:cover --> | ||
'; | ||
|
||
return array( | ||
'__file' => 'wp_block', | ||
'title' => esc_html__( 'Audio Player', 'full-site-editing' ), | ||
'categories' => array( 'about', 'media', 'podcast' ), | ||
'content' => sprintf( | ||
$markup, | ||
esc_html__( 'First time here? Let me tell you why this show rocks!', 'full-site-editing' ) | ||
), | ||
'viewportWidth' => 1280, | ||
); |
44 changes: 44 additions & 0 deletions
44
apps/editing-toolkit/editing-toolkit-plugin/block-patterns/patterns/call-to-action-02.php
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,44 @@ | ||
<?php | ||
/** | ||
* Call to Action pattern. | ||
* | ||
* @package A8C\FSE | ||
*/ | ||
|
||
$markup = ' | ||
<!-- wp:cover {"url":"https://dotcompatterns.files.wordpress.com/2020/04/louis-hansel-shotsoflouis-d0ueoxdvj5i-unsplash.jpg","id":181,"dimRatio":20,"customOverlayColor":"#000000","focalPoint":{"x":0.5,"y":"0.70"},"minHeight":620,"align":"full"} --> | ||
<div class="wp-block-cover alignfull has-background-dim-20 has-background-dim" style="background-image:url(https://dotcompatterns.files.wordpress.com/2020/04/louis-hansel-shotsoflouis-d0ueoxdvj5i-unsplash.jpg);background-color:#000000;background-position:50% 70%;min-height:620px"> | ||
<div class="wp-block-cover__inner-container"> | ||
<!-- wp:jetpack/layout-grid {"addGutterEnds":false,"column1DesktopSpan":10,"column1DesktopOffset":1,"column1TabletSpan":8,"column1MobileSpan":4,"column2DesktopOffset":1,"className":"column1-desktop-grid__span-10 column1-desktop-grid__start-2 column1-desktop-grid__row-1 column1-tablet-grid__span-8 column1-tablet-grid__row-1 column1-mobile-grid__span-4 column1-mobile-grid__row-1"} --> | ||
<div class="wp-block-jetpack-layout-grid alignfull column1-desktop-grid__span-10 column1-desktop-grid__start-2 column1-desktop-grid__row-1 column1-tablet-grid__span-8 column1-tablet-grid__row-1 column1-mobile-grid__span-4 column1-mobile-grid__row-1 wp-block-jetpack-layout-gutter__nowrap"> | ||
<!-- wp:jetpack/layout-grid-column --> | ||
<div class="wp-block-jetpack-layout-grid-column wp-block-jetpack-layout-grid__padding-none"> | ||
<!-- wp:paragraph {"align":"center","customTextColor":"#ffffff","style":{"typography":{"fontSize":80}},"className":"margin-bottom-none"} --> | ||
<p style="color:#ffffff;font-size:80px" class="has-text-color has-text-align-center margin-bottom-none"><strong>' . esc_html__( 'Get it delivered', 'full-site-editing' ) . '</strong></p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:paragraph {"align":"center","customTextColor":"#ffffff","className":"margin-top-none"} --> | ||
<p style="color:#ffffff" class="has-text-color has-text-align-center margin-top-none">' . esc_html__( 'If you can’t come to us, we’ll go to you.', 'full-site-editing' ) . '</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:buttons {"align":"center"} --> | ||
<div class="wp-block-buttons aligncenter"><!-- wp:button {"style":{"color":{"text":"#ffffff","background":"#a5150f"}}} --> | ||
<a class="wp-block-button wp-block-button__link has-text-color has-background" style="background-color:#a5150f;color:#ffffff">' . esc_html__( 'Order now', 'full-site-editing' ) . '</a> | ||
<!-- /wp:button --> | ||
</div> | ||
<!-- /wp:buttons --> | ||
</div> | ||
<!-- /wp:jetpack/layout-grid-column --> | ||
</div> | ||
<!-- /wp:jetpack/layout-grid --> | ||
</div> | ||
</div> | ||
<!-- /wp:cover --> | ||
'; | ||
|
||
return array( | ||
'title' => esc_html__( 'Call to Action', 'full-site-editing' ), | ||
'categories' => array( 'call-to-action' ), | ||
'content' => $markup, | ||
'viewportWidth' => 1280, | ||
); |
65 changes: 65 additions & 0 deletions
65
apps/editing-toolkit/editing-toolkit-plugin/block-patterns/patterns/call-to-action-03.php
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,65 @@ | ||
<?php | ||
/** | ||
* Call to Action pattern. | ||
* | ||
* @package A8C\FSE | ||
*/ | ||
|
||
$markup = ' | ||
<!-- wp:jetpack/layout-grid {"gutterSize":"none","addGutterEnds":false,"column1DesktopSpan":6,"column1TabletSpan":4,"column1MobileSpan":4,"column2DesktopSpan":6,"column2TabletSpan":4,"column2MobileSpan":4,"className":"column1-desktop-grid__span-6 column1-desktop-grid__row-1 column2-desktop-grid__span-6 column2-desktop-grid__start-7 column2-desktop-grid__row-1 column1-tablet-grid__span-4 column1-tablet-grid__row-1 column2-tablet-grid__span-4 column2-tablet-grid__start-5 column2-tablet-grid__row-1 column1-mobile-grid__span-4 column1-mobile-grid__row-1 column2-mobile-grid__span-4 column2-mobile-grid__row-2"} --> | ||
<div class="wp-block-jetpack-layout-grid alignfull column1-desktop-grid__span-6 column1-desktop-grid__row-1 column2-desktop-grid__span-6 column2-desktop-grid__start-7 column2-desktop-grid__row-1 column1-tablet-grid__span-4 column1-tablet-grid__row-1 column2-tablet-grid__span-4 column2-tablet-grid__start-5 column2-tablet-grid__row-1 column1-mobile-grid__span-4 column1-mobile-grid__row-1 column2-mobile-grid__span-4 column2-mobile-grid__row-2 wp-block-jetpack-layout-gutter__nowrap wp-block-jetpack-layout-gutter__none"><!-- wp:jetpack/layout-grid-column --> | ||
<div class="wp-block-jetpack-layout-grid-column wp-block-jetpack-layout-grid__padding-none"><!-- wp:cover {"customOverlayColor":"#e40285"} --> | ||
<div class="wp-block-cover has-background-dim" style="background-color:#e40285"><div class="wp-block-cover__inner-container"><!-- wp:group {"style":{"color":{"text":"#ffffff","background":"#e40285"}}} --> | ||
<div class="wp-block-group has-text-color has-background" style="background-color:#e40285;color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:heading {"style":{"color":{"text":"#ffffff"}}} --> | ||
<h2 class="has-text-color" style="color:#ffffff"><strong>%1$s</strong></h2> | ||
<!-- /wp:heading --> | ||
<!-- wp:paragraph {"style":{"color":{"text":"#ffffff"}}} --> | ||
<p class="has-text-color" style="color:#ffffff">%2$s</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:buttons --> | ||
<div class="wp-block-buttons"><!-- wp:button {"style":{"color":{"text":"#ffffff","background":"#2e008b"}},"className":"is-style-fill"} --> | ||
<div class="wp-block-button is-style-fill"><a class="wp-block-button__link has-text-color has-background" style="background-color:#2e008b;color:#ffffff">%3$s</a></div> | ||
<!-- /wp:button --></div> | ||
<!-- /wp:buttons --></div></div> | ||
<!-- /wp:group --></div></div> | ||
<!-- /wp:cover --></div> | ||
<!-- /wp:jetpack/layout-grid-column --> | ||
<!-- wp:jetpack/layout-grid-column --> | ||
<div class="wp-block-jetpack-layout-grid-column wp-block-jetpack-layout-grid__padding-none"><!-- wp:cover {"customOverlayColor":"#2e008b"} --> | ||
<div class="wp-block-cover has-background-dim" style="background-color:#2e008b"><div class="wp-block-cover__inner-container"><!-- wp:group {"style":{"color":{"text":"#ffffff","background":"#2e008b"}}} --> | ||
<div class="wp-block-group has-text-color has-background" style="background-color:#2e008b;color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:heading {"style":{"color":{"text":"#ffffff"}}} --> | ||
<h2 class="has-text-color" style="color:#ffffff"><strong>%4$s</strong></h2> | ||
<!-- /wp:heading --> | ||
<!-- wp:paragraph {"style":{"color":{"text":"#ffffff"}}} --> | ||
<p class="has-text-color" style="color:#ffffff">%5$s</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:buttons --> | ||
<div class="wp-block-buttons"><!-- wp:button {"style":{"color":{"text":"#ffffff","background":"#e40285"}},"className":"is-style-fill"} --> | ||
<div class="wp-block-button is-style-fill"><a class="wp-block-button__link has-text-color has-background" style="background-color:#e40285;color:#ffffff">%3$s</a></div> | ||
<!-- /wp:button --></div> | ||
<!-- /wp:buttons --></div></div> | ||
<!-- /wp:group --></div></div> | ||
<!-- /wp:cover --></div> | ||
<!-- /wp:jetpack/layout-grid-column --></div> | ||
<!-- /wp:jetpack/layout-grid --> | ||
'; | ||
|
||
return array( | ||
'__file' => 'wp_block', | ||
'title' => esc_html__( 'Call to Action', 'full-site-editing' ), | ||
'categories' => array( 'call-to-action' ), | ||
'content' => sprintf( | ||
$markup, | ||
esc_html__( 'Want to volunteer?', 'full-site-editing' ), | ||
esc_html__( 'We’ve had an incredible response so far, and are doing everything we can to respond to everyone who wants to volunteer in one of our community programmes.', 'full-site-editing' ), | ||
esc_html__( 'Get involved', 'full-site-editing' ), | ||
esc_html__( 'Are you a business?', 'full-site-editing' ), | ||
esc_html__( 'We are uniting our resources around this challenge, and we are combining our resources and asks to make it easy for people to support their communities.', 'full-site-editing' ) | ||
), | ||
'viewportWidth' => 1280, | ||
); |
Oops, something went wrong.