Skip to content

Commit

Permalink
BSOJ: add theme for review (#7012)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Crist <jcrist@pbking.com>
  • Loading branch information
matiasbenedetto and pbking committed Jun 26, 2023
1 parent 1068d19 commit 8307628
Show file tree
Hide file tree
Showing 36 changed files with 1,753 additions and 0 deletions.
Binary file added bsoj/assets/fonts/anonymous-pro_italic_400.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/anonymous-pro_italic_700.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/anonymous-pro_normal_400.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/anonymous-pro_normal_700.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_italic_100.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_italic_200.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_italic_300.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_italic_400.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_italic_500.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_italic_600.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_italic_700.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_normal_100.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_normal_200.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_normal_300.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_normal_400.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_normal_500.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_normal_600.ttf
Binary file not shown.
Binary file added bsoj/assets/fonts/josefin-sans_normal_700.ttf
Binary file not shown.
60 changes: 60 additions & 0 deletions bsoj/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php
/**
* BSoJ functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package BSoJ
* @since BSoJ 1.0
*/


if ( ! function_exists( 'bsoj_support' ) ) :

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

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

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

endif;

add_action( 'after_setup_theme', 'bsoj_support' );

if ( ! function_exists( 'bsoj_styles' ) ) :

/**
* Enqueue styles.
*
* @since BSoJ 1.0
*
* @return void
*/
function bsoj_styles() {

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

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

}

endif;

add_action( 'wp_enqueue_scripts', 'bsoj_styles' );
1 change: 1 addition & 0 deletions bsoj/parts/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"bsoj/footer"} /-->
25 changes: 25 additions & 0 deletions bsoj/parts/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!-- wp:group {"style":{"spacing":{"padding":{"bottom":"var:preset|spacing|80"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-bottom:var(--wp--preset--spacing--80)">
<!-- wp:columns {"align":"wide"} -->
<div class="wp-block-columns alignwide">
<!-- wp:column {"width":"20%"} -->
<div class="wp-block-column" style="flex-basis:20%"></div>
<!-- /wp:column -->

<!-- wp:column {"width":"80%"} -->
<div class="wp-block-column" style="flex-basis:80%">
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"flex"}} -->
<div class="wp-block-group">
<!-- wp:site-logo /-->

<!-- wp:site-title {"fontSize":"medium"} /-->
</div>
<!-- /wp:group -->

<!-- wp:navigation {"overlayBackgroundColor":"base","overlayTextColor":"primary","style":{"spacing":{"blockGap":"var:preset|spacing|40"}}} /-->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
</div>
<!-- /wp:group -->
15 changes: 15 additions & 0 deletions bsoj/patterns/404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
/**
* Title: A 404 page
* Slug: bsoj/404
* Inserter: no
*/
?>

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

<!-- wp:paragraph -->
<p><?php echo esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'bsoj' ); ?></p>
<!-- /wp:paragraph -->
69 changes: 69 additions & 0 deletions bsoj/patterns/comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?php
/**
* Title: Comments
* slug: bsoj/comments
* inserter: no
*/

?>
<!-- wp:comments {"style":{"spacing":{"margin":{"top":"var:preset|spacing|80"}}},"className":"wp-block-comments-query-loop"} -->
<div class="wp-block-comments wp-block-comments-query-loop" style="margin-top:var(--wp--preset--spacing--80)">
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:columns {"align":"wide"} -->
<div class="wp-block-columns alignwide">
<!-- wp:column {"width":"20%"} -->
<div class="wp-block-column" style="flex-basis:20%"></div>
<!-- /wp:column -->

<!-- wp:column {"width":"80%"} -->
<div class="wp-block-column" style="flex-basis:80%">

<!-- 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 {"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"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:column -->
</div>
<!-- /wp:columns -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:comments -->
38 changes: 38 additions & 0 deletions bsoj/patterns/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
/**
* Title: Default footer
* Slug: bsoj/footer
* Categories: footer
* Block Types: core/template-part/footer
*/
?>

<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:columns {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|80"}}}} -->
<div class="wp-block-columns alignwide" style="padding-top:var(--wp--preset--spacing--80)">
<!-- wp:column {"width":"20%"} -->
<div class="wp-block-column" style="flex-basis:20%"></div>
<!-- /wp:column -->

<!-- wp:column {"width":"80%"} -->
<div class="wp-block-column" style="flex-basis:80%">
<!-- wp:paragraph -->
<p>
<?php

$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'lineup' ) ) . '" rel="nofollow">WordPress</a>';
echo sprintf(
/* Translators: WordPress link. */
esc_html__( 'Designed with %1$s', 'lineup' ),
$wordpress_link
);
?>
</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
</div>
<!-- /wp:group -->
26 changes: 26 additions & 0 deletions bsoj/patterns/no-results-content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Title: No Results Content
* Slug: bsoj/no-results-content
* Inserter: no
*/
?>
<!-- wp:columns -->
<div class="wp-block-columns">
<!-- wp:column {"width":"20%"} -->
<div class="wp-block-column" style="flex-basis:20%">
<!-- wp:paragraph -->
<p><?php echo esc_html__( 'Hmm...', 'bsoj' ); ?></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->

<!-- wp:column {"width":"80%"} -->
<div class="wp-block-column" style="flex-basis:80%">
<!-- 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', 'bsoj' ); ?></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
9 changes: 9 additions & 0 deletions bsoj/patterns/search.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
/**
* Title: Search
* Slug: bsoj/search
* Inserter: no
*/
?>

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

== Description ==

BSoJ (Blue Screen of Joy) is a blog theme inspired by the infamous Blue Screen of Death.

== Changelog ==

= 1.0.0 =
* Initial release

== Copyright ==

BSoJ WordPress Theme, (C) 2023 Automattic
BSoJ is distributed under the terms of the GNU GPL.
BSoJ is based on Block Canvas (https://github.com/Automattic/themes/tree/trunk/block-canvas), (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.

This theme bundles the following third-party resources:

Josefin Sans Font
Licensed under SIL Open Font License, 1.10 (http://scripts.sil.org/OFL)
Source: https://fonts.google.com/specimen/Josefin+Sans

Anonymous Pro Font
Licensed under SIL Open Font License, 1.10 (http://scripts.sil.org/OFL)
Source: https://fonts.google.com/specimen/Anonymous+Pro
Binary file added bsoj/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8307628

Please sign in to comment.