Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kentwood: Add theme #7679

Merged
merged 2 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added kentwood/assets/fonts/alvarado_italic_300.woff
Binary file not shown.
Binary file added kentwood/assets/fonts/alvarado_italic_400.woff
Binary file not shown.
Binary file added kentwood/assets/fonts/alvarado_italic_500.woff
Binary file not shown.
Binary file added kentwood/assets/fonts/alvarado_italic_700.woff
Binary file not shown.
Binary file added kentwood/assets/fonts/alvarado_normal_300.woff
Binary file not shown.
Binary file added kentwood/assets/fonts/alvarado_normal_400.woff
Binary file not shown.
Binary file added kentwood/assets/fonts/alvarado_normal_500.woff
Binary file not shown.
Binary file added kentwood/assets/fonts/alvarado_normal_700.woff
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.
Binary file added kentwood/assets/images/school-logo.png
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.
64 changes: 64 additions & 0 deletions kentwood/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?php
/**
* Kentwood functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Kentwood
* @since Kentwood 1.0
*/

declare( strict_types = 1 );

if ( ! function_exists( 'kentwood_support' ) ) :

/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since Kentwood 1.0
*
* @return void
*/
function Kentwood_support() {

// Enqueue editor styles.
add_editor_style( 'style.css' );

// Make theme available for translation.
load_theme_textdomain( 'kentwood' );
}

endif;

add_action( 'after_setup_theme', 'kentwood_support' );

if ( ! function_exists( 'kentwood_styles' ) ) :

/**
* Enqueue styles.
*
* @since Kentwood 1.0
*
* @return void
*/
function Kentwood_styles() {

// Register theme stylesheet.
wp_register_style(
'kentwood-style',
get_stylesheet_directory_uri() . '/style.css',
array(),
wp_get_theme()->get( 'Version' )
);

// Enqueue theme stylesheet.
wp_enqueue_style( 'kentwood-style' );

}

endif;

add_action( 'wp_enqueue_scripts', 'kentwood_styles' );



51 changes: 51 additions & 0 deletions kentwood/parts/comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!-- wp:comments {"className":"wp-block-comments-query-loop"} -->
<div class="wp-block-comments wp-block-comments-query-loop">
<!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|70"}}},"layout":{"type":"constrained","justifyContent":"center"}} -->
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--70)">
<!-- wp:comments-title {"level":3} /-->

<!-- wp:comment-template {"style":{"spacing":{"padding":{"left":"0px"}}}} -->
<!-- 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 {"style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group">
<!-- wp:avatar {"size":56} /-->

<!-- wp:group -->
<div class="wp-block-group">
<!-- wp:comment-author-name /-->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"var:preset|spacing|40"}},"layout":{"type":"flex"}} -->
<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:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:comments-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:comments-pagination-previous /-->

<!-- wp:comments-pagination-next /-->
<!-- /wp:comments-pagination -->
</div>
<!-- /wp:group -->

<!-- wp:post-comments-form /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:comments -->
1 change: 1 addition & 0 deletions kentwood/parts/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"kentwood/footer"} /-->
1 change: 1 addition & 0 deletions kentwood/parts/header-home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"kentwood/header-home"} /-->
1 change: 1 addition & 0 deletions kentwood/parts/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"kentwood/header"} /-->
1 change: 1 addition & 0 deletions kentwood/parts/post-terms.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"kentwood/post-terms"} /-->
17 changes: 17 additions & 0 deletions kentwood/patterns/404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/**
* Title: A 404 page
* Slug: kentwood/404
* Inserter: no
*/

declare( strict_types = 1 );
?>

<!-- wp:heading {"textAlign":"left","level":1,"fontSize":"xx-large"} -->
<h1 class="wp-block-heading has-text-align-left has-xx-large-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'Oops! That page can&rsquo;t be found.', 'kentwood' ); ?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><?php echo esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'kentwood' ); ?></p>
<!-- /wp:paragraph -->
157 changes: 157 additions & 0 deletions kentwood/patterns/bento.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
<?php
/**
* Title: Bento Grid
* Slug: kentwood/bento
* Categories: featured, call-to-action
*/

declare( strict_types = 1 );
?>

<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide">
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|40","left":"var:preset|spacing|40"}}}} -->
<div class="wp-block-columns alignwide">
<!-- wp:column {"width":"32.90938%"} -->
<div class="wp-block-column" style="flex-basis:32.90938%">
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/4249179026_1c11793d55_k-cropped.jpg","dimRatio":40,"isUserOverlayColor":true,"focalPoint":{"x":0.25,"y":0.2},"minHeight":100,"minHeightUnit":"%","customGradient":"linear-gradient(180deg,rgba(0,0,0,0) 0%,rgb(0,0,0) 76%)","contentPosition":"bottom center","style":{"layout":{"selfStretch":"fill","flexSize":null},"border":{"radius":"28px"},"elements":{"link":{"color":{"text":"var:preset|color|base"}}},"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60","right":"var:preset|spacing|60"}}},"textColor":"base"} -->
<div class="wp-block-cover has-custom-content-position is-position-bottom-center has-base-color has-text-color has-link-color" style="border-radius:28px;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);min-height:100%"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-40 has-background-dim wp-block-cover__gradient-background has-background-gradient" style="background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgb(0,0,0) 76%)"></span><img class="wp-block-cover__image-background" alt="<?php echo esc_attr_e( 'A smiling woman wearing a suit.', 'kentwood' ); ?>" src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/4249179026_1c11793d55_k-cropped.jpg" style="object-position:25% 20%" data-object-fit="cover" data-object-position="25% 20%"/>
<div class="wp-block-cover__inner-container">
<!-- wp:heading {"textAlign":"left","fontSize":"x-large"} -->
<h2 class="wp-block-heading has-text-align-left has-x-large-font-size"><?php echo esc_html__( 'Welcome from the Headteacher', 'kentwood' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size"><?php echo esc_html__( 'At Kentwood Academy, our guiding principle is ‘Aim High, Be Kind, and Dare to be Different’. This motto, deeply rooted at our core, combined with exceptional teaching sets us apart.', 'kentwood' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:buttons -->
<div class="wp-block-buttons">
<!-- wp:button {"textColor":"base","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"className":"is-style-fill"} -->
<div class="wp-block-button is-style-fill">
<a class="wp-block-button__link has-base-color has-text-color has-link-color wp-element-button" href="#"><?php echo esc_html__( 'Read More', 'kentwood' ); ?></a>
</div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
</div>
<!-- /wp:cover -->
</div>
<!-- /wp:column -->

<!-- wp:column {"width":"67.09062%","style":{"spacing":{"blockGap":"var:preset|spacing|40"}}} -->
<div class="wp-block-column" style="flex-basis:67.09062%">
<!-- wp:group {"style":{"dimensions":{"minHeight":""},"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60","right":"var:preset|spacing|60"}},"border":{"radius":"28px"},"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"backgroundColor":"primary","textColor":"base","layout":{"type":"flex","orientation":"vertical","verticalAlignment":"center"}} -->
<div class="wp-block-group has-base-color has-primary-background-color has-text-color has-background has-link-color" style="border-radius:28px;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:heading {"fontSize":"x-large"} -->
<h2 class="wp-block-heading has-x-large-font-size"><?php echo esc_html__( 'Arrange a Personal Visit', 'kentwood' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"style":{"layout":{"selfStretch":"fit","flexSize":null}}} -->
<p><?php echo esc_html__( 'Experience Kentwood Academy firsthand. Tailored to your child’s interests and admission stage, we offer visits year-round, from Nursery to Prep School.', 'kentwood' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:buttons -->
<div class="wp-block-buttons">
<!-- wp:button {"textColor":"base","style":{"border":{"width":"2px"},"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"borderColor":"base","className":"is-style-outline"} -->
<div class="wp-block-button is-style-outline">
<a class="wp-block-button__link has-base-color has-text-color has-link-color has-border-color has-base-border-color wp-element-button" style="border-width:2px"><?php echo esc_html__( 'Arrange a Visit', 'kentwood' ); ?></a>
</div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->

<!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"var:preset|spacing|40","left":"var:preset|spacing|40"}}}} -->
<div class="wp-block-columns">
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:group {"style":{"border":{"radius":"28px"},"dimensions":{"minHeight":"100%"}},"backgroundColor":"primary","layout":{"type":"flex","orientation":"vertical","justifyContent":"center","verticalAlignment":"center"}} -->
<div class="wp-block-group has-primary-background-color has-background" style="border-radius:28px;min-height:100%">
<!-- wp:image {"sizeSlug":"full","style":{"color":[]}} -->
<figure class="wp-block-image size-full"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/school-logo.png" alt="<?php echo esc_attr_e( 'Logo of the school made up with a shield and a lion.', 'kentwood' ); ?>"/></figure>
<!-- /wp:image -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:column -->

<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:group {"style":{"dimensions":{"minHeight":"100%"},"border":{"radius":"28px"},"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60","right":"var:preset|spacing|60"}}},"backgroundColor":"tertiary","textColor":"primary","layout":{"type":"flex","orientation":"vertical","verticalAlignment":"center","justifyContent":"stretch"}} -->
<div class="wp-block-group has-primary-color has-tertiary-background-color has-text-color has-background" style="border-radius:28px;min-height:100%;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:heading {"fontSize":"x-large"} -->
<h2 class="wp-block-heading has-x-large-font-size"><?php echo esc_html__( 'Admissions', 'kentwood' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size"><?php echo esc_html__( 'Selecting the ideal educational environment for your child is a significant and profound choice.', 'kentwood' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:buttons -->
<div class="wp-block-buttons">
<!-- wp:button {"className":"is-style-fill"} -->
<div class="wp-block-button is-style-fill">
<a class="wp-block-button__link wp-element-button"><?php echo esc_html__( 'Read More', 'kentwood' ); ?></a>
</div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->

<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|40","left":"var:preset|spacing|40"}}}} -->
<div class="wp-block-columns alignwide">
<!-- wp:column {"width":"67.09062%","style":{"spacing":{"blockGap":"var:preset|spacing|40"}}} -->
<div class="wp-block-column" style="flex-basis:67.09062%">
<!-- wp:group {"style":{"dimensions":{"minHeight":"100%"},"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60","right":"var:preset|spacing|60"}},"border":{"radius":"28px"}},"backgroundColor":"tertiary","textColor":"primary","layout":{"type":"flex","orientation":"vertical","verticalAlignment":"center"}} -->
<div class="wp-block-group has-primary-color has-tertiary-background-color has-text-color has-background" style="border-radius:28px;min-height:100%;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:heading {"fontSize":"x-large"} -->
<h2 class="wp-block-heading has-x-large-font-size"><?php echo esc_html__( 'The Ethos and the Environment', 'kentwood' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><?php echo esc_html__( 'At Kentwood Academy, our ethos goes beyond academia. We believe in nurturing the whole child, promoting resilience, creativity, and global awareness. Set against the backdrop of Kent’s natural beauty, our campus offers an environment where students are inspired daily, both by the lessons in the classroom and the serenity outside.', 'kentwood' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:buttons -->
<div class="wp-block-buttons">
<!-- wp:button -->
<div class="wp-block-button">
<a class="wp-block-button__link wp-element-button"><?php echo esc_html__( 'Read More', 'kentwood' ); ?></a>
</div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:column -->

<!-- wp:column {"width":"32.90938%"} -->
<div class="wp-block-column" style="flex-basis:32.90938%">
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/people-audience-young-youth-cheering-child-759682-pxhere.com-1.jpg","dimRatio":0,"minHeight":100,"minHeightUnit":"%","isDark":false,"style":{"layout":{"selfStretch":"fill","flexSize":null},"border":{"radius":"28px"}}} -->
<div class="wp-block-cover is-light" style="border-radius:28px;min-height:100%"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span><img class="wp-block-cover__image-background" alt="<?php echo esc_attr_e( 'Smiling small children waving their hands.', 'kentwood' ); ?>" src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/people-audience-young-youth-cheering-child-759682-pxhere.com-1.jpg" data-object-fit="cover"/>
<div class="wp-block-cover__inner-container">
<!-- wp:paragraph {"align":"center","fontSize":"large"} -->
<p class="has-text-align-center has-large-font-size"></p>
<!-- /wp:paragraph -->
</div>
</div>
<!-- /wp:cover -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
</div>
<!-- /wp:group -->
Loading
Loading