Browse Source

Remote: add large quote pattern (#5696)

Madhu Dollu 3 years ago
parent
commit
66f03c4b72
2 changed files with 26 additions and 0 deletions
  1. 1 0
      remote/inc/block-patterns.php
  2. 25 0
      remote/inc/patterns/large-quote.php

+ 1 - 0
remote/inc/block-patterns.php

@@ -47,6 +47,7 @@ function remote_register_block_patterns() {
 
 	$block_patterns = array(
 		'hero-text',
+		'large-quote',
 		'hidden-404-content',
 		'hidden-search-form',
 		'image-with-text',

+ 25 - 0
remote/inc/patterns/large-quote.php

@@ -0,0 +1,25 @@
+<?php
+/**
+ * Large Quote
+ *
+ * @package Remote
+ */
+
+return array(
+	'title'      => __( 'Large quote', 'remote' ),
+	'categories' => array( 'text', 'featured' ),
+	'content'    => 
+    '<!-- wp:group {"style":{"spacing":{"blockGap":"40px","padding":{"top":"20px","bottom":"20px"}}}} -->
+    <div class="wp-block-group" style="padding-top:20px;padding-bottom:20px">
+
+    <!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.25"}},"fontSize":"medium"} -->
+    <p class="has-medium-font-size" style="line-height:1.25">' . esc_html__( 'I’m spending more time with my family, exercising more, and getting more sleep.', 'remote' ) . '</p>
+    <!-- /wp:paragraph -->
+
+    <!-- wp:paragraph {"style":{"typography":{"fontStyle":"normal","fontWeight":"400","lineHeight":"1.3"}},"fontSize":"small"} -->
+    <p class="has-small-font-size" style="font-style:normal;font-weight:400;line-height:1.3">' . esc_html__( '— Jane Adams', 'remote' ) . '</p>
+    <!-- /wp:paragraph -->
+
+    </div>
+    <!-- /wp:group -->',
+);