1c945894e8
* Changes from WordPress Playground: - Replaces screenshot with one with the right size - Adjusts spacing between columns in the theme's templates - Adjusts pullquote and code block Also exported as a zip file. * [Preview loaded from this PR – available **before** this PR is merged](https://playground.wordpress.net/?import-site=https%3A%2F%2Fraw.githubusercontent.com%2FAutomattic%2Fthemes%2Fplayground-changes-2024-05-20T13-35-25-016Z%2Floic%2Fplayground.zip) * [Preview loaded from the main branch – available **after** this PR is merged](https://playground.wordpress.net/?import-site=https%3A%2F%2Fraw.githubusercontent.com%2FAutomattic%2Fthemes%2Ftrunk%2Floic%2Fplayground.zip) * Remove playground.zip * Make footer credits translatable * Fix textdomain * Fix another textdomain --------- Co-authored-by: Sarah Norris <sarah@sekai.co.uk>
63 lines
No EOL
3.9 KiB
PHP
63 lines
No EOL
3.9 KiB
PHP
<?php
|
|
/**
|
|
* Title: search
|
|
* Slug: loic/search
|
|
* Categories: hidden
|
|
* Inserter: no
|
|
*/
|
|
?>
|
|
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","right":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60"}}},"layout":{"type":"default"}} -->
|
|
<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:group {"align":"full","style":{"spacing":{"padding":{"bottom":"0","top":"0","right":"0","left":"0"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
|
<div class="wp-block-group alignfull" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"flex"}} -->
|
|
<div class="wp-block-group"><!-- wp:query-title {"type":"search"} /--></div>
|
|
<!-- /wp:group -->
|
|
|
|
<!-- wp:site-logo {"width":40,"shouldSyncIcon":true,"className":"is-style-rounded","style":{"layout":{"selfStretch":"fit"},"color":[]}} /--></div>
|
|
<!-- /wp:group --></div>
|
|
<!-- /wp:group -->
|
|
|
|
<!-- wp:group {"style":{"spacing":{"padding":{"bottom":"0","left":"var:preset|spacing|60","right":"var:preset|spacing|60","top":"0"}},"border":{"radius":"0px","style":"none","width":"0px"}},"layout":{"type":"default"}} -->
|
|
<div class="wp-block-group" style="border-style:none;border-width:0px;border-radius:0px;padding-top:0;padding-right:var(--wp--preset--spacing--60);padding-bottom:0;padding-left:var(--wp--preset--spacing--60)"><!-- wp:search {"label":"Search","showLabel":false,"buttonText":"Search"} /--></div>
|
|
<!-- /wp:group -->
|
|
|
|
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|80","right":"var:preset|spacing|60","bottom":"var:preset|spacing|80","left":"var:preset|spacing|60"}}},"layout":{"type":"default"}} -->
|
|
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--80);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--60)"><!-- wp:query {"queryId":0,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"tagName":"main","layout":{"type":"constrained"}} -->
|
|
<main class="wp-block-query"><!-- wp:post-template {"align":"full"} -->
|
|
<!-- wp:columns {"style":{"spacing":{"blockGap":{"left":"4em"}}}} -->
|
|
<div class="wp-block-columns"><!-- wp:column {"width":"30%"} -->
|
|
<div class="wp-block-column" style="flex-basis:30%"><!-- wp:template-part {"slug":"post-meta","area":"uncategorized"} /--></div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column {"width":"50%"} -->
|
|
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
|
|
|
|
<!-- wp:post-excerpt {"showMoreOnNewLine":false,"excerptLength":60} /-->
|
|
|
|
<!-- wp:spacer {"height":"70px"} -->
|
|
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
<!-- /wp:spacer --></div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column {"width":"20%"} -->
|
|
<div class="wp-block-column" style="flex-basis:20%"></div>
|
|
<!-- /wp:column --></div>
|
|
<!-- /wp:columns -->
|
|
<!-- /wp:post-template -->
|
|
|
|
<!-- wp:query-no-results -->
|
|
<!-- wp:paragraph -->
|
|
<p><?php echo __('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'loic');?></p>
|
|
<!-- /wp:paragraph -->
|
|
<!-- /wp:query-no-results -->
|
|
|
|
<!-- wp:group {"align":"full","layout":{"type":"constrained"}} -->
|
|
<div class="wp-block-group alignfull"><!-- wp:query-pagination {"align":"full","layout":{"type":"flex","justifyContent":"space-between"}} -->
|
|
<!-- wp:query-pagination-previous {"fontSize":"large"} /-->
|
|
|
|
<!-- wp:query-pagination-next {"fontSize":"large"} /-->
|
|
<!-- /wp:query-pagination --></div>
|
|
<!-- /wp:group --></main>
|
|
<!-- /wp:query --></div>
|
|
<!-- /wp:group -->
|
|
|
|
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|