-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit.
- Loading branch information
Showing
59 changed files
with
2,955 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.
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.
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,61 @@ | ||
<?php | ||
/** | ||
* Craftfully functions and definitions | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/theme-functions/ | ||
* | ||
* @package Craftfully | ||
* @since Craftfully 1.0 | ||
*/ | ||
|
||
declare( strict_types = 1 ); | ||
|
||
if ( ! function_exists( 'creatio2_support' ) ) : | ||
|
||
/** | ||
* Sets up theme defaults and registers support for various WordPress features. | ||
* | ||
* @since Craftfully 1.0 | ||
* | ||
* @return void | ||
*/ | ||
function creatio2_support() { | ||
|
||
// Enqueue editor styles. | ||
add_editor_style( 'style.css' ); | ||
|
||
// Make theme available for translation. | ||
load_theme_textdomain( 'creatio2' ); | ||
} | ||
|
||
endif; | ||
|
||
add_action( 'after_setup_theme', 'creatio2_support' ); | ||
|
||
if ( ! function_exists( 'creatio2_styles' ) ) : | ||
|
||
/** | ||
* Enqueue styles. | ||
* | ||
* @since Craftfully 1.0 | ||
* | ||
* @return void | ||
*/ | ||
function creatio2_styles() { | ||
|
||
// Register theme stylesheet. | ||
wp_register_style( | ||
'creatio2-style', | ||
get_stylesheet_directory_uri() . '/style.css', | ||
array(), | ||
wp_get_theme()->get( 'Version' ) | ||
); | ||
|
||
// Enqueue theme stylesheet. | ||
wp_enqueue_style( 'creatio2-style' ); | ||
|
||
} | ||
|
||
endif; | ||
|
||
add_action( 'wp_enqueue_scripts', 'creatio2_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":"craftfully/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":"craftfully/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 @@ | ||
<!-- wp:pattern {"slug":"craftfully/sidebar"} /--> |
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,23 @@ | ||
<?php | ||
/** | ||
* Title: A 404 page | ||
* Slug: craftfully/404 | ||
* Inserter: no | ||
*/ | ||
declare( strict_types = 1 ); | ||
?> | ||
|
||
<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"var:preset|spacing|50","margin":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|60"},"padding":{"bottom":"180px"}}},"layout":{"type":"constrained"}} --> | ||
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--80);margin-bottom:var(--wp--preset--spacing--60);padding-bottom:180px"><!-- wp:group {"align":"wide","layout":{"type":"default"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:heading {"textAlign":"left","level":1,"align":"wide"} --> | ||
<h1 class="wp-block-heading alignwide has-text-align-left" id="oops-that-page-can-t-be-found"> | ||
<?php echo esc_html_x( 'Oops! That page can’t be found.', 'craftfully' ); ?></h1> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:paragraph --> | ||
<p><?php echo esc_html_x( 'It looks like nothing was found at this location. Maybe try a search?', 'craftfully' ); ?></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:search {"showLabel":false,"buttonText":"Search","style":{"border":{"radius":"50px","width":"1px"}},"borderColor":"foreground"} /--></div> | ||
<!-- /wp:group --></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,21 @@ | ||
<?php | ||
/** | ||
* Title: Byline and Date Post Meta | ||
* Slug: craftfully/byline-date | ||
* Inserter: no | ||
*/ | ||
declare( strict_types = 1 ); | ||
?> | ||
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|30"},"typography":{"fontSize":"x-small"},"elements":{"link":{"color":{"text":"#11181fa6"}}},"color":{"text":"#11181fa6"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"center","justifyContent":"left"}} --> | ||
<div class="wp-block-group alignwide has-text-color has-link-color" style="color:#11181fa6;font-size:x-small"><!-- wp:paragraph {"fontSize":"x-small"} --> | ||
<p class="has-x-small-font-size"><?php echo esc_html_x( 'Published by', 'craftfully' ); ?></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:post-author {"showAvatar":false,"showBio":false,"byline":"","style":{"typography":{"fontStyle":"normal","fontWeight":"600"}},"fontSize":"x-small"} /--> | ||
|
||
<!-- wp:paragraph {"fontSize":"x-small"} --> | ||
<p class="has-x-small-font-size"><?php echo esc_html_x( 'on', 'Preposition: Refers to the post publish date', 'craftfully' ); ?></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:post-date {"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"500"}}} /--></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,44 @@ | ||
<?php | ||
/** | ||
* Title: Featured Posts | ||
* Slug: craftfully/featured-posts | ||
* Categories: featured | ||
*/ | ||
declare( strict_types = 1 ); | ||
?> | ||
|
||
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0"}},"layout":{"type":"flex","orientation":"vertical"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:paragraph {"style":{"typography":{"fontSize":"14px"}},"fontFamily":"dm-mono"} --> | ||
<p class="has-dm-mono-font-family" style="font-size:14px"><?php echo esc_html__( 'Featured', 'craftfully' ); ?></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:heading {"style":{"layout":{"selfStretch":"fit","flexSize":null}},"className":"heading-bg"} --> | ||
<h2 class="wp-block-heading heading-bg"><?php echo esc_html__( 'Halloween', 'craftfully' ); ?></h2> | ||
<!-- /wp:heading --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:group {"align":"wide","layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:query {"queryId":18,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"align":"wide"} --> | ||
<div class="wp-block-query alignwide"><!-- wp:post-template {"layout":{"type":"grid","columnCount":3}} --> | ||
<!-- wp:cover {"useFeaturedImage":true,"dimRatio":0,"customOverlayColor":"#908289","isUserOverlayColor":true,"contentPosition":"bottom center","isDark":false,"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-cover is-light has-custom-content-position is-position-bottom-center"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim" style="background-color:#908289"></span><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} --> | ||
<p class="has-text-align-center has-large-font-size"></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|40","left":"var:preset|spacing|40","top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"},"blockGap":"var:preset|spacing|30"}},"backgroundColor":"base","layout":{"type":"flex","orientation":"vertical"}} --> | ||
<div class="wp-block-group has-base-background-color has-background" style="padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)"><!-- wp:post-terms {"term":"category"} /--> | ||
|
||
<!-- wp:post-title {"isLink":true,"fontSize":"medium","fontFamily":"system-font"} /--></div> | ||
<!-- /wp:group --></div></div> | ||
<!-- /wp:cover --> | ||
<!-- /wp:post-template --> | ||
|
||
<!-- wp:query-no-results --> | ||
<!-- wp:paragraph {"placeholder":"Add text or blocks that will display when a query returns no results."} --> | ||
<p></p> | ||
<!-- /wp:paragraph --> | ||
<!-- /wp:query-no-results --></div> | ||
<!-- /wp:query --></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,40 @@ | ||
<?php | ||
/** | ||
* Title: Default footer | ||
* Slug: craftfully/footer | ||
* Categories: footer | ||
* Block Types: core/template-part/footer | ||
*/ | ||
declare( strict_types = 1 ); | ||
?> | ||
|
||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|60","left":"var:preset|spacing|60","top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}},"border":{"top":{"color":"var:preset|color|foreground","style":"dashed","width":"1px"},"right":[],"bottom":{"color":"var:preset|color|foreground","style":"dashed","width":"1px"},"left":[]}},"backgroundColor":"accent-3","layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignfull has-accent-3-background-color has-background" style="border-top-color:var(--wp--preset--color--foreground);border-top-style:dashed;border-top-width:1px;border-bottom-color:var(--wp--preset--color--foreground);border-bottom-style:dashed;border-bottom-width:1px;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":"wide","layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:site-title /--> | ||
|
||
<!-- wp:navigation {"ref":1489,"overlayMenu":"never","style":{"typography":{"textTransform":"none","fontStyle":"normal","fontWeight":"300","letterSpacing":"0px"}},"fontFamily":"system-font"} /--> | ||
|
||
<!-- wp:social-links {"iconColor":"background","iconColorValue":"#ffffff","iconBackgroundColor":"primary","iconBackgroundColorValue":"#11181F","size":"has-small-icon-size","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|20"}}},"className":"is-style-default"} --> | ||
<ul class="wp-block-social-links has-small-icon-size has-icon-color has-icon-background-color is-style-default"><!-- wp:social-link {"url":"#","service":"pinterest"} /--> | ||
|
||
<!-- wp:social-link {"url":"#","service":"instagram"} /--> | ||
|
||
<!-- wp:social-link {"url":"#","service":"facebook"} /--> | ||
|
||
<!-- wp:social-link {"url":"#","service":"mail"} /--></ul> | ||
<!-- /wp:social-links --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"0.8rem"}}} --> | ||
<p style="font-size:0.8rem"> | ||
<?php | ||
/* Translators: WordPress link. */ | ||
$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'craftfully' ) ) . '" rel="nofollow">WordPress</a>'; | ||
echo sprintf( | ||
esc_html__( 'Designed with %1$s', 'craftfully' ), | ||
$wordpress_link | ||
); | ||
?> | ||
</p> | ||
<!-- /wp:paragraph --> |
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,48 @@ | ||
<?php | ||
/** | ||
* Title: Default header | ||
* Slug: craftfully/header | ||
* Categories: header | ||
* Block Types: core/template-part/header | ||
*/ | ||
declare( strict_types = 1 ); | ||
?> | ||
<!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"><!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}},"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"backgroundColor":"accent-3","textColor":"foreground","layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignfull has-foreground-color has-accent-3-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--50)"><!-- wp:group {"align":"wide","layout":{"type":"constrained","justifyContent":"left"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:navigation {"overlayMenu":"never","overlayBackgroundColor":"accent-5","overlayTextColor":"contrast","style":{"typography":{"letterSpacing":"0px","fontSize":"14px"},"spacing":{"blockGap":"var:preset|spacing|40"}},"fontFamily":"system-font"} /--></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:columns {"verticalAlignment":"center","align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"blockGap":{"left":"var:preset|spacing|70"}}}} --> | ||
<div class="wp-block-columns alignwide are-vertically-aligned-center" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"><!-- wp:column {"verticalAlignment":"center","width":"70%"} --> | ||
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:70%"><!-- wp:site-title /--></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column {"verticalAlignment":"center","width":"33%"} --> | ||
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:33%"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left"}} --> | ||
<div class="wp-block-group"><!-- wp:social-links {"iconBackgroundColor":"foreground","iconBackgroundColorValue":"#404040","size":"has-small-icon-size","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|20"}}}} --> | ||
<ul class="wp-block-social-links has-small-icon-size has-icon-background-color"><!-- wp:social-link {"url":"#","service":"facebook"} /--> | ||
|
||
<!-- wp:social-link {"url":"#","service":"instagram"} /--> | ||
|
||
<!-- wp:social-link {"url":"#","service":"pinterest"} /--> | ||
|
||
<!-- wp:social-link {"url":"#","service":"tiktok"} /--></ul> | ||
<!-- /wp:social-links --> | ||
|
||
<!-- 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__( 'Shop →', 'craftfully' ); ?></a></div> | ||
<!-- /wp:button --></div> | ||
<!-- /wp:buttons --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --> | ||
|
||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"0","right":"0"}},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}},"border":{"top":{"style":"dashed","width":"1px","color":"var:preset|color|foreground"},"right":{"style":"none","width":"0px"},"bottom":{"style":"dashed","width":"1px","color":"var:preset|color|foreground"},"left":{"style":"none","width":"0px"}}},"textColor":"primary","layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignwide has-primary-color has-text-color has-link-color" style="border-top-color:var(--wp--preset--color--foreground);border-top-style:dashed;border-top-width:1px;border-right-style:none;border-right-width:0px;border-bottom-color:var(--wp--preset--color--foreground);border-bottom-style:dashed;border-bottom-width:1px;border-left-style:none;border-left-width:0px;padding-top:var(--wp--preset--spacing--40);padding-right:0;padding-bottom:var(--wp--preset--spacing--40);padding-left:0"><!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:navigation {"icon":"menu","hasIcon":false,"overlayBackgroundColor":"secondary","align":"wide","layout":{"type":"flex"},"style":{"typography":{"textTransform":"uppercase","fontSize":"16px","fontStyle":"normal","fontWeight":"400"}}} /--></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,11 @@ | ||
<?php | ||
/** | ||
* Title: Hidden No Results Content | ||
* Slug: craftfully/hidden-no-results-content | ||
* Inserter: no | ||
*/ | ||
declare( strict_types = 1 ); | ||
?> | ||
<!-- wp:paragraph {"style":{"spacing":{"padding":{"bottom":"80px","top":"20px"}}}} --> | ||
<p style="padding-top:20px;padding-bottom:80px"><?php echo esc_html_x( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'Message explaining that there are no results returned from a search', 'craftfully' ); ?></p> | ||
<!-- /wp:paragraph --> |
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,34 @@ | ||
<?php | ||
/** | ||
* Title: Newsletter Subscription | ||
* Slug: craftfully/newsletter-subscription | ||
* Categories: featured | ||
*/ | ||
declare( strict_types = 1 ); | ||
?> | ||
|
||
<!-- wp:group {"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)"><!-- wp:separator {"align":"wide"} --> | ||
<hr class="wp-block-separator alignwide has-alpha-channel-opacity"/> | ||
<!-- /wp:separator --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:columns {"align":"wide"} --> | ||
<div class="wp-block-columns alignwide"><!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:heading {"textAlign":"left"} --> | ||
<h2 class="wp-block-heading has-text-align-left"><?php echo esc_html__( 'All things crafty in your inbox', 'craftfully' ); ?></h2> | ||
<!-- /wp:heading --></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:jetpack/subscriptions {"borderRadius":50,"borderWeight":1,"borderColor":"foreground"} /--></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --> | ||
|
||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)"><!-- wp:separator {"align":"wide"} --> | ||
<hr class="wp-block-separator alignwide has-alpha-channel-opacity"/> | ||
<!-- /wp:separator --></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,50 @@ | ||
<?php | ||
/** | ||
* Title: Posts List | ||
* Slug: craftfully/posts-list | ||
* Categories: featured | ||
*/ | ||
declare( strict_types = 1 ); | ||
?> | ||
|
||
<!-- wp:group {"align":"wide","layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:columns {"align":"wide","style":{"spacing":{"padding":{"right":"0","left":"0"},"blockGap":{"left":"var:preset|spacing|50"}}}} --> | ||
<div class="wp-block-columns alignwide" style="padding-right:0;padding-left:0"><!-- wp:column {"width":"66.66%","style":{"spacing":{"padding":{"right":"0","left":"0"}}}} --> | ||
<div class="wp-block-column" style="padding-right:0;padding-left:0;flex-basis:66.66%"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0"}},"layout":{"type":"flex","orientation":"vertical"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:paragraph {"style":{"typography":{"fontSize":"14px"}},"fontFamily":"dm-mono"} --> | ||
<p class="has-dm-mono-font-family" style="font-size:14px"><?php echo esc_html__( 'Explore', 'craftfully' ); ?></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:heading {"style":{"layout":{"selfStretch":"fit","flexSize":null}},"className":"heading-bg"} --> | ||
<h2 class="wp-block-heading heading-bg"><?php echo esc_html__( 'Latest Posts', 'craftfully' ); ?></h2> | ||
<!-- /wp:heading --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- 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","enhancedPagination":true,"layout":{"type":"default"}} --> | ||
<main class="wp-block-query"><!-- wp:post-template {"layout":{"type":"grid","columnCount":2}} --> | ||
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|40","padding":{"bottom":"var:preset|spacing|40"}}}} --> | ||
<div class="wp-block-group" style="padding-bottom:var(--wp--preset--spacing--40)"><!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/4"} /--> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"flex","orientation":"vertical"}} --> | ||
<div class="wp-block-group"><!-- wp:post-terms {"term":"category","textAlign":"left","style":{"typography":{"fontStyle":"normal","fontWeight":"400","textTransform":"uppercase"}},"fontFamily":"dm-mono"} /--> | ||
|
||
<!-- wp:post-title {"textAlign":"left","isLink":true,"fontSize":"medium","fontFamily":"system-font"} /--></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --> | ||
<!-- /wp:post-template --> | ||
|
||
<!-- wp:group {"align":"wide","layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:query-pagination {"align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<!-- wp:query-pagination-previous /--> | ||
|
||
<!-- wp:query-pagination-next /--> | ||
<!-- /wp:query-pagination --></div> | ||
<!-- /wp:group --></main> | ||
<!-- /wp:query --></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column {"width":"33.33%","style":{"spacing":{"blockGap":"var:preset|spacing|50"}}} --> | ||
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:template-part {"slug":"sidebar","theme":"craftfully"} /--></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --></div> | ||
<!-- /wp:group --> |
Oops, something went wrong.