Skip to content

Commit

Permalink
Optimismo: add theme for review (#7018)
Browse files Browse the repository at this point in the history
Co-authored-by: Takashi Irie <[email protected]>
Co-authored-by: Jason Crist <[email protected]>
  • Loading branch information
3 people authored Jun 26, 2023
1 parent 65a2d34 commit 3d5aec0
Show file tree
Hide file tree
Showing 44 changed files with 1,676 additions and 0 deletions.
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.
Binary file not shown.
Binary file added optimismo/assets/images/11410posdl0.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 optimismo/assets/images/11410posdl1.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 optimismo/assets/images/11410posdl2.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 optimismo/assets/images/11410posdl3.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 optimismo/assets/images/11410posdl4.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 optimismo/assets/images/11410posdl5.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 optimismo/assets/images/11410posdl6.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 optimismo/assets/images/11410posdl7.jpg
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 optimismo/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php
/**
* Optimismo functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Optimismo
* @since Optimismo 1.0
*/


if ( ! function_exists( 'optimismo_support' ) ) :

/**
* Sets up theme defaults and registers support for various WordPress feaoptimismores.
*
* @since Optimismo 1.0
*
* @reoptimismorn void
*/
function optimismo_support() {

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

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

endif;

add_action( 'after_seoptimismop_theme', 'optimismo_support' );

if ( ! function_exists( 'optimismo_styles' ) ) :

/**
* Enqueue styles.
*
* @since Optimismo 1.0
*
* @reoptimismorn void
*/
function optimismo_styles() {

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

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

}

endif;

add_action( 'wp_enqueue_scripts', 'optimismo_styles' );
2 changes: 2 additions & 0 deletions optimismo/parts/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!-- wp:pattern {"slug":"optimismo/footer"} /-->

1 change: 1 addition & 0 deletions optimismo/parts/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"optimismo/header"} /-->
14 changes: 14 additions & 0 deletions optimismo/patterns/404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/**
* Title: A 404 page
* Slug: optimismo/404
* Inserter: no
*/
?>
<!-- wp:heading {"textAlign":"center","level":1,"fontSize":"large","anchor":"oops-that-page-can-t-be-found"} -->
<h1 class="wp-block-heading has-text-align-center has-large-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'Oops! That page can&rsquo;t be found.', 'optimismo' ); ?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><?php echo esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'optimismo' ); ?></p>
<!-- /wp:paragraph -->
58 changes: 58 additions & 0 deletions optimismo/patterns/comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php
/**
* Title: Comments
* Slug: optimismo/comments
* Inserter: no
*/
?>
<!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--80);margin-bottom:var(--wp--preset--spacing--80)">
<!-- wp:comments {"className":"wp-block-comments-query-loop"} -->
<div class="wp-block-comments wp-block-comments-query-loop">
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:comments-title {"level":3} /-->

<!-- wp:comment-template {"style":{"spacing":{"padding":{"left":"0px"}}}} -->
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"1.5rem"}}}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:1.5rem">
<!-- wp:group {"style":{"spacing":{"blockGap":"0.5em"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group">
<!-- wp:avatar {"size":40} /-->

<!-- wp:group -->
<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 -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:comment-content /-->

<!-- wp:comment-reply-link /-->
</div>
<!-- /wp:group -->
<!-- /wp:comment-template -->

<!-- wp:comments-pagination {"paginationArrow":"chevron","layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:comments-pagination-previous /-->

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

<!-- wp:post-comments-form /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:comments -->
</div>
<!-- /wp:group -->
24 changes: 24 additions & 0 deletions optimismo/patterns/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* Title: Default footer
* Slug: optimismo/footer
* Categories: featured, footer
* Block Types: core/template-part/footer
*/
?>

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"0","right":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="padding-top:0;padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)">
<!-- wp:navigation {"overlayMenu":"never","align":"wide","layout":{"type":"flex","justifyContent":"center"},"style":{"spacing":{"blockGap":"var:preset|spacing|30"},"typography":{"fontStyle":"normal","fontWeight":"500","fontSize":"0.69rem"}}} /-->

<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"top":"var:preset|spacing|40"}},"typography":{"fontSize":"0.69rem"}}} -->
<p class="has-text-align-center" style="margin-top:var(--wp--preset--spacing--40);font-size:0.69rem"><?php
/* Translators: WordPress link. */
$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'lineup' ) ) . '" rel="nofollow">WordPress</a>';
echo sprintf(
esc_html__( 'Designed with %1$s', 'lineup' ),
$wordpress_link
);?></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
16 changes: 16 additions & 0 deletions optimismo/patterns/header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
/**
* Title: Header
* Slug: optimismo/header
* Categories: header
* Block Types: core/template-part/header
*/
?>

<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"},"blockGap":"var:preset|spacing|40"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)">
<!-- wp:site-logo {"shouldSyncIcon":false,"align":"center"} /-->

<!-- wp:site-title {"textAlign":"center"} /-->
</div>
<!-- /wp:group -->
10 changes: 10 additions & 0 deletions optimismo/patterns/no-results-content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
/**
* Title: No Results Content
* Slug: optimismo/no-results-content
* Inserter: no
*/
?>
<!-- wp:paragraph -->
<p><?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', 'optimismo' ); ?></p>
<!-- /wp:paragraph -->
9 changes: 9 additions & 0 deletions optimismo/patterns/search.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
/**
* Title: Search
* Slug: optimismo/search
* Inserter: no
*/
?>

<!-- wp:search {"label":"","showLabel":false,"placeholder":"<?php echo esc_html_x( 'Search...', 'This is a placeholder text in a search field', 'optimismo' ); ?>","buttonText":"Search","buttonUseIcon":true} /-->
32 changes: 32 additions & 0 deletions optimismo/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
=== Optimismo ===
Contributors: Automattic
Requires at least: 5.8
Tested up to: 5.9
Requires PHP: 5.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

== Description ==

Optimismo is a bold blog theme that allows you to have a big bold message at the front.

== Changelog ==

= 0.0.1 =
* Initial release

== Copyright ==

Optimismo WordPress Theme, (C) 2023 Automattic
Optimismo is distributed under the terms of the GNU GPL.
Optimismo is based on Kigen (https://wordpress.com/theme/kigen), (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.
Binary file added optimismo/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions optimismo/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
Theme Name: Optimismo
Theme URI: https://wordpress.com/theme/optimismo/
Author: Automattic
Author URI: https://automattic.com/
Description: Optimismo is a bold blog theme that allows you to have a big bold message at the front.
Requires at least: 5.8
Tested up to: 6.1.1
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template:
Text Domain: optimismo
Tags: blog, news, one-column, wide-blocks, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, template-editing, theme-options, threaded-comments, translation-ready
*/

/*
* 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--primary);
border-color: var(--wp--preset--color--primary);
color: var(--wp--preset--color--base);
}

/*
* Link styles
* https://github.com/WordPress/gutenberg/issues/42319
*/
a {
text-decoration-thickness: 1px !important;
text-underline-offset: 1.5px;
}

/*
* Avatar Block
* Fix border radius setting for the avatar block
* https://github.com/WordPress/gutenberg/issues/48253
*/
.wp-block-avatar a,
.wp-block-avatar img {
border-radius: inherit;
}

/*
* Pull quote Block
* Reset the browser default margins for blockquote element
* https://github.com/WordPress/gutenberg/issues/44129
*/
.wp-block-pullquote blockquote {
margin: 0;
}
11 changes: 11 additions & 0 deletions optimismo/templates/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80"}}},"layout":{"type":"constrained"}} -->
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--80);margin-bottom:var(--wp--preset--spacing--80)">
<!-- wp:pattern {"slug":"optimismo/404"} /-->

<!-- wp:pattern {"slug":"optimismo/search"} /-->
</main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
45 changes: 45 additions & 0 deletions optimismo/templates/archive.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|80"}}},"layout":{"type":"constrained"}} -->
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--80)">
<!-- wp:group {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|80"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-bottom:var(--wp--preset--spacing--80)">
<!-- wp:query-title {"type":"archive","textAlign":"center","showPrefix":false,"style":{"spacing":{"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} /-->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|30"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--30)">
<!-- wp:term-description {"textAlign":"center","style":{"spacing":{"margin":{"top":"var:preset|spacing|30"}}}} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:query {"queryId":2,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"layout":{"type":"constrained"}} -->
<div class="wp-block-query">
<!-- wp:post-template -->
<!-- wp:group {"style":{"spacing":{"padding":{"bottom":"var:preset|spacing|80"}}}} -->
<div class="wp-block-group" style="padding-bottom:var(--wp--preset--spacing--80)">
<!-- wp:post-title {"textAlign":"center","isLink":true} /-->

<!-- wp:post-date {"textAlign":"center","style":{"spacing":{"margin":{"top":"var:preset|spacing|30"}}}} /-->

<!-- wp:post-featured-image {"isLink":true} /-->
</div>
<!-- /wp:group -->
<!-- /wp:post-template -->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"0px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:0px">
<!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:query -->
</main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
36 changes: 36 additions & 0 deletions optimismo/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!-- wp:group {"align":"full","style":{"dimensions":{"minHeight":"100vh"},"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"}}},"layout":{"type":"flex","orientation":"vertical","verticalAlignment":"space-between","justifyContent":"stretch"}} -->
<div class="wp-block-group alignfull" style="min-height:100vh;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:spacer {"height":"1px"} -->
<div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:group {"align":"full","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull">
<!-- wp:template-part {"slug":"header","tagName":"header","align":"full"} /-->

<!-- wp:group {"align":"full","layout":{"type":"default"}} -->
<div class="wp-block-group alignfull">
<!-- wp:heading {"textAlign":"center","level":1,"style":{"typography":{"textTransform":"uppercase","lineHeight":"0.8","letterSpacing":"0.25em","fontStyle":"normal","fontWeight":"800"},"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"fontSize":"huge"} -->
<h1 class="wp-block-heading has-text-align-center has-huge-font-size" style="margin-top:0px;margin-bottom:0px;font-style:normal;font-weight:800;letter-spacing:0.25em;line-height:0.8;text-transform:uppercase">HappierWorld</h1>
<!-- /wp:heading -->
</div>
<!-- /wp:group -->

<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|70","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--70);margin-bottom:0">
<!-- wp:query {"query":{"perPage":"5","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]},"layout":{"type":"constrained"}} -->
<div class="wp-block-query">
<!-- wp:post-template {"className":"home-post-template"} -->
<!-- wp:post-title {"textAlign":"center","isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"500"},"spacing":{"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}},"fontSize":"small"} /-->
<!-- /wp:post-template -->
</div>
<!-- /wp:query -->
</main>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer","align":"full"} /-->
</div>
<!-- /wp:group -->

Loading

0 comments on commit 3d5aec0

Please sign in to comment.