cmt-engineering-theme/patterns/news.php

50 lines
2.4 KiB
PHP
Raw Normal View History

2024-04-26 14:50:58 +00:00
<?php
/**
* Title: News
* Slug: cmt/news
* Description: Default content for the Latest News page
* Categories: cmt, featured
*/
?>
2024-04-26 15:25:06 +00:00
<!-- wp:query {"queryId":9,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":{"category":[7]}}} -->
<div class="wp-block-query"><!-- wp:post-template -->
2024-04-26 14:50:58 +00:00
<!-- wp:columns -->
2024-04-26 15:25:06 +00:00
<div class="wp-block-columns"><!-- wp:column {"verticalAlignment":"center","width":"10%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:10%"><!-- wp:post-date {"textAlign":"center","format":"F j, Y","style":{"typography":{"fontStyle":"normal","fontWeight":"700"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}},"spacing":{"margin":{"bottom":"var:preset|spacing|40"}}},"textColor":"primary","fontSize":"medium"} /--></div>
2024-04-26 14:50:58 +00:00
<!-- /wp:column -->
2024-04-26 15:25:06 +00:00
<!-- wp:column {"width":"80%"} -->
<div class="wp-block-column" style="flex-basis:80%"><!-- wp:post-title /-->
2024-04-26 14:50:58 +00:00
2024-04-26 15:39:29 +00:00
<!-- wp:post-excerpt {"moreText":"Read more","style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}}} /-->
2024-04-26 14:50:58 +00:00
2024-04-26 15:38:35 +00:00
<!-- wp:spacer {"height":"11px"} -->
<div style="height:11px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
2024-04-26 15:25:06 +00:00
<!-- wp:separator {"style":{"spacing":{"margin":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"primary","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-primary-color has-alpha-channel-opacity has-primary-background-color has-background is-style-wide" style="margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)" />
<!-- /wp:separator -->
2024-04-26 14:50:58 +00:00
</div>
2024-04-26 15:25:06 +00:00
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
<!-- /wp:post-template -->
2024-04-26 14:50:58 +00:00
2024-04-26 15:25:06 +00:00
<!-- wp:query-pagination {"style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"layout":{"type":"flex","justifyContent":"center"}} -->
<!-- wp:query-pagination-previous /-->
2024-04-26 14:50:58 +00:00
2024-04-26 15:25:06 +00:00
<!-- wp:query-pagination-numbers /-->
2024-04-26 14:50:58 +00:00
2024-04-26 15:25:06 +00:00
<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->
2024-04-26 14:50:58 +00:00
2024-04-26 15:38:35 +00:00
<!-- wp:query-no-results -->
<!-- wp:paragraph {"placeholder":"Add text or blocks that will display when a query returns no results."} -->
<p></p>
<!-- /wp:paragraph -->
<!-- /wp:query-no-results -->
2024-04-26 14:50:58 +00:00
</div>
2024-04-26 15:25:06 +00:00
<!-- /wp:query -->