-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Creatio: Add theme --------- Co-authored-by: Jason Crist <[email protected]>
- Loading branch information
Showing
26 changed files
with
1,086 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.
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 | ||
/** | ||
* Creatio functions and definitions | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/theme-functions/ | ||
* | ||
* @package Creatio | ||
* @since Creatio 1.0 | ||
*/ | ||
|
||
|
||
if ( ! function_exists( 'creatio_support' ) ) : | ||
|
||
/** | ||
* Sets up theme defaults and registers support for various WordPress features. | ||
* | ||
* @since Creatio 1.0 | ||
* | ||
* @return void | ||
*/ | ||
function creatio_support() { | ||
|
||
// Enqueue editor styles. | ||
add_editor_style( 'style.css' ); | ||
|
||
// Make theme available for translation. | ||
load_theme_textdomain( 'creatio' ); | ||
} | ||
|
||
endif; | ||
|
||
add_action( 'after_setup_theme', 'creatio_support' ); | ||
|
||
if ( ! function_exists( 'creatio_styles' ) ) : | ||
|
||
/** | ||
* Enqueue styles. | ||
* | ||
* @since Creatio 1.0 | ||
* | ||
* @return void | ||
*/ | ||
function creatio_styles() { | ||
|
||
// Register theme stylesheet. | ||
wp_register_style( | ||
'creatio-style', | ||
get_stylesheet_directory_uri() . '/style.css', | ||
array(), | ||
wp_get_theme()->get( 'Version' ) | ||
); | ||
|
||
// Enqueue theme stylesheet. | ||
wp_enqueue_style( 'creatio-style' ); | ||
|
||
} | ||
|
||
endif; | ||
|
||
add_action( 'wp_enqueue_scripts', 'creatio_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":"creatio/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,15 @@ | ||
<!-- wp:group {"style":{"color":{"background":"#ffffff"}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group has-background" style="background-color:#ffffff"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"var:preset|spacing|60","top":"var:preset|spacing|60","right":"0px","left":"0px"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--60);padding-right:0px;padding-bottom:var(--wp--preset--spacing--60);padding-left:0px"><!-- wp:group {"layout":{"type":"flex"}} --> | ||
<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"0px"}}} --> | ||
<div class="wp-block-group"><!-- wp:site-title /--></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"40px"}},"layout":{"type":"flex","flexWrap":"nowrap"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:navigation {"overlayBackgroundColor":"secondary","overlayTextColor":"background","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"}}}} /--> | ||
</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,7 @@ | ||
<!-- wp:group {"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} --> | ||
<div class="wp-block-group"><!-- wp:group {"style":{"border":{"radius":"4px"}},"backgroundColor":"tertiary","layout":{"type":"flex","justifyContent":"center"}} --> | ||
<div class="wp-block-group has-tertiary-background-color has-background" style="border-radius:4px"><!-- wp:post-terms {"term":"category","style":{"spacing":{"padding":{"top":"6px","right":"6px","bottom":"6px","left":"6px"}}}} /--></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,23 @@ | ||
<?php | ||
/** | ||
* Title: A 404 page | ||
* Slug: creatio/404 | ||
* Inserter: no | ||
*/ | ||
|
||
?> | ||
|
||
<!-- 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","fontSize":"large","anchor":"oops-that-page-can-t-be-found"} --> | ||
<h1 class="wp-block-heading alignwide has-text-align-left has-large-font-size" id="oops-that-page-can-t-be-found"> | ||
<?php echo esc_html_x( 'Oops! That page can’t be found.', 'creatio' ); ?></h1> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:paragraph --> | ||
<p><?php echo esc_html_x( 'It looks like nothing was found at this location. Maybe try a search?', 'creatio' ); ?></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:search {"showLabel":false,"buttonPosition":"button-inside","buttonUseIcon":true,"style":{"border":{"radius":"2px","top":{"color":"#dfdfdf","style":"solid","width":"1px"},"right":{"color":"#dfdfdf","style":"solid","width":"1px"},"bottom":{"color":"#dfdfdf","style":"solid","width":"1px"},"left":{"color":"#dfdfdf","style":"solid","width":"1px"}}},"backgroundColor":"primary","textColor":"background"} /--></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,52 @@ | ||
<?php | ||
/** | ||
* Title: Comments | ||
* slug: creatio/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 --> |
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: Default footer | ||
* Slug: creatio/footer | ||
* Categories: footer | ||
* Block Types: core/template-part/footer | ||
*/ | ||
?> | ||
|
||
|
||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"40px","left":"40px","top":"80px","bottom":"80px"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignfull" style="padding-top:80px;padding-right:40px;padding-bottom:80px;padding-left:40px"><!-- wp:group {"align":"wide","layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} --> | ||
<div class="wp-block-group alignwide"><!-- wp:group {"layout":{"type":"flex"}} --> | ||
<div class="wp-block-group"><!-- wp:navigation {"overlayMenu":"never"} /--></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:paragraph {"style":{"typography":{"fontSize":"0.8rem"}}} --> | ||
<p style="font-size:0.8rem"> | ||
<?php | ||
/* Translators: WordPress link. */ | ||
$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'creatio' ) ) . '" rel="nofollow">WordPress</a>'; | ||
echo sprintf( | ||
esc_html__( 'Designed with %1$s', 'creatio' ), | ||
$wordpress_link | ||
); | ||
?> | ||
</p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:spacer {"height":"var(--wp--preset--spacing--80)"} --> | ||
<div style="height:var(--wp--preset--spacing--80)" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> |
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,10 @@ | ||
<?php | ||
/** | ||
* Title: Hidden No Results Content | ||
* Slug: creatio/hidden-no-results-content | ||
* Inserter: no | ||
*/ | ||
?> | ||
<!-- 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', 'creatio' ); ?></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,46 @@ | ||
=== Creatio === | ||
Contributors: Automattic | ||
Requires at least: 6.0 | ||
Tested up to: 6.2.3 | ||
Requires PHP: 5.7 | ||
License: GPLv2 or later | ||
License URI: http://www.gnu.org/licenses/gpl-2.0.html | ||
|
||
== Description == | ||
|
||
Creatio is a simple, minimal theme that supports full-site editing and global styles. Use it to build something beautiful. | ||
|
||
== Changelog == | ||
|
||
= 0.0.1 = | ||
* Initial release | ||
|
||
== Copyright == | ||
|
||
Creatio WordPress Theme, (C) 2023 Automattic | ||
Creatio is distributed under the terms of the GNU GPL. | ||
Creatio is based on Shawburn (), (C) Automattic, [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html) | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 2 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
Inter Font | ||
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter) | ||
This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is available with a FAQ at: http://scripts.sil.org/OFL | ||
License URL: http://scripts.sil.org/OFL | ||
Source: https://rsms.me/inter/ | ||
-- End of Inter Font credits -- | ||
|
||
Literata Font | ||
Copyright 2017 The Literata Project Authors (https://github.com/googlefonts/literata) | ||
This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is available with a FAQ at: http://scripts.sil.org/OFL | ||
License URL: http://scripts.sil.org/OFL | ||
Source: https://github.com/googlefonts/literata | ||
-- End of Literata Font credits -- |
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,58 @@ | ||
/* | ||
Theme Name: Creatio | ||
Theme URI: https://wordpress.com/theme/creatio | ||
Author: Automattic | ||
Author URI: https://automattic.com/ | ||
Description: Creatio is a simple, minimal theme that supports full-site editing and global styles. Use it to build something beautiful. | ||
Requires at least: 6.0 | ||
Tested up to: 6.2.3 | ||
Requires PHP: 5.7 | ||
Version: 0.0.1 | ||
License: GNU General Public License v2 or later | ||
License URI: http://www.gnu.org/licenses/gpl-2.0.html | ||
Text Domain: creatio | ||
Tags: blog, news, portfolio, one-column, three-columns, wide-blocks, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, style-variations, template-editing, theme-options, threaded-comments, translation-ready, shawburn | ||
*/ | ||
|
||
/* | ||
* Control the hover stylings of outline block style. | ||
* Unnecessary once block styles are configurable via theme.json | ||
* https://github.com/WordPress/gutenberg/issues/42794 | ||
*/ | ||
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover { | ||
background-color: var(--wp--preset--color--secondary); | ||
color: var(--wp--preset--color--background); | ||
border-color: var(--wp--preset--color--secondary); | ||
} | ||
|
||
/** | ||
* Currently table styles are only available with 'wp-block-styles' | ||
* theme support (block css) thus the following needs to be included | ||
* since 'wp-block-styles' aren't used for this theme. | ||
* https://github.com/WordPress/gutenberg/issues/45065 | ||
*/ | ||
.wp-block-table thead { | ||
border-bottom: 3px solid; | ||
} | ||
.wp-block-table tfoot { | ||
border-top: 3px solid; | ||
} | ||
.wp-block-table td, | ||
.wp-block-table th { | ||
padding: var(--wp--preset--spacing--30); | ||
border: 1px solid; | ||
word-break: normal; | ||
} | ||
.wp-block-table figcaption { | ||
font-size: var(--wp--preset--font-size--small); | ||
text-align: center; | ||
} | ||
|
||
/* | ||
* Link styles | ||
* https://github.com/WordPress/gutenberg/issues/42319 | ||
*/ | ||
a { | ||
text-decoration-thickness: .0625em !important; | ||
text-underline-offset: .15em; | ||
} |
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,5 @@ | ||
<!-- wp:template-part {"slug":"header","tagName":"header"} /--> | ||
|
||
<!-- wp:pattern {"slug":"creatio/404"} /--> | ||
|
||
<!-- wp:template-part {"slug":"footer","area":"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,39 @@ | ||
<!-- wp:template-part {"slug":"header","tagName":"header"} /--> | ||
|
||
<!-- 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","displayLayout":{"type":"flex","columns":3},"layout":{"type":"constrained","wideSize":"1200px"}} --> | ||
<main class="wp-block-query"><!-- wp:query-title {"type":"archive","style":{"spacing":{"margin":{"bottom":"80px","top":"40px"}}}} /--> | ||
|
||
<!-- wp:post-template --> | ||
<!-- wp:group --> | ||
<div class="wp-block-group"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} --> | ||
<div class="wp-block-group"><!-- wp:group {"style":{"border":{"radius":"4px","top":{"style":"none","width":"0px"},"right":{"style":"none","width":"0px"},"bottom":{"style":"none","width":"0px"},"left":{"style":"none","width":"0px"}},"color":{"background":"#ecf1fe"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} --> | ||
<div class="wp-block-group has-background" style="border-radius:4px;border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-style:none;border-left-width:0px;background-color:#ecf1fe"><!-- wp:post-terms {"term":"category","textAlign":"center","separator":" ","style":{"layout":{"selfStretch":"fill"},"spacing":{"padding":{"top":"6px","right":"6px","bottom":"6px","left":"6px"}},"typography":{"textTransform":"uppercase","fontSize":"0.7rem","letterSpacing":"0.04rem"}}} /--></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:post-title {"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"500","letterSpacing":"-0.04rem"}},"fontFamily":"literata"} /--> | ||
|
||
<!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2"} /--> | ||
|
||
<!-- wp:post-excerpt {"showMoreOnNewLine":false,"excerptLength":50,"style":{"typography":{"lineHeight":1.5}},"fontSize":"small"} /--> | ||
|
||
<!-- wp:post-date /--> | ||
|
||
<!-- wp:spacer {"height":"40px"} --> | ||
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --></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-numbers /--> | ||
|
||
<!-- wp:query-pagination-next /--> | ||
<!-- /wp:query-pagination --></div> | ||
<!-- /wp:group --></main> | ||
<!-- /wp:query --> | ||
|
||
<!-- wp:template-part {"slug":"footer","area":"footer"} /--> |
Oops, something went wrong.