-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Handy: add theme * Handy: Removing unused assets * Handy: update Frontpage QL
- Loading branch information
1 parent
5dd6a65
commit 29afa76
Showing
48 changed files
with
2,660 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,60 @@ | ||
<?php | ||
/** | ||
* Handy functions and definitions | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/theme-functions/ | ||
* | ||
* @package Handy | ||
* @since Handy 1.0 | ||
*/ | ||
|
||
|
||
if ( ! function_exists( 'handy_support' ) ) : | ||
|
||
/** | ||
* Sets up theme defaults and registers support for various WordPress features. | ||
* | ||
* @since Handy 1.0 | ||
* | ||
* @return void | ||
*/ | ||
function handy_support() { | ||
|
||
// Enqueue editor styles. | ||
add_editor_style( 'style.css' ); | ||
|
||
// Make theme available for translation. | ||
load_theme_textdomain( 'handy' ); | ||
} | ||
|
||
endif; | ||
|
||
add_action( 'after_setup_theme', 'handy_support' ); | ||
|
||
if ( ! function_exists( 'handy_styles' ) ) : | ||
|
||
/** | ||
* Enqueue styles. | ||
* | ||
* @since Handy 1.0 | ||
* | ||
* @return void | ||
*/ | ||
function handy_styles() { | ||
|
||
// Register theme stylesheet. | ||
wp_register_style( | ||
'handy-style', | ||
get_stylesheet_directory_uri() . '/style.css', | ||
array(), | ||
wp_get_theme()->get( 'Version' ) | ||
); | ||
|
||
// Enqueue theme stylesheet. | ||
wp_enqueue_style( 'handy-style' ); | ||
|
||
} | ||
|
||
endif; | ||
|
||
add_action( 'wp_enqueue_scripts', 'handy_styles' ); |
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 @@ | ||
<!-- wp:pattern {"slug":"handy/footer-pages"} /--> |
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 @@ | ||
<!-- wp:pattern {"slug":"handy/footer"} /--> |
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 @@ | ||
<!-- wp:pattern {"slug":"handy/header"} /--> |
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,13 @@ | ||
<!-- wp:group {"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"flex"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase"}}} /--> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"0.22rem"}},"layout":{"type":"flex","flexWrap":"nowrap"}} --> | ||
<div class="wp-block-group"><!-- wp:post-time-to-read /--> | ||
|
||
<!-- wp:paragraph {"style":{"typography":{"fontSize":"0.8rem","textTransform":"uppercase","letterSpacing":"0.03rem"}},"fontFamily":"open-runde"} --> | ||
<p class="has-open-runde-font-family" style="font-size:0.8rem;letter-spacing:0.03rem;text-transform:uppercase">to read</p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /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,37 @@ | ||
<?php | ||
/** | ||
* Title: 404 | ||
* Slug: handy/404 | ||
* Categories: hidden | ||
* Inserter: no | ||
*/ | ||
?> | ||
<!-- wp:group {"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"><!-- wp:template-part {"slug":"header","area":"header","align":"wide"} /--></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:group {"tagName":"main","lock":{"move":false,"remove":false},"style":{"spacing":{"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}}} --> | ||
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70)"><!-- wp:group {"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"5vh"}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} --> | ||
<div class="wp-block-group"><!-- wp:heading {"textAlign":"left","level":1,"style":{"typography":{"fontSize":"6rem","lineHeight":"1"}}} --> | ||
<h1 class="wp-block-heading has-text-align-left" id="oops-that-page-can-t-be-found" style="font-size:6rem;line-height:1"><?php esc_html_e('🫥', 'handy');?></h1> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} --> | ||
<div class="wp-block-group"><!-- wp:heading {"textAlign":"left","level":1} --> | ||
<h1 class="wp-block-heading has-text-align-left" id="oops-that-page-can-t-be-found"><?php esc_html_e('Oops! The page can’t be found.', 'handy');?></h1> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:paragraph {"fontFamily":"newsreader"} --> | ||
<p class="has-newsreader-font-family"><?php esc_html_e('It looks like nothing was found at this location. Maybe try a search?', 'handy');?></p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:search {"showLabel":false,"placeholder":"Search","buttonText":"","buttonPosition":"button-only","buttonUseIcon":true,"isSearchFieldHidden":true} /--></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --></main> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:template-part {"slug":"footer-pages","align":"full"} /--> |
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,59 @@ | ||
<?php | ||
/** | ||
* Title: archive | ||
* Slug: handy/archive | ||
* Categories: hidden | ||
* Inserter: no | ||
*/ | ||
?> | ||
<!-- wp:group {"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"><!-- wp:template-part {"slug":"header","area":"header","align":"wide"} /--></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:group {"tagName":"main","lock":{"move":false,"remove":false},"style":{"spacing":{"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}}} --> | ||
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70)"><!-- wp:group {"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"><!-- wp:columns {"align":"wide"} --> | ||
<div class="wp-block-columns alignwide"><!-- wp:column {"width":"25%"} --> | ||
<div class="wp-block-column" style="flex-basis:25%"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|50","padding":{"right":"var:preset|spacing|50"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} --> | ||
<div class="wp-block-group" style="padding-right:var(--wp--preset--spacing--50)"><!-- wp:query-title {"type":"archive","showPrefix":false} /--></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column {"width":"75%"} --> | ||
<div class="wp-block-column" style="flex-basis:75%"><!-- wp:query {"queryId":151,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} --> | ||
<div class="wp-block-query"><!-- wp:post-template {"layout":{"type":"grid","columnCount":3}} --> | ||
<!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/4"} /--> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|30","margin":{"top":"2vh","bottom":"4vh"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} --> | ||
<div class="wp-block-group" style="margin-top:2vh;margin-bottom:4vh"><!-- wp:post-title {"isLink":true} /--> | ||
|
||
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"flex"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:post-terms {"term":"category"} /--> | ||
|
||
<!-- wp:post-date {"format":"M j, Y","style":{"typography":{"textTransform":"uppercase"}}} /--></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --> | ||
<!-- /wp:post-template --> | ||
|
||
<!-- wp:group {"style":{"spacing":{"margin":{"top":"4vh"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} --> | ||
<div class="wp-block-group" style="margin-top:4vh"><!-- wp:query-pagination --> | ||
<!-- wp:query-pagination-previous /--> | ||
|
||
<!-- wp:query-pagination-numbers /--> | ||
|
||
<!-- wp:query-pagination-next /--> | ||
<!-- /wp:query-pagination --> | ||
|
||
<!-- wp:query-no-results --> | ||
<!-- wp:paragraph {"placeholder":"Add text or blocks that will display when a query returns no results."} --> | ||
<p><?php esc_html_e('', 'handy');?></p> | ||
<!-- /wp:paragraph --> | ||
<!-- /wp:query-no-results --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:query --></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --></div> | ||
<!-- /wp:group --></main> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:template-part {"slug":"footer-pages","area":"uncategorized"} /--> |
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,52 @@ | ||
<?php | ||
/** | ||
* Title: Comments | ||
* slug: handy/comments | ||
* inserter: no | ||
*/ | ||
|
||
?> | ||
|
||
<!-- wp:comments {"className":"wp-block-comments-query-loop"} --> | ||
<div class="wp-block-comments wp-block-comments-query-loop"> | ||
<!-- wp:comments-title {"level":3} /--> | ||
|
||
<!-- wp:comment-template --> | ||
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|50"}}}} --> | ||
<div class="wp-block-group" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--50)"> | ||
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"},"style":{"spacing":{"blockGap":"0.5em"}}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:avatar {"size":40,"style":{"spacing":{"margin":{"top":"0.5em"}}}} /--> | ||
|
||
<!-- wp:group --> | ||
<div class="wp-block-group"> | ||
<!-- wp:comment-author-name /--> | ||
|
||
<!-- wp:group {"layout":{"type":"flex"},"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"0.5em"}}} --> | ||
<div class="wp-block-group" style="margin-top:0px;margin-bottom:0px"> | ||
<!-- wp:comment-date {"format":"F j, Y \\a\\t g:i a"} /--> | ||
|
||
<!-- wp:comment-edit-link /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:comment-content /--> | ||
|
||
<!-- wp:comment-reply-link /--> | ||
</div> | ||
<!-- /wp:group --> | ||
<!-- /wp:comment-template --> | ||
|
||
<!-- wp:comments-pagination --> | ||
<!-- wp:comments-pagination-previous /--> | ||
<!-- wp:comments-pagination-numbers /--> | ||
<!-- wp:comments-pagination-next /--> | ||
<!-- /wp:comments-pagination --> | ||
|
||
<!-- wp:post-comments-form /--> | ||
</div> | ||
<!-- /wp:comments --> |
Oops, something went wrong.