-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from Codeinwp/New-Patterns
New patterns
- Loading branch information
Showing
38 changed files
with
2,411 additions
and
337 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* About Page | ||
* | ||
* @author Themeisle | ||
* @package raft | ||
* @since 1.0.5 | ||
* | ||
* slug: about-page | ||
* title: About Page | ||
* categories: raft/pages | ||
* keywords: contact, social | ||
*/ | ||
|
||
$raft_strings = apply_filters( 'raft_strings', array() ); | ||
|
||
return array( | ||
'title' => __( 'About Page', 'raft' ), | ||
'categories' => array( 'raft/pages' ), | ||
'content' => ' | ||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80","left":"var:preset|spacing|40","right":"var:preset|spacing|40"},"margin":{"top":"0","bottom":"0"}}},"backgroundColor":"raft-bg-alt","layout":{"inherit":true,"type":"constrained"}} --> | ||
<div class="wp-block-group alignfull has-raft-bg-alt-background-color has-background" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--80);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--40)"> | ||
<!-- wp:heading {"textAlign":"center","level":1,"align":"wide"} --> | ||
<h1 class="wp-block-heading alignwide has-text-align-center">' . esc_html( $raft_strings['about_page_title'] ) . '</h1> | ||
<!-- /wp:heading --> | ||
</div> | ||
<!-- /wp:group --> | ||
<!-- wp:pattern {"slug":"raft/team"} /--> | ||
<!-- wp:pattern {"slug":"raft/centered-text-background"} /--> | ||
<!-- wp:pattern {"slug":"raft/single-feature-button"} /--> | ||
', | ||
); |
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 |
---|---|---|
@@ -1,83 +1,110 @@ | ||
<?php | ||
/** | ||
* Pattern | ||
* Alternating Feature Columns | ||
* | ||
* @author Themeisle | ||
* @package raft | ||
* @since 1.0.5 | ||
* | ||
* Hero Section | ||
* | ||
* slug: alternating-feature-columns | ||
* title: Alternating feature columns | ||
* categories: raft | ||
* keywords: hero, section, features, columns | ||
* title: Alternating Feature Columns | ||
* categories: raft/features | ||
* keywords: alternating, feature, columns | ||
*/ | ||
|
||
$strings = array( | ||
'learn_more' => __( 'Learn More', 'raft' ), | ||
); | ||
$raft_strings = apply_filters( 'raft_strings', array() ); | ||
|
||
$images = array( | ||
RAFT_URL . 'assets/img/shape-010.svg', | ||
RAFT_URL . 'assets/img/shape-011.svg', | ||
); | ||
|
||
return array( | ||
'title' => __( 'Alternating feature columns', 'raft' ), | ||
'title' => __( 'Alternating Feature Columns', 'raft' ), | ||
'categories' => array( 'raft/features' ), | ||
'content' => ' | ||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"0px","bottom":"0px","right":"0px","left":"0px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"0px"}},"layout":{"inherit":false}} --> | ||
<div class="wp-block-group alignfull" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:columns {"verticalAlignment":"center","style":{"spacing":{"blockGap":"0px"}}} --> | ||
<div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"32px","right":"32px","bottom":"32px","left":"32px"}}}} --> | ||
<div class="wp-block-column is-vertically-aligned-center" style="padding-top:32px;padding-right:32px;padding-bottom:32px;padding-left:32px"><!-- wp:group {"layout":{"inherit":false,"contentSize":"600px","type":"constrained"},"otterConditions":[]} --> | ||
<div class="wp-block-group"><!-- wp:heading --> | ||
<h2>Lorem ipsum</h2> | ||
<!-- /wp:heading --> | ||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"0px","bottom":"0px","right":"0px","left":"0px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"0px"}},"layout":{"inherit":false}} --> | ||
<div class="wp-block-group alignfull" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"> | ||
<!-- wp:columns {"verticalAlignment":"center","style":{"spacing":{"blockGap":"0px"}}} --> | ||
<div class="wp-block-columns are-vertically-aligned-center"> | ||
<!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"32px","right":"32px","bottom":"32px","left":"32px"}}}} --> | ||
<div class="wp-block-column is-vertically-aligned-center" style="padding-top:32px;padding-right:32px;padding-bottom:32px;padding-left:32px"> | ||
<!-- wp:group {"layout":{"inherit":false,"contentSize":"600px","type":"constrained"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:heading --> | ||
<h2 class="wp-block-heading">' . esc_html( $raft_strings['feature_title'] ) . '</h2> | ||
<!-- /wp:heading --> | ||
<!-- wp:paragraph --> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:paragraph --> | ||
<p>' . esc_html( $raft_strings['paragraph_text'] ) . '</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:buttons --> | ||
<div class="wp-block-buttons"><!-- wp:button {"className":"is-style-primary","otterConditions":[]} --> | ||
<div class="wp-block-button is-style-primary"><a class="wp-block-button__link wp-element-button">' . esc_html( $strings['learn_more'] ) . '</a></div> | ||
<!-- /wp:button --></div> | ||
<!-- /wp:buttons --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:column --> | ||
<!-- wp:buttons --> | ||
<div class="wp-block-buttons"> | ||
<!-- wp:button {"className":"is-style-primary"} --> | ||
<div class="wp-block-button is-style-primary"> | ||
<a class="wp-block-button__link wp-element-button">' . esc_html( $raft_strings['button_text'] ) . '</a> | ||
</div> | ||
<!-- /wp:button --> | ||
</div> | ||
<!-- /wp:buttons --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:column --> | ||
<!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"32px","right":"32px","bottom":"32px","left":"32px"}}},"backgroundColor":"raft-bg-alt"} --> | ||
<div class="wp-block-column is-vertically-aligned-center has-raft-bg-alt-background-color has-background" style="padding-top:32px;padding-right:32px;padding-bottom:32px;padding-left:32px"><!-- wp:image {"align":"center","sizeSlug":"full","linkDestination":"none"} --> | ||
<figure class="wp-block-image aligncenter size-full"><img src="' . esc_url( $images[0] ) . '" alt=""/></figure> | ||
<!-- /wp:image --></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --> | ||
<!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"32px","right":"32px","bottom":"32px","left":"32px"}}},"backgroundColor":"raft-bg-alt"} --> | ||
<div class="wp-block-column is-vertically-aligned-center has-raft-bg-alt-background-color has-background" style="padding-top:32px;padding-right:32px;padding-bottom:32px;padding-left:32px"> | ||
<!-- wp:image {"align":"center","sizeSlug":"full","linkDestination":"none"} --> | ||
<figure class="wp-block-image aligncenter size-full"> | ||
<img src="' . esc_url( $images[0] ) . '" alt=""/> | ||
</figure> | ||
<!-- /wp:image --> | ||
</div> | ||
<!-- /wp:column --> | ||
</div> | ||
<!-- /wp:columns --> | ||
<!-- wp:columns {"verticalAlignment":"center","style":{"spacing":{"blockGap":"0px"}}} --> | ||
<div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"32px","right":"32px","bottom":"32px","left":"32px"}}},"backgroundColor":"raft-bg-alt"} --> | ||
<div class="wp-block-column is-vertically-aligned-center has-raft-bg-alt-background-color has-background" style="padding-top:32px;padding-right:32px;padding-bottom:32px;padding-left:32px"><!-- wp:image {"align":"center","sizeSlug":"full","linkDestination":"none"} --> | ||
<figure class="wp-block-image aligncenter size-full"><img src="' . esc_url( $images[1] ) . '" alt=""/></figure> | ||
<!-- /wp:image --></div> | ||
<!-- /wp:column --> | ||
<!-- wp:columns {"verticalAlignment":"center","style":{"spacing":{"blockGap":"0px"}}} --> | ||
<div class="wp-block-columns are-vertically-aligned-center"> | ||
<!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"32px","right":"32px","bottom":"32px","left":"32px"}}},"backgroundColor":"raft-bg-alt"} --> | ||
<div class="wp-block-column is-vertically-aligned-center has-raft-bg-alt-background-color has-background" style="padding-top:32px;padding-right:32px;padding-bottom:32px;padding-left:32px"> | ||
<!-- wp:image {"align":"center","sizeSlug":"full","linkDestination":"none"} --> | ||
<figure class="wp-block-image aligncenter size-full"> | ||
<img src="' . esc_url( $images[1] ) . '" alt=""/> | ||
</figure> | ||
<!-- /wp:image --> | ||
</div> | ||
<!-- /wp:column --> | ||
<!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"32px","right":"32px","bottom":"32px","left":"32px"}}}} --> | ||
<div class="wp-block-column is-vertically-aligned-center" style="padding-top:32px;padding-right:32px;padding-bottom:32px;padding-left:32px"><!-- wp:group {"layout":{"inherit":false,"contentSize":"600px","type":"constrained"},"otterConditions":[]} --> | ||
<div class="wp-block-group"><!-- wp:heading --> | ||
<h2>Lorem ipsum</h2> | ||
<!-- /wp:heading --> | ||
<!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"32px","right":"32px","bottom":"32px","left":"32px"}}}} --> | ||
<div class="wp-block-column is-vertically-aligned-center" style="padding-top:32px;padding-right:32px;padding-bottom:32px;padding-left:32px"> | ||
<!-- wp:group {"layout":{"inherit":false,"contentSize":"600px","type":"constrained"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:heading --> | ||
<h2 class="wp-block-heading">' . esc_html( $raft_strings['feature_title'] ) . '</h2> | ||
<!-- /wp:heading --> | ||
<!-- wp:paragraph --> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:paragraph --> | ||
<p>' . esc_html( $raft_strings['paragraph_text'] ) . '</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:buttons --> | ||
<div class="wp-block-buttons"><!-- wp:button {"className":"is-style-primary","otterConditions":[]} --> | ||
<div class="wp-block-button is-style-primary"><a class="wp-block-button__link wp-element-button">' . esc_html( $strings['learn_more'] ) . '</a></div> | ||
<!-- /wp:button --></div> | ||
<!-- /wp:buttons --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --></div> | ||
<!-- /wp:group -->', | ||
<!-- wp:buttons --> | ||
<div class="wp-block-buttons"> | ||
<!-- wp:button {"className":"is-style-primary"} --> | ||
<div class="wp-block-button is-style-primary"> | ||
<a class="wp-block-button__link wp-element-button">' . esc_html( $raft_strings['button_text'] ) . '</a> | ||
</div> | ||
<!-- /wp:button --> | ||
</div> | ||
<!-- /wp:buttons --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:column --> | ||
</div> | ||
<!-- /wp:columns --> | ||
</div> | ||
<!-- /wp:group --> | ||
', | ||
); |
Oops, something went wrong.