Brat: Rename to "Partygurl" (#8032)
This commit is contained in:
parent
f2a0bf01d0
commit
a5c6628e57
25 changed files with 45 additions and 45 deletions
|
@ -1 +0,0 @@
|
|||
<!-- wp:pattern {"slug":"brat/footer"} /-->
|
|
@ -1 +0,0 @@
|
|||
<!-- wp:pattern {"slug":"brat/post-meta"} /-->
|
|
@ -1,5 +0,0 @@
|
|||
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
|
||||
|
||||
<!-- wp:pattern {"slug":"brat/404"} /-->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|
|
@ -1,61 +1,61 @@
|
|||
<?php declare( strict_types = 1 ); ?>
|
||||
<?php
|
||||
/**
|
||||
* Brat functions and definitions
|
||||
* Partygurl functions and definitions
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
||||
*
|
||||
* @package Brat
|
||||
* @since Brat 1.0
|
||||
* @package Partygurl
|
||||
* @since Partygurl 1.0
|
||||
*/
|
||||
|
||||
|
||||
if ( ! function_exists( 'brat_support' ) ) :
|
||||
if ( ! function_exists( 'partygurl_support' ) ) :
|
||||
|
||||
/**
|
||||
* Sets up theme defaults and registers support for various WordPress features.
|
||||
*
|
||||
* @since Brat 1.0
|
||||
* @since Partygurl 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function brat_support() {
|
||||
function partygurl_support() {
|
||||
|
||||
// Enqueue editor styles.
|
||||
add_editor_style( 'style.css' );
|
||||
|
||||
// Make theme available for translation.
|
||||
load_theme_textdomain( 'brat' );
|
||||
load_theme_textdomain( 'partygurl' );
|
||||
}
|
||||
|
||||
endif;
|
||||
|
||||
add_action( 'after_setup_theme', 'brat_support' );
|
||||
add_action( 'after_setup_theme', 'partygurl_support' );
|
||||
|
||||
if ( ! function_exists( 'brat_styles' ) ) :
|
||||
if ( ! function_exists( 'partygurl_styles' ) ) :
|
||||
|
||||
/**
|
||||
* Enqueue styles.
|
||||
*
|
||||
* @since Brat 1.0
|
||||
* @since Partygurl 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function brat_styles() {
|
||||
function partygurl_styles() {
|
||||
|
||||
// Register theme stylesheet.
|
||||
wp_register_style(
|
||||
'brat-style',
|
||||
'partygurl-style',
|
||||
get_stylesheet_directory_uri() . '/style.css',
|
||||
array(),
|
||||
wp_get_theme()->get( 'Version' )
|
||||
);
|
||||
|
||||
// Enqueue theme stylesheet.
|
||||
wp_enqueue_style( 'brat-style' );
|
||||
wp_enqueue_style( 'partygurl-style' );
|
||||
|
||||
}
|
||||
|
||||
endif;
|
||||
|
||||
add_action( 'wp_enqueue_scripts', 'brat_styles' );
|
||||
add_action( 'wp_enqueue_scripts', 'partygurl_styles' );
|
1
partygurl/parts/footer.html
Normal file
1
partygurl/parts/footer.html
Normal file
|
@ -0,0 +1 @@
|
|||
<!-- wp:pattern {"slug":"partygurl/footer"} /-->
|
1
partygurl/parts/post-meta.html
Normal file
1
partygurl/parts/post-meta.html
Normal file
|
@ -0,0 +1 @@
|
|||
<!-- wp:pattern {"slug":"partygurl/post-meta"} /-->
|
|
@ -2,13 +2,13 @@
|
|||
<?php
|
||||
/**
|
||||
* Title: A 404 page
|
||||
* Slug: brat/404
|
||||
* Slug: partygurl/404
|
||||
*/
|
||||
?>
|
||||
<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"var:preset|spacing|50","margin":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} -->
|
||||
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--80);margin-bottom:var(--wp--preset--spacing--60)"><!-- wp:heading {"textAlign":"center","level":1,"fontSize":"x-large"} -->
|
||||
<h1 class="wp-block-heading has-text-align-center has-x-large-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'what the hell?! nothing was found', 'brat' ); ?></h1>
|
||||
<h1 class="wp-block-heading has-text-align-center has-x-large-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'wth?! nothing was found', 'partygurl' ); ?></h1>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:search {"label":"","showLabel":false,"placeholder":"<?php echo esc_html__( 'type something...', 'brat' ); ?>","width":100,"widthUnit":"%","buttonText":"<?php echo esc_html__( 'show me the good stuff', 'brat' ); ?>","align":"center","style":{"border":{"radius":"0px","width":"0px","style":"none"},"typography":{"textTransform":"lowercase"}}} /--></main>
|
||||
<!-- /wp:group -->
|
||||
<!-- wp:search {"label":"","showLabel":false,"placeholder":"<?php echo esc_html__( 'type something...', 'partygurl' ); ?>","width":100,"widthUnit":"%","buttonText":"<?php echo esc_html__( 'show me the good stuff', 'partygurl' ); ?>","align":"center","style":{"border":{"radius":"0px","width":"0px","style":"none"},"typography":{"textTransform":"lowercase"}}} /--></main>
|
||||
<!-- /wp:group -->
|
|
@ -2,7 +2,7 @@
|
|||
<?php
|
||||
/**
|
||||
* Title: Footer
|
||||
* Slug: brat/footer
|
||||
* Slug: partygurl/footer
|
||||
* Categories: footer
|
||||
*/
|
||||
?>
|
||||
|
@ -27,4 +27,4 @@
|
|||
</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:group --></div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:group -->
|
|
@ -2,12 +2,12 @@
|
|||
<?php
|
||||
/**
|
||||
* Title: Hidden No Results Content
|
||||
* Slug: brat/hidden-no-results-content
|
||||
* Slug: partygurl/hidden-no-results-content
|
||||
* Inserter: no
|
||||
*/
|
||||
?>
|
||||
|
||||
<!-- wp:paragraph {"align":"center"} -->
|
||||
<p class="has-text-align-center pickles"><?php echo esc_html_x( 'Sorry, but no thing matched your search terms. Please try again with some different keywords.', 'Message explaining that there are no results returned from a search', 'brat' ); ?></p>
|
||||
<p class="has-text-align-center pickles"><?php echo esc_html_x( 'Sorry, but no thing matched your search terms. Please try again with some different keywords.', 'Message explaining that there are no results returned from a search', 'partygurl' ); ?></p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
/**
|
||||
* Title: post-meta
|
||||
* Slug: brat/post-meta
|
||||
* Slug: partygurl/post-meta
|
||||
* Categories: hidden
|
||||
* Inserter: no
|
||||
*/
|
||||
|
@ -12,8 +12,8 @@
|
|||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:paragraph {"style":{"typography":{"fontSize":"0.97rem"}}} -->
|
||||
<p style="font-size:0.97rem"><?php esc_html_e('/', 'brat');?></p>
|
||||
<p style="font-size:0.97rem"><?php esc_html_e('/', 'partygurl');?></p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:post-terms {"term":"category","style":{"typography":{"fontSize":"0.94rem"}}} /--></div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:group -->
|
|
@ -1,4 +1,4 @@
|
|||
== Brat ==
|
||||
== Partygurl ==
|
||||
|
||||
Contributors: Automattic
|
||||
Requires at least: 6.0
|
||||
|
@ -10,7 +10,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|||
|
||||
== Description ==
|
||||
|
||||
Brat embodies a bold and rebellious aesthetic, inspired by edgy, chaotic fun and the unapologetic “brat” energy popularized by cultural trends.
|
||||
Partygurl embodies a bold and rebellious aesthetic, inspired by edgy, chaotic fun and the unapologetic “brat” energy popularized by cultural trends.
|
||||
|
||||
|
||||
== Changelog ==
|
||||
|
@ -21,8 +21,8 @@ Brat embodies a bold and rebellious aesthetic, inspired by edgy, chaotic fun and
|
|||
|
||||
== Copyright ==
|
||||
|
||||
Brat WordPress Theme, (C) 2024 Automattic
|
||||
Brat is distributed under the terms of the GNU GPL.
|
||||
Partygurl WordPress Theme, (C) 2024 Automattic
|
||||
Partygurl is distributed under the terms of the GNU GPL.
|
||||
|
||||
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
|
||||
|
@ -35,7 +35,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
GNU General Public License for more details.
|
||||
|
||||
|
||||
Brat is based on Didone (https://github.com/Automattic/themes/tree/trunk/didone), (C) Automattic, [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)
|
||||
Partygurl is based on Didone (https://github.com/Automattic/themes/tree/trunk/didone), (C) Automattic, [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)
|
||||
|
||||
== Fonts ==
|
||||
Tex Gyre Heros Font
|
||||
|
@ -43,4 +43,4 @@ Copyright 2007--2009 for TeX Gyre extensions by B. Jackowski
|
|||
and J.M. Nowacki (on behalf of TeX Users Groups). Vietnamese characters were added by Han The Thanh.
|
||||
This work can be freely used and distributed under the GUST Font License (GFL -- see GUST-FONT-LICENSE.txt)
|
||||
which is actually an instance of the LaTeX Project Public License (LPPL -- see http://www.latex-project.org/lppl.txt ).
|
||||
-- End of Tex Gyre Heros Font Font credits --
|
||||
-- End of Tex Gyre Heros Font Font credits --
|
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 133 KiB |
|
@ -1,16 +1,16 @@
|
|||
/*
|
||||
Theme Name: Brat
|
||||
Theme URI: https://themeshaper.com/brat/
|
||||
Theme Name: Partygurl
|
||||
Theme URI: https://themeshaper.com/partygurl/
|
||||
Author: Automattic
|
||||
Author URI: https://automattic.com
|
||||
Description: Brat embodies a bold and rebellious aesthetic, inspired by edgy, chaotic fun and the unapologetic “brat” energy popularized by cultural trends.
|
||||
Description: Partygurl embodies a bold and rebellious aesthetic, inspired by edgy, chaotic fun and the unapologetic “brat” energy popularized by cultural trends.
|
||||
Requires at least: 6.0
|
||||
Tested up to: 6.6
|
||||
Requires PHP: 5.7
|
||||
Version: 1.0
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: brat
|
||||
Text Domain: partygurl
|
||||
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
|
||||
|
||||
/*
|
||||
|
@ -48,4 +48,4 @@ h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption {
|
|||
}
|
||||
p {
|
||||
text-wrap: pretty;
|
||||
}
|
||||
}
|
5
partygurl/templates/404.html
Normal file
5
partygurl/templates/404.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
|
||||
|
||||
<!-- wp:pattern {"slug":"partygurl/404"} /-->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|
|
@ -22,7 +22,7 @@
|
|||
<!-- /wp:post-template -->
|
||||
|
||||
<!-- wp:query-no-results -->
|
||||
<!-- wp:pattern {"slug":"brat/hidden-no-results-content"} /-->
|
||||
<!-- wp:pattern {"slug":"partygurl/hidden-no-results-content"} /-->
|
||||
<!-- /wp:query-no-results -->
|
||||
|
||||
<!-- wp:group {"layout":{"type":"constrained"}} -->
|
||||
|
@ -34,4 +34,4 @@
|
|||
<!-- /wp:group --></main>
|
||||
<!-- /wp:query -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|
||||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|
Loading…
Add table
Reference in a new issue