소스 검색

Update Blank Canvas Blocks footer (#5346)

Ben Dwyer 3 년 전
부모
커밋
a12962e011

+ 1 - 0
blank-canvas-blocks/block-template-parts/footer.html

@@ -0,0 +1 @@
+<!-- wp:pattern {"slug":"blockbase/footer-with-site-title"} /-->

+ 1 - 1
blockbase/block-template-parts/header.html

@@ -2,4 +2,4 @@
 
 <!-- wp:spacer {"height":50} -->
 <div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
-<!-- /wp:spacer -->
+<!-- /wp:spacer -->

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

@@ -26,6 +26,7 @@ if ( ! function_exists( 'blockbase_register_block_patterns' ) ) :
 				'footer-simple',
 				'footer-small',
 				'footer-vertical-menu',
+				'footer-with-site-title',
 			);
 
 			foreach ( $block_patterns as $block_pattern ) {

+ 24 - 0
blockbase/inc/patterns/footer-with-site-title.php

@@ -0,0 +1,24 @@
+<?php
+/**
+ * Footer with Site Title
+ *
+ * @package Blockbase
+ */
+
+return array(
+	'title'      => __( 'Footer with site title', 'blockbase' ),
+	'categories' => array( 'blockbase' ),
+	'blockTypes' => array( 'core/template-part/footer' ),
+	'content'    => '<!-- wp:group {"layout":{"inherit":true}} -->
+	<div class="wp-block-group">
+		<!-- wp:group {"layout":{"type":"flex","justifyContent":"center"},"style":{"spacing":{"padding":{"top":"80px","bottom":"30px"}}}} -->
+		<div class="wp-block-group" style="padding-top:80px;padding-bottom:30px">
+			<!-- wp:site-title /-->
+			<!-- wp:paragraph {"align":"center"} -->
+			<p class="has-text-align-center">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
+			<!-- /wp:paragraph -->
+		</div>
+		<!-- /wp:group -->
+	</div>
+	<!-- /wp:group -->',
+);