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

Add castcore #8128

Closed
wants to merge 1 commit into from
Closed
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 castcore/assets/fonts/figtree_italic_400.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/figtree_italic_600.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/figtree_italic_700.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/figtree_normal_400.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/figtree_normal_600.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/figtree_normal_700.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/manrope_normal_400.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/manrope_normal_700.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added castcore/assets/fonts/outfit_normal_400.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/outfit_normal_500.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/outfit_normal_700.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/secuela_normal_700.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/zilla-slab_italic_400.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/zilla-slab_italic_700.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/zilla-slab_normal_400.ttf
Binary file not shown.
Binary file added castcore/assets/fonts/zilla-slab_normal_700.ttf
Binary file not shown.
Binary file added castcore/assets/images/IMG_NohoSpaceNYC.jpg
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 castcore/assets/images/src_apple-1.png
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 castcore/assets/images/src_google-1.png
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 castcore/assets/images/src_pocketcasts-1.png
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 castcore/assets/images/src_rss-1.png
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 castcore/assets/images/src_soundcloud-1.png
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 castcore/assets/images/src_spotify-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions castcore/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php
/**
* CastCore functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package CastCore
* @since CastCore 1.0
*/


if ( ! function_exists( 'castcore_support' ) ) :

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

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

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

endif;

add_action( 'after_setup_theme', 'castcore_support' );

if ( ! function_exists( 'castcore_styles' ) ) :

/**
* Enqueue styles.
*
* @since CastCore 1.0
*
* @return void
*/
function castcore_styles() {

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

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

}

endif;

add_action( 'wp_enqueue_scripts', 'castcore_styles' );
5 changes: 5 additions & 0 deletions castcore/parts/also-available.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"><!-- wp:paragraph {"style":{"typography":{"textDecoration":"none"}},"fontSize":"medium"} -->
<p class="has-medium-font-size" style="text-decoration:none">Podcast also available on <a href="https://wordpress.org/" data-type="link" data-id="https://wordpress.org/"><strong>PocketCasts</strong></a>, <a href="https://wordpress.org/" data-type="link" data-id="https://wordpress.org/"><strong>Soundcloud</strong></a>, <a href="https://wordpress.org/" data-type="link" data-id="https://wordpress.org/"><strong>Spotify</strong></a>, <a href="https://wordpress.org/" data-type="link" data-id="https://wordpress.org/"><strong>Google Podcasts</strong></a>, <a href="https://wordpress.org/" data-type="link" data-id="https://wordpress.org/"><strong>Apple Podcasts</strong></a>, and <a href="https://wordpress.org/" data-type="link" data-id="https://wordpress.org/"><strong>RSS</strong></a>.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
1 change: 1 addition & 0 deletions castcore/parts/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"castcore/footer"} /-->
15 changes: 15 additions & 0 deletions castcore/parts/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|40","left":"1rem","top":"2.5rem","bottom":"2.5rem"}},"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"backgroundColor":"primary","textColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-base-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:2.5rem;padding-right:var(--wp--preset--spacing--40);padding-bottom:2.5rem;padding-left:1rem"><!-- wp:columns {"verticalAlignment":"center","align":"wide"} -->
<div class="wp-block-columns alignwide are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","width":"66.66%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:66.66%"><!-- wp:group {"style":{"spacing":{"padding":{"top":"0px","bottom":"0px","left":"0px","right":"0px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"1rem"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:site-logo {"width":32,"shouldSyncIcon":true} /-->

<!-- wp:site-title {"style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"textColor":"base"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"center","width":"33.33%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:33.33%"><!-- wp:navigation {"textColor":"base","overlayMenu":"never","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"left","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"}}}} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->
7 changes: 7 additions & 0 deletions castcore/parts/post-meta.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:group {"layout":{"type":"flex"}} -->
<div class="wp-block-group"><!-- wp:post-date {"format":"M j, Y","isLink":true} /-->

<!-- wp:post-terms {"term":"category"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
16 changes: 16 additions & 0 deletions castcore/patterns/404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
/**
* Title: A 404 page
* Slug: castcore/404
* Inserter: no
*/

?>

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

<!-- wp:paragraph -->
<p><?php echo esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'castcore' ); ?></p>
<!-- /wp:paragraph -->
52 changes: 52 additions & 0 deletions castcore/patterns/comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php
/**
* Title: Comments
* slug: castcore/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 -->
137 changes: 137 additions & 0 deletions castcore/patterns/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<?php
/**
* Title: footer
* Slug: castcore/footer
* Categories: hidden
* Inserter: no
*/
?>
<!-- wp:group {"style":{"elements":{"link":{"color":{"text":"var:preset|color|secondary"}}},"spacing":{"margin":{"top":"0rem","bottom":"0rem"},"padding":{"right":"1rem","left":"1rem"}}},"backgroundColor":"tertiary","textColor":"secondary","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-secondary-color has-tertiary-background-color has-text-color has-background has-link-color" style="margin-top:0rem;margin-bottom:0rem;padding-right:1rem;padding-left:1rem"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"right":"0","left":"0","top":"6rem","bottom":"9rem"},"blockGap":"9rem"}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group alignwide" style="padding-top:6rem;padding-right:0;padding-bottom:9rem;padding-left:0"><!-- wp:group {"align":"full","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"right":"0","left":"0"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
<div class="wp-block-group alignwide" style="padding-right:0;padding-left:0"><!-- wp:group {"style":{"spacing":{"blockGap":"0.75rem"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:image {"id":829,"width":32,"height":32,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/src_pocketcasts-1.png" alt="" class="wp-image-829" style="width:32px;height:32px" width="32" height="32"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"left","fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size">PocketCasts</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"0.75rem"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:image {"id":830,"width":32,"height":32,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/src_soundcloud-1.png" alt="" class="wp-image-830" style="width:32px;height:32px" width="32" height="32"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"left","fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size">SoundCloud</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"0.75rem"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:image {"id":831,"width":32,"height":32,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/src_spotify-1.png" alt="" class="wp-image-831" style="width:32px;height:32px" width="32" height="32"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"left","fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size">Spotify</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"0.75rem"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:image {"id":832,"width":32,"height":32,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/src_google-1.png" alt="" class="wp-image-832" style="width:32px;height:32px" width="32" height="32"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"left","fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size">Google Podcasts</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"0.75rem"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:image {"id":833,"width":32,"height":32,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/src_apple-1.png" alt="" class="wp-image-833" style="width:32px;height:32px" width="32" height="32"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"left","fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size">Apple Podcasts</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"0.75rem"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:image {"id":834,"width":32,"height":32,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/src_rss-1.png" alt="" class="wp-image-834" style="width:32px;height:32px" width="32" height="32"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph {"align":"left","fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size">RSS Feed</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"5rem"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group alignwide"><!-- wp:columns {"align":"wide"} -->
<div class="wp-block-columns alignwide"><!-- wp:column {"width":"66.66%"} -->
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:group {"style":{"spacing":{"padding":{"bottom":"1.5rem"}}},"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group" style="padding-bottom:1.5rem"><!-- wp:heading {"style":{"typography":{"fontSize":"0.8rem","textTransform":"uppercase","letterSpacing":"0.05rem"}},"fontFamily":"barlow"} -->
<h2 class="wp-block-heading has-barlow-font-family" style="font-size:0.8rem;letter-spacing:0.05rem;text-transform:uppercase">About the podcast</h2>
<!-- /wp:heading -->

<!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group"><!-- wp:paragraph -->
<p>Welcome to The Houseplant Podcast, your ultimate guide to the world of houseplants! Join us as we explore the wonders and importance of plants in our lives. From plant-based lifestyles to the well-being qualities they offer, we'll cover everything related to these green treasures.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Let's dive into the joy of indoor gardening, learn about plant care, and discover how houseplants can transform our homes into lush sanctuaries. Get ready to be inspired and enchanted by the magic of plants on THP.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:column -->

<!-- wp:column {"width":"33.33%"} -->
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group"><!-- wp:heading {"style":{"typography":{"fontSize":"0.8rem","textTransform":"uppercase","letterSpacing":"0.05rem"}},"fontFamily":"barlow"} -->
<h2 class="wp-block-heading has-barlow-font-family" style="font-size:0.8rem;letter-spacing:0.05rem;text-transform:uppercase">Subscribe for updates</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Join our mailing list and get notified when we release new episodes and blog posts. No spam, we guarantee.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:jetpack/subscriptions {"submitButtonText":"<strong>SUBSCRIBE</strong>","fontSize":"0.8rem","customFontSize":"0.8rem","borderRadius":4,"borderWeight":0,"className":"is-style-compact"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

<!-- wp:columns {"align":"wide"} -->
<div class="wp-block-columns alignwide"><!-- wp:column {"width":"66.66%"} -->
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:group {"style":{"spacing":{"blockGap":""}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left"}} -->
<div class="wp-block-group"><!-- wp:site-title /-->

<!-- wp:navigation {"ref":6,"textColor":"tertiary","overlayMenu":"never","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"}},"typography":{"fontStyle":"normal","fontWeight":"400","letterSpacing":"0rem","fontSize":"0.85rem","lineHeight":"1"}},"fontFamily":"barlow"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:column -->

<!-- wp:column {"width":"33.33%"} -->
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group"><!-- wp:paragraph {"align":"left","style":{"typography":{"fontSize":"0.9rem"}}} -->
<p class="has-text-align-left" style="font-size:0.9rem">Designed with <a rel="nofollow" href="https://wordpress.org">WordPress</a>. </p>
<!-- /wp:paragraph -->

<!-- wp:social-links {"iconColor":"tertiary","iconColorValue":"#949e9e","size":"has-small-icon-size","style":{"spacing":{"blockGap":{"left":"0.5rem"}}},"className":"is-style-logos-only"} -->
<ul class="wp-block-social-links has-small-icon-size has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"http://wordpress.org","service":"linkedin"} /-->

<!-- wp:social-link {"url":"http://wordpress.org","service":"tumblr"} /-->

<!-- wp:social-link {"url":"http://wordpress.org","service":"facebook"} /--></ul>
<!-- /wp:social-links --></div>
<!-- /wp:group --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
Loading
Loading