summaryrefslogtreecommitdiffstats
path: root/wp-content/themes/twentytwentytwo/inc/patterns/query-text-grid.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:56:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:56:49 +0000
commita415c29efee45520ae252d2aa28f1083a521cd7b (patch)
treef4ade4b6668ecc0765de7e1424f7c1427ad433ff /wp-content/themes/twentytwentytwo/inc/patterns/query-text-grid.php
parentInitial commit. (diff)
downloadwordpress-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/query-text-grid.php')
-rw-r--r--wp-content/themes/twentytwentytwo/inc/patterns/query-text-grid.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/query-text-grid.php b/wp-content/themes/twentytwentytwo/inc/patterns/query-text-grid.php
new file mode 100644
index 0000000..a8f84d3
--- /dev/null
+++ b/wp-content/themes/twentytwentytwo/inc/patterns/query-text-grid.php
@@ -0,0 +1,31 @@
+<?php
+/**
+ * Text-based grid of posts block pattern
+ */
+return array(
+ 'title' => __( 'Text-based grid of posts', 'twentytwentytwo' ),
+ 'categories' => array( 'query' ),
+ 'blockTypes' => array( 'core/query' ),
+ 'content' => '<!-- wp:query {"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":12},"displayLayout":{"type":"flex","columns":3},"align":"wide","layout":{"inherit":true}} -->
+ <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
+
+ <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
+
+ <!-- wp:post-excerpt /-->
+
+ <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
+ <!-- /wp:post-template -->
+
+ <!-- wp:separator {"align":"wide","className":"is-style-wide"} -->
+ <hr class="wp-block-separator alignwide is-style-wide"/>
+ <!-- /wp:separator -->
+
+ <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
+ <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
+
+ <!-- wp:query-pagination-numbers /-->
+
+ <!-- wp:query-pagination-next {"fontSize":"small"} /-->
+ <!-- /wp:query-pagination --></div>
+ <!-- /wp:query -->',
+);