-
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.
* Tronar: Add theme * Make padding values objects --------- Co-authored-by: Sarah Norris <[email protected]>
- Loading branch information
1 parent
a64bafa
commit d9f7c56
Showing
42 changed files
with
1,982 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.
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.
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 | ||
/** | ||
* Tronar functions and definitions | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/theme-functions/ | ||
* | ||
* @package Tronar | ||
* @since Tronar 1.0 | ||
*/ | ||
|
||
|
||
if ( ! function_exists( 'tronar_support' ) ) : | ||
|
||
/** | ||
* Sets up theme defaults and registers support for various WordPress featronarres. | ||
* | ||
* @since Tronar 1.0 | ||
* | ||
* @retronarrn void | ||
*/ | ||
function tronar_support() { | ||
|
||
// Enqueue editor styles. | ||
add_editor_style( 'style.css' ); | ||
|
||
// Make theme available for translation. | ||
load_theme_textdomain( 'tronar' ); | ||
} | ||
|
||
endif; | ||
|
||
add_action( 'after_setronarp_theme', 'tronar_support' ); | ||
|
||
if ( ! function_exists( 'tronar_styles' ) ) : | ||
|
||
/** | ||
* Enqueue styles. | ||
* | ||
* @since Tronar 1.0 | ||
* | ||
* @retronarrn void | ||
*/ | ||
function tronar_styles() { | ||
|
||
// Register theme stylesheet. | ||
wp_register_style( | ||
'tronar-style', | ||
get_stylesheet_directory_uri() . '/style.css', | ||
array(), | ||
wp_get_theme()->get( 'Version' ) | ||
); | ||
|
||
// Enqueue theme stylesheet. | ||
wp_enqueue_style( 'tronar-style' ); | ||
|
||
} | ||
|
||
endif; | ||
|
||
add_action( 'wp_enqueue_scripts', 'tronar_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,67 @@ | ||
<!-- wp:group {"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"> | ||
<!-- 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|60","bottom":"0"}}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--60);margin-bottom:0"> | ||
<!-- wp:comments-title {"level":3} /--> | ||
|
||
<!-- wp:group {"layout":{"type":"constrained","justifyContent":"left"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:comment-template {"style":{"spacing":{"padding":{"left":"0px"}}}} --> | ||
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|60"}}}} --> | ||
<div class="wp-block-group" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--60)"> | ||
<!-- wp:group {"style":{"spacing":{"blockGap":"1rem"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:avatar {"size":56,"style":{"border":{"radius":"50%"}}} /--> | ||
|
||
<!-- wp:group --> | ||
<div class="wp-block-group"> | ||
<!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"flex","orientation":"vertical"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:comment-author-name /--> | ||
|
||
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"0.5em"}},"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 --> | ||
|
||
<!-- wp:comment-content /--> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:comment-reply-link /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
<!-- /wp:comment-template --> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--60)"> | ||
<!-- 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:group {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained","justifyContent":"left"}} --> | ||
<div class="wp-block-group" style="margin-top:0px;margin-bottom:0px"> | ||
<!-- wp:post-comments-form {"style":{"spacing":{"margin":{"top":"var:preset|spacing|60"}}}} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:comments --> | ||
</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 @@ | ||
<!-- wp:pattern {"slug":"tronar/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":"tronar/header-with-cover"} /--> |
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":"tronar/header-with-sticky-post"} /--> |
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":"tronar/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,15 @@ | ||
<?php | ||
/** | ||
* Title: A 404 page | ||
* Slug: tronar/404 | ||
* Inserter: no | ||
*/ | ||
?> | ||
|
||
<!-- wp:heading {"level":1,"fontSize":"xx-large"} --> | ||
<h1 class="wp-block-heading has-xx-large-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'Oops! That page can’t be found.', 'tronar' ); ?></h1> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:paragraph --> | ||
<p><?php echo esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'tronar' ); ?></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,27 @@ | ||
<?php | ||
/** | ||
* Title: Default Footer | ||
* Slug: tronar/footer | ||
* Categories: footer | ||
* Block Types: core/template-part/footer | ||
*/ | ||
?> | ||
|
||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:site-title {"level":0,"fontSize":"medium"} /--> | ||
|
||
<!-- wp:paragraph {"fontSize":"small"} --> | ||
<p class="has-small-font-size"> | ||
<?php | ||
/* Translators: WordPress link. */ | ||
$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'tronar' ) ) . '" rel="nofollow">WordPress</a>'; | ||
echo sprintf( | ||
esc_html__( 'Designed with %1$s', 'tronar' ), | ||
$wordpress_link | ||
); | ||
?> | ||
</p> | ||
<!-- /wp:paragraph --> | ||
</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,42 @@ | ||
<?php | ||
/** | ||
* Title: Header with Cover | ||
* Slug: tronar/header-with-cover | ||
* Categories: header | ||
* Block Types: core/template-part/header | ||
*/ | ||
?> | ||
|
||
<!-- wp:group {"layout":{"type":"default"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:cover {"useFeaturedImage":true,"dimRatio":20,"isUserOverlayColor":true,"focalPoint":{"x":0.5,"y":0.7},"minHeight":60,"minHeightUnit":"vh","customGradient":"linear-gradient(180deg,rgb(0,0,0) 0%,rgba(0,0,0,0) 45%,rgba(0,0,0,0) 55%,rgb(0,0,0) 100%)","contentPosition":"center center","isDark":false,"style":{"spacing":{"margin":{"top":"0px","bottom":"var:preset|spacing|60"},"padding":{"top":"0px","bottom":"0px","left":"0px","right":"0px"}}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-cover is-light" style="margin-top:0px;margin-bottom:var(--wp--preset--spacing--60);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;min-height:60vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-20 has-background-dim has-background-gradient" style="background:linear-gradient(180deg,rgb(0,0,0) 0%,rgba(0,0,0,0) 45%,rgba(0,0,0,0) 55%,rgb(0,0,0) 100%)"></span> | ||
<div class="wp-block-cover__inner-container"> | ||
<!-- wp:group {"align":"wide","style":{"dimensions":{"minHeight":"60vh"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","verticalAlignment":"space-between"}} --> | ||
<div class="wp-block-group alignwide" style="min-height:60vh"> | ||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}},"layout":{"selfStretch":"fit","flexSize":null},"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"textColor":"base","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide has-base-color has-text-color has-link-color" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:site-title {"style":{"layout":{"selfStretch":"fit","flexSize":null}}} /--> | ||
|
||
<!-- wp:navigation {"align":"wide","layout":{"type":"flex"}} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|60","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:group {"align":"wide","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}}},"spacing":{"blockGap":"var:preset|spacing|40"}},"textColor":"base","layout":{"type":"flex","orientation":"vertical"}} --> | ||
<div class="wp-block-group alignwide has-base-color has-text-color has-link-color"> | ||
<!-- wp:post-date /--> | ||
|
||
<!-- wp:post-title {"level":1,"style":{"typography":{"lineHeight":"1.056603774"}},"fontSize":"xxx-large"} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
</div> | ||
<!-- /wp:cover --> | ||
</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,46 @@ | ||
<?php | ||
/** | ||
* Title: Header with Sticky Post | ||
* Slug: tronar/header-with-sticky-post | ||
* Categories: header | ||
* Block Types: core/template-part/header | ||
*/ | ||
?> | ||
|
||
<!-- wp:query {"query":{"perPage":"1","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"only","inherit":false}} --> | ||
<div class="wp-block-query"> | ||
<!-- wp:post-template {"layout":{"type":"default"}} --> | ||
<!-- wp:cover {"useFeaturedImage":true,"dimRatio":20,"isUserOverlayColor":true,"focalPoint":{"x":0.5,"y":0.7},"minHeight":60,"minHeightUnit":"vh","customGradient":"linear-gradient(180deg,rgb(0,0,0) 0%,rgba(0,0,0,0) 45%,rgba(0,0,0,0) 55%,rgb(0,0,0) 100%)","contentPosition":"center center","isDark":false,"style":{"spacing":{"margin":{"top":"0px","bottom":"var:preset|spacing|60"},"padding":{"top":"0px","bottom":"0px","left":"0px","right":"0px"}}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-cover is-light" style="margin-top:0px;margin-bottom:var(--wp--preset--spacing--60);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;min-height:60vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-20 has-background-dim has-background-gradient" style="background:linear-gradient(180deg,rgb(0,0,0) 0%,rgba(0,0,0,0) 45%,rgba(0,0,0,0) 55%,rgb(0,0,0) 100%)"></span> | ||
<div class="wp-block-cover__inner-container"> | ||
<!-- wp:group {"align":"wide","style":{"dimensions":{"minHeight":"60vh"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","verticalAlignment":"space-between"}} --> | ||
<div class="wp-block-group alignwide" style="min-height:60vh"> | ||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}},"layout":{"selfStretch":"fit","flexSize":null},"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"textColor":"base","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide has-base-color has-text-color has-link-color" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:site-title {"style":{"layout":{"selfStretch":"fit","flexSize":null}}} /--> | ||
|
||
<!-- wp:navigation {"align":"wide","layout":{"type":"flex"}} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|60","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|40"},"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"textColor":"base","layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} --> | ||
<div class="wp-block-group alignwide has-base-color has-text-color has-link-color"> | ||
<!-- wp:paragraph {"style":{"typography":{"fontStyle":"normal","fontWeight":"600","letterSpacing":"0px"}},"fontSize":"small","fontFamily":"source-sans-3"} --> | ||
<p class="has-source-sans-3-font-family has-small-font-size" style="font-style:normal;font-weight:600;letter-spacing:0px"><?php echo esc_html__( 'Featured', 'tronar' ); ?></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:post-title {"level":3,"isLink":true,"style":{"typography":{"lineHeight":"1.056603774"}},"fontSize":"xxx-large"} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
</div> | ||
<!-- /wp:cover --> | ||
<!-- /wp:post-template --> | ||
</div> | ||
<!-- /wp:query --> |
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,20 @@ | ||
<?php | ||
/** | ||
* Title: Default Header | ||
* Slug: tronar/header | ||
* Categories: header | ||
* Block Types: core/template-part/header | ||
*/ | ||
?> | ||
|
||
<!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}},"border":{"bottom":{"color":"var:preset|color|secondary","width":"1px"}}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-group" style="border-bottom-color:var(--wp--preset--color--secondary);border-bottom-width:1px;padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide"> | ||
<!-- wp:site-title {"style":{"layout":{"selfStretch":"fit","flexSize":null}}} /--> | ||
|
||
<!-- wp:navigation {"align":"wide","layout":{"type":"flex"}} /--> | ||
</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,19 @@ | ||
<?php | ||
/** | ||
* Title: Latest Posts Heading | ||
* Slug: tronar/latest-post-heading | ||
* Inserter: no | ||
*/ | ||
?> | ||
|
||
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0.5rem","margin":{"bottom":"var:preset|spacing|60"}}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-group alignwide" style="margin-bottom:var(--wp--preset--spacing--60)"> | ||
<!-- wp:heading {"style":{"typography":{"fontStyle":"normal","fontWeight":"600","letterSpacing":"0px"}},"fontSize":"small","fontFamily":"source-sans-3"} --> | ||
<h2 class="wp-block-heading has-source-sans-3-font-family has-small-font-size" style="font-style:normal;font-weight:600;letter-spacing:0px"><?php echo esc_html__( 'Latest Posts', 'tronar' ); ?></h2> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:separator --> | ||
<hr class="wp-block-separator has-alpha-channel-opacity"/> | ||
<!-- /wp:separator --> | ||
</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: No Results Content | ||
* Slug: tronar/no-results-content | ||
* Inserter: no | ||
*/ | ||
?> | ||
|
||
<!-- wp:paragraph --> | ||
<p><?php echo esc_html_x( 'Sorry, but nothing found. Please try again with some different keywords.', 'Message explaining that there are no results returned from a search', 'tronar' ); ?></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,26 @@ | ||
<?php | ||
/** | ||
* Title: Post Author | ||
* Slug: tronar/post-author | ||
* Categories: featured, text | ||
*/ | ||
?> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"1rem","padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}},"border":{"top":{"color":"var:preset|color|secondary","width":"1px"},"right":{},"bottom":{},"left":{}}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} --> | ||
<div class="wp-block-group" style="border-top-color:var(--wp--preset--color--secondary);border-top-width:1px;padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"> | ||
<!-- wp:avatar {"size":56} /--> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:paragraph {"fontSize":"small","fontFamily":"source-sans-3"} --> | ||
<p class="has-source-sans-3-font-family has-small-font-size">Published by</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:post-author-name {"isLink":true} /--> | ||
|
||
<!-- wp:post-author-biography /--> | ||
</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,48 @@ | ||
<?php | ||
/** | ||
* Title: Post List | ||
* Slug: tronar/post-list | ||
* Categories: featured, posts | ||
*/ | ||
?> | ||
|
||
<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignwide" style="margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--60)"> | ||
<!-- wp:query {"query":{"perPage":"10","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"enhancedPagination":true,"align":"wide"} --> | ||
<div class="wp-block-query alignwide"> | ||
<!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|60"}},"layout":{"type":"default","columnCount":3}} --> | ||
<!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"var:preset|spacing|50","left":"var:preset|spacing|60"}}}} --> | ||
<div class="wp-block-columns"> | ||
<!-- wp:column {"width":"71.5%","style":{"spacing":{"blockGap":"var:preset|spacing|40"}}} --> | ||
<div class="wp-block-column" style="flex-basis:71.5%"> | ||
<!-- wp:post-date {"style":{"spacing":{"margin":{"top":"0px"}}}} /--> | ||
|
||
<!-- wp:post-title {"level":3,"isLink":true} /--> | ||
|
||
<!-- wp:post-excerpt {"moreText":"Continue reading","showMoreOnNewLine":false,"excerptLength":40} /--></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column {"width":"28.5%"} --> | ||
<div class="wp-block-column" style="flex-basis:28.5%"> | ||
<!-- wp:post-featured-image {"isLink":true,"aspectRatio":"1"} /--> | ||
</div> | ||
<!-- /wp:column --> | ||
</div> | ||
<!-- /wp:columns --> | ||
<!-- /wp:post-template --> | ||
|
||
<!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|60"}}},"layout":{"type":"default"},"fontSize":"x-large"} --> | ||
<div class="wp-block-group has-x-large-font-size" style="margin-top:var(--wp--preset--spacing--60)"> | ||
<!-- wp:query-pagination {"paginationArrow":"arrow","showLabel":false,"layout":{"type":"flex","justifyContent":"center"}} --> | ||
<!-- wp:query-pagination-previous /--> | ||
|
||
<!-- wp:query-pagination-numbers /--> | ||
|
||
<!-- wp:query-pagination-next /--> | ||
<!-- /wp:query-pagination --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:query --> | ||
</div> | ||
<!-- /wp:group --> |
Oops, something went wrong.