-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more patterns and fixed formatting errors
- Loading branch information
Showing
24 changed files
with
976 additions
and
326 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
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
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,62 @@ | ||
<?php | ||
/** | ||
* Title: Content 5 | ||
* Slug: quickwp/content-5 | ||
* Categories: quickwp/content | ||
*/ | ||
|
||
$quickwp_strings = apply_filters('quickwp_strings', array()); | ||
Check failure on line 8 in patterns/content-5.php GitHub Actions / Lint: PHP
|
||
|
||
$images = array( | ||
QUICKWP_URL . 'assets/img/qwp-img-02.webp', | ||
QUICKWP_URL . 'assets/img/qwp-img-03.webp', | ||
); | ||
?> | ||
|
||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70","left":"var:preset|spacing|40","right":"var:preset|spacing|40"},"margin":{"top":"0","bottom":"0"},"blockGap":"var:preset|spacing|60"}},"backgroundColor":"base-2","layout":{"type":"constrained"},"metadata":{}} --> | ||
<div class="wp-block-group alignfull has-base-2-background-color has-background" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--40)"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group"><!-- wp:heading --> | ||
<h2 class="wp-block-heading"><?php echo esc_html( $quickwp_strings['section_title'] ); ?></h2> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:buttons --> | ||
<div class="wp-block-buttons"><!-- wp:button --> | ||
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button"><?php echo esc_html( $quickwp_strings['button_text_2'] ); ?></a></div> | ||
<!-- /wp:button --></div> | ||
<!-- /wp:buttons --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:columns {"align":"wide"} --> | ||
<div class="wp-block-columns alignwide"><!-- wp:column {"width":"33.33%"} --> | ||
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:heading {"level":3} --> | ||
<h3 class="wp-block-heading"><?php echo esc_html( $quickwp_strings['subtitle'] ); ?></h3> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:paragraph {"fontSize":"small"} --> | ||
<p class="has-small-font-size"><?php echo esc_html( $quickwp_strings['feature_description'] ); ?></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:heading {"level":3} --> | ||
<h3 class="wp-block-heading"><?php echo esc_html( $quickwp_strings['subtitle'] ); ?></h3> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:paragraph {"fontSize":"small"} --> | ||
<p class="has-small-font-size"><?php echo esc_html( $quickwp_strings['feature_description'] ); ?></p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column {"width":"66.66%"} --> | ||
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:image {"id":233,"sizeSlug":"full","linkDestination":"none"} --> | ||
<figure class="wp-block-image size-full"><img <?php echo 'src="' . esc_url( $images[0] ) . '"'; ?> alt="" class="wp-image-233"/></figure> | ||
<!-- /wp:image --></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column {"width":"66.66%"} --> | ||
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:image {"id":234,"sizeSlug":"full","linkDestination":"none","style":{"color":{}}} --> | ||
<figure class="wp-block-image size-full"><img <?php echo 'src="' . esc_url( $images[1] ) . '"'; ?> alt="" class="wp-image-234"/></figure> | ||
<!-- /wp:image --></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --></div> | ||
<!-- /wp:group --> |
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,57 @@ | ||
<?php | ||
/** | ||
* Title: Content 6 | ||
* Slug: quickwp/content-6 | ||
* Categories: quickwp/content | ||
*/ | ||
|
||
$quickwp_strings = apply_filters( 'quickwp_strings', array() ); | ||
|
||
$images = array( | ||
QUICKWP_URL . 'assets/img/qwp-img-06.webp', // Image path | ||
); | ||
?> | ||
|
||
<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}},"elements":{"link":{"color":{"text":"var:preset|color|contrast-4"}}}},"backgroundColor":"base-3","textColor":"contrast-4","layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignfull has-contrast-4-color has-base-3-background-color has-text-color has-background has-link-color" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|40","left":"var:preset|spacing|50"}}}} --> | ||
<div class="wp-block-columns alignwide"> | ||
<!-- wp:column {"verticalAlignment":"center","width":"50%"} --> | ||
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:50%"> | ||
<!-- wp:image {"id":242,"aspectRatio":"3/4","scale":"cover","sizeSlug":"full","linkDestination":"none","className":"is-style-default"} --> | ||
<figure class="wp-block-image size-full is-style-default"><img src="<?php echo esc_url( $images[0] ); ?>" alt="" class="wp-image-242" style="aspect-ratio:3/4;object-fit:cover"/></figure> | ||
<!-- /wp:image --> | ||
</div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column {"verticalAlignment":"stretch","width":"50%"} --> | ||
<div class="wp-block-column is-vertically-aligned-stretch" style="flex-basis:50%"> | ||
<!-- wp:group {"style":{"dimensions":{"minHeight":"100%"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","verticalAlignment":"space-between"}} --> | ||
<div class="wp-block-group" style="min-height:100%"> | ||
<!-- wp:paragraph {"fontSize":"x-large"} --> | ||
<p class="has-x-large-font-size"><?php echo esc_html( $quickwp_strings['feature_description'] ); ?></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:group {"layout":{"type":"constrained","contentSize":"300px","justifyContent":"left"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:paragraph {"style":{"layout":{"selfStretch":"fixed","flexSize":"50%"}}} --> | ||
<p><?php echo esc_html( $quickwp_strings['feature_description'] ); ?></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:buttons --> | ||
<div class="wp-block-buttons"> | ||
<!-- wp:button {"className":"is-style-outline"} --> | ||
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link wp-element-button"><?php echo esc_html( $quickwp_strings['button_text_2'] ); ?></a></div> | ||
<!-- /wp:button --> | ||
</div> | ||
<!-- /wp:buttons --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:column --> | ||
</div> | ||
<!-- /wp:columns --> | ||
</div> | ||
<!-- /wp:group --> |
Oops, something went wrong.