-
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.
- Loading branch information
Showing
1 changed file
with
25 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,39 @@ | ||
<?php | ||
/** | ||
* Pattern | ||
* Call to Action Pattern | ||
* | ||
* @author Themeisle | ||
* @package raft | ||
* @since 1.0.0 | ||
* @since 1.0.5 | ||
* | ||
* slug: call-to-action | ||
* title: Call to action | ||
* categories: raft | ||
* keywords: section, cta, button | ||
* title: Call to Action | ||
* categories: raft/call_to_action | ||
* keywords: call to action, engagement, interaction | ||
*/ | ||
|
||
$raft_strings = apply_filters( 'raft_strings', array() ); | ||
|
||
return array( | ||
'title' => __( 'Call to action', 'raft' ), | ||
'title' => __( 'Call to Action', 'raft' ), | ||
'categories' => array( 'raft/call_to_action' ), | ||
'content' => ' | ||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"blockGap":"40px","margin":{"top":"0px","bottom":"0px"}}},"backgroundColor":"raft-accent","textColor":"raft-fg-alt","layout":{"inherit":true}} --> | ||
<div class="wp-block-group alignfull has-raft-fg-alt-color has-raft-accent-background-color has-text-color has-background" style="margin-top:0px;margin-bottom:0px;padding-top:64px;padding-bottom:64px"> | ||
<!-- wp:heading {"textAlign":"center","textColor":"raft-fg-alt"} --> | ||
<h2 class="has-text-align-center has-raft-fg-alt-color has-text-color">Lorem ipsum sit dolor!</h2> | ||
<!-- /wp:heading --> | ||
<!-- 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"},"blockGap":"var:preset|spacing|50","margin":{"top":"0px","bottom":"0px"}}},"backgroundColor":"raft-accent","textColor":"raft-fg-alt","layout":{"inherit":true,"type":"constrained"}} --> | ||
<div class="wp-block-group alignfull has-raft-fg-alt-color has-raft-accent-background-color has-text-color has-background" style="margin-top:0px;margin-bottom:0px;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","textColor":"raft-fg-alt"} --> | ||
<h2 class="wp-block-heading has-text-align-center has-raft-fg-alt-color has-text-color">' . esc_html( $raft_strings['cta_title'] ) . '</h2> | ||
<!-- /wp:heading --> | ||
<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} --> | ||
<div class="wp-block-buttons"> | ||
<!-- wp:button {"textColor":"raft-fg-alt","className":"is-style-outline"} --> | ||
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link has-raft-fg-alt-color has-text-color">Lorem ipsum</a></div> | ||
<!-- /wp:button --> | ||
</div> | ||
<!-- /wp:buttons --> | ||
</div> | ||
<!-- /wp:group -->', | ||
<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} --> | ||
<div class="wp-block-buttons"> | ||
<!-- wp:button {"textColor":"raft-fg-alt","className":"is-style-outline"} --> | ||
<div class="wp-block-button is-style-outline"> | ||
<a class="wp-block-button__link has-raft-fg-alt-color has-text-color wp-element-button">' . esc_html( $raft_strings['button_text'] ) . '</a> | ||
</div> | ||
<!-- /wp:button --> | ||
</div> | ||
<!-- /wp:buttons --> | ||
</div> | ||
<!-- /wp:group --> | ||
', | ||
); |