Skip to content

Commit

Permalink
The Jazzers: fixes readme.txt and details (#8100)
Browse files Browse the repository at this point in the history
* The Jazzers: fixes readme.txt and details

* The Jazzers: updates version number
  • Loading branch information
henriqueiamarino authored Sep 11, 2024
1 parent ea39cdb commit 2f35d14
Show file tree
Hide file tree
Showing 20 changed files with 470 additions and 225 deletions.
28 changes: 14 additions & 14 deletions the-jazzers/functions.php
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Jazzers functions and definitions
* The Jazzers functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Jazzers
* @since Jazzers 1.0
* @package The Jazzers
* @since The Jazzers 1.0
*/


if ( ! function_exists( 'jazzers_support' ) ) :
if ( ! function_exists( 'the_jazzers_support' ) ) :

/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since Jazzers 1.0
* @since The Jazzers 1.0
*
* @return void
*/
function jazzers_support() {
function the_jazzers_support() {

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

// Make theme available for translation.
load_theme_textdomain( 'jazzers' );
load_theme_textdomain( 'the-jazzers' );
}

endif;

add_action( 'after_setup_theme', 'jazzers_support' );
add_action( 'after_setup_theme', 'the_jazzers_support' );

if ( ! function_exists( 'jazzers_styles' ) ) :
if ( ! function_exists( 'the_jazzers_styles' ) ) :

/**
* Enqueue styles.
*
* @since Jazzers 1.0
* @since The Jazzers 1.0
*
* @return void
*/
function jazzers_styles() {
function the_jazzers_styles() {

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

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

}

endif;

add_action( 'wp_enqueue_scripts', 'jazzers_styles' );
add_action( 'wp_enqueue_scripts', 'the_jazzers_styles' );
24 changes: 16 additions & 8 deletions the-jazzers/patterns/404.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: A 404 page
* Slug: jazzers/404
* Title: 404
* Slug: the-jazzers/404
* Categories: hidden
* Inserter: no
*/

?>
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:heading {"textAlign":"center","level":1,"fontSize":"x-large"} -->
<h1 class="has-text-align-center has-x-large-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'Oops! That page can&rsquo;t be found.', 'jazzers' ); ?></h1>
<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"7.5vh","bottom":"15vh"},"margin":{"top":"0rem","bottom":"0rem"}}},"layout":{"type":"constrained"}} -->
<main class="wp-block-group" style="margin-top:0rem;margin-bottom:0rem;padding-top:7.5vh;padding-bottom:15vh"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"5vh"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide"><!-- wp:heading {"textAlign":"center","level":1,"align":"wide","style":{"typography":{"lineHeight":"1"}}} -->
<h1 class="wp-block-heading alignwide has-text-align-center" id="oops-that-page-can-t-be-found" style="line-height:1"><?php esc_html_e('Oops! The page can’t be found.', 'the-jazzers');?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><?php echo esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'jazzers' ); ?></p>
<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><?php esc_html_e('It looks like nothing was found at this location. Maybe try a search?', 'the-jazzers');?></p>
<!-- /wp:paragraph -->

<!-- wp:search {"label":"","showLabel":false,"placeholder":"Search","buttonUseIcon":true,"style":{"border":{"radius":"2px","width":"0px","style":"none"}}} /--></div>
<!-- /wp:group --></main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
47 changes: 47 additions & 0 deletions the-jazzers/patterns/archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php
/**
* Title: archive
* Slug: the-jazzers/archive
* Categories: hidden
* Inserter: no
*/
?>
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"tagName":"main","style":{"elements":{"link":{"color":{"text":"var:preset|color|secondary"}}},"spacing":{"padding":{"top":"10vh","bottom":"10vh"}}},"backgroundColor":"primary","textColor":"secondary","layout":{"type":"constrained"}} -->
<main class="wp-block-group has-secondary-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:10vh;padding-bottom:10vh"><!-- wp:query {"queryId":9,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"tagName":"main","align":"wide","layout":{"type":"constrained"}} -->
<main class="wp-block-query alignwide"><!-- wp:query-title {"type":"archive"} /-->

<!-- wp:post-template {"style":{"spacing":{"blockGap":"15vh"}},"layout":{"type":"constrained"}} -->
<!-- wp:post-featured-image {"isLink":true} /-->

<!-- wp:group {"style":{"spacing":{"blockGap":"2.5vh","margin":{"top":"2.5vh","bottom":"5vh"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group" style="margin-top:2.5vh;margin-bottom:5vh"><!-- wp:post-title {"isLink":true} /-->

<!-- wp:group {"style":{"spacing":{"blockGap":"1.5rem"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group"><!-- wp:post-excerpt {"moreText":"read more","showMoreOnNewLine":false} /-->

<!-- wp:template-part {"slug":"post-meta"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- /wp:post-template -->

<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous {"label":"Prev"} /-->

<!-- wp:query-pagination-numbers /-->

<!-- wp:query-pagination-next {"label":"Next"} /-->
<!-- /wp:query-pagination --></div>
<!-- /wp:group -->

<!-- wp:query-no-results -->
<!-- wp:paragraph {"align":"center","placeholder":"Add text or blocks that will display when a query returns no results."} -->
<p class="has-text-align-center"><?php esc_html_e('', 'the-jazzers');?></p>
<!-- /wp:paragraph -->
<!-- /wp:query-no-results --></main>
<!-- /wp:query --></main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
2 changes: 1 addition & 1 deletion the-jazzers/patterns/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php
/**
* Title: Comments
* slug: jazzers/comments
* slug: the-jazzers/comments
* inserter: no
*/

Expand Down
6 changes: 3 additions & 3 deletions the-jazzers/patterns/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php
/**
* Title: Default footer
* Slug: jazzers/footer
* Slug: the-jazzers/footer
* Categories: footer
* Block Types: core/template-part/footer
*/
Expand All @@ -20,9 +20,9 @@
<p class="has-text-align-center">
<?php
/* Translators: WordPress link. */
$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'jazzers' ) ) . '" rel="nofollow">WordPress</a>';
$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'the-jazzers' ) ) . '" rel="nofollow">WordPress</a>';
echo sprintf(
esc_html__( 'Designed with %1$s', 'jazzers' ),
esc_html__( 'Designed with %1$s', 'the-jazzers' ),
$wordpress_link
);
?>
Expand Down
4 changes: 2 additions & 2 deletions the-jazzers/patterns/hidden-no-results-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<?php
/**
* Title: Hidden No Results Content
* Slug: jazzers/hidden-no-results-content
* Slug: the-jazzers/hidden-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', 'jazzers' ); ?></p>
<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', 'the-jazzers' ); ?></p>
<!-- /wp:paragraph -->
Loading

0 comments on commit 2f35d14

Please sign in to comment.