diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:56:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:56:49 +0000 |
commit | a415c29efee45520ae252d2aa28f1083a521cd7b (patch) | |
tree | f4ade4b6668ecc0765de7e1424f7c1427ad433ff /wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php | |
parent | Initial commit. (diff) | |
download | wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.tar.xz wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.zip |
Adding upstream version 6.4.3+dfsg1.upstream/6.4.3+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php')
-rw-r--r-- | wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php b/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php new file mode 100644 index 0000000..13bb43d --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php @@ -0,0 +1,39 @@ +<?php +/** + * Footer with query, title, and citation + */ +return array( + 'title' => __( 'Footer with query, title, and citation', 'twentytwentytwo' ), + 'categories' => array( 'footer' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"primary","textColor":"background","layout":{"inherit":true}} --> + <div class="wp-block-group alignfull has-background-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":3},"align":"wide"} --> + <div class="wp-block-query alignwide"><!-- wp:post-template --> + <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /--> + + <!-- wp:post-excerpt /--> + + <!-- wp:post-date {"isLink":true} /--> + <!-- /wp:post-template --></div> + <!-- /wp:query --> + + <!-- wp:spacer --> + <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + + <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> + <div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title {"level":0} /--> + <!-- wp:group {"layout":{"type":"flex","justifyContent":"right"}} --> + <div class="wp-block-group"> + <!-- wp:paragraph --> + <p>' . + sprintf( + /* Translators: WordPress link. */ + esc_html__( 'Proudly powered by %s', 'twentytwentytwo' ), + '<a href="' . esc_url( __( 'https://wordpress.org', 'twentytwentytwo' ) ) . '" rel="nofollow">WordPress</a>' + ) . '</p> + <!-- /wp:paragraph --></div> + <!-- /wp:group --></div> + <!-- /wp:group --></div> + <!-- /wp:group -->', +); |