-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [#39] setting up archive page * [#39] Setting default image for Auction index * [#39] setting number of post per page on auction index * [#39] adding auction archive page to nav * [#39] pattern refactor to use plugin * [#39] fixing PR edits * [#39] removing page for menu * [#39] updating default post per page
- Loading branch information
1 parent
0737f7e
commit 7ccc537
Showing
6 changed files
with
130 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
client-mu-plugins/goodbids/views/patterns/sample-pattern.php
This file was deleted.
Oops, something went wrong.
62 changes: 62 additions & 0 deletions
62
client-mu-plugins/goodbids/views/patterns/template-archive-auction.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
/** | ||
* Pattern: Auction Archive | ||
* | ||
* @since 1.0.0 | ||
* @package GoodBids | ||
*/ | ||
?> | ||
|
||
<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"0","margin":{"top":"0"}}},"layout":{"type":"constrained","justifyContent":"left"}} --> | ||
<main class="wp-block-group" style="margin-top:0"> | ||
<!-- wp:spacer --> | ||
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:heading {"level":1,"style":{"typography":{"textTransform":"capitalize"}}} --> | ||
<h1 class="wp-block-heading" style="text-transform:capitalize"> | ||
<?php esc_html_e( 'Our Auctions', 'goodbids-nonprofit' ); ?> | ||
</h1> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:query {"query":{"perPage":9,"pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"align":"wide","layout":{"type":"default"}} --> | ||
<div class="wp-block-query alignwide"> | ||
<!-- wp:query-no-results --> | ||
<!-- wp:pattern {"slug":"twentytwentyfour/hidden-no-results"} /--> | ||
<!-- /wp:query-no-results --> | ||
|
||
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"0","right":"0"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-right:0;padding-bottom:var(--wp--preset--spacing--50);padding-left:0"> | ||
|
||
<!-- wp:post-template {"align":"full","style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"grid","columnCount":3}} --> | ||
|
||
<!-- wp:post-featured-image {"isLink":true,"aspectRatio":"1","style":{"spacing":{"margin":{"bottom":"0"},"padding":{"bottom":"var:preset|spacing|20"}}}} /--> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"10px","margin":{"top":"var:preset|spacing|20"},"padding":{"top":"0"}}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap"}} --> | ||
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--20);padding-top:0"> | ||
<!-- wp:post-title {"isLink":true,"style":{"layout":{"flexSize":"min(2.5rem, 3vw)","selfStretch":"fixed"}},"fontSize":"large"} /--> | ||
|
||
<!-- wp:spacer {"height":"0px","style":{"layout":{"flexSize":"min(1.5rem, 3vw)","selfStretch":"fixed"}}} --> | ||
<div style="height:0px" aria-hidden="true" class="wp-block-spacer"> | ||
</div> | ||
<!-- /wp:spacer --> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- /wp:post-template --> | ||
|
||
<!-- wp:spacer {"height":"var:preset|spacing|40","style":{"spacing":{"margin":{"top":"0","bottom":"0"}}}} --> | ||
<div style="margin-top:0;margin-bottom:0;height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<!-- wp:query-pagination-previous /--> | ||
<!-- wp:query-pagination-next /--> | ||
<!-- /wp:query-pagination --> | ||
|
||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:query --> | ||
</main> | ||
<!-- /wp:group --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /--> | ||
<!-- wp:pattern {"slug":"goodbids/template-archive-auction"} /--> | ||
<!-- wp:template-part {"slug":"footer","area":"footer","tagName":"footer"} /--> |