Browse Source

add footer template part (#6564)

Vicente Canales 2 years ago
parent
commit
3971b5243d
2 changed files with 34 additions and 0 deletions
  1. 1 0
      decibel/parts/footer.html
  2. 33 0
      decibel/patterns/footer.php

+ 1 - 0
decibel/parts/footer.html

@@ -0,0 +1 @@
+<!-- wp:pattern {"slug":"decibel/footer"} /-->

+ 33 - 0
decibel/patterns/footer.php

@@ -0,0 +1,33 @@
+<?php
+/**
+ * Title: Default footer
+ * Slug: decibel/footer
+ * Categories: footer
+ * Block Types: core/template-part/footer
+ */
+?>
+
+<!-- wp:spacer {"height":50} -->
+<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
+<!-- /wp:spacer -->
+
+<!-- wp:group {"layout":{"inherit":true,"type":"constrained"},"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","right":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60"}}}} -->
+<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)">
+<!-- wp:paragraph {"align":"center","style":{"typography":{"textTransform":"uppercase"}},"fontSize":"small","fontFamily":"rubik"} -->
+<p class="has-text-align-center has-rubik-font-family has-small-font-size" style="text-transform:uppercase">
+	<?php
+		/* Translators: Theme name. */
+		$theme_name = '<strong>' . esc_html__( 'Decibel Theme', 'decibel' ) . '</strong>';
+		/* Translators: WordPress link. */
+		$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'decibel' ) ) . '" rel="nofollow">WordPress</a>';
+		echo sprintf(
+		// Translators: Footer credits.
+			esc_html__( '%1$s, Proudly Powered by %2$s', 'decibel' ),
+			$theme_name,
+			$wordpress_link
+		);
+		?>
+</p>
+<!-- /wp:paragraph -->
+</div>
+<!-- /wp:group -->