浏览代码

Renaming theme "Club" to "Disco" (#6413)

* Rename references to Club theme

* Moving files from club to disco folder
Matias Benedetto 2 年之前
父节点
当前提交
977a2a6e6e

+ 0 - 10
club/patterns/search.php

@@ -1,10 +0,0 @@
-<?php
-/**
- * Title: Search block
- * Slug: club/search
- * Inserter: no
- */
-
-?>
-
-<!-- wp:search {"label":"","showLabel":false,"placeholder":"<?php echo esc_html__( 'Search...', 'club' ); ?>","buttonText":"<?php echo esc_html__( 'WHAT R U WAITING FOR?', 'club' ); ?>"} /-->

+ 0 - 0
club/assets/fonts/SpaceMono-Bold.ttf → disco/assets/fonts/SpaceMono-Bold.ttf


+ 0 - 0
club/assets/fonts/SpaceMono-BoldItalic.ttf → disco/assets/fonts/SpaceMono-BoldItalic.ttf


+ 0 - 0
club/assets/fonts/SpaceMono-Italic.ttf → disco/assets/fonts/SpaceMono-Italic.ttf


+ 0 - 0
club/assets/fonts/SpaceMono-Regular.ttf → disco/assets/fonts/SpaceMono-Regular.ttf


+ 0 - 0
club/assets/icons/arrow.svg → disco/assets/icons/arrow.svg


+ 5 - 5
club/functions.php → disco/functions.php

@@ -1,11 +1,11 @@
 <?php
 /**
- * Club functions and definitions
+ * Disco functions and definitions
  *
  * @link https://developer.wordpress.org/themes/basics/theme-functions/
  *
- * @package Club
- * @since Club 1.0
+ * @package Disco
+ * @since Disco 1.0
  */
 
 
@@ -14,7 +14,7 @@ if ( ! function_exists( 'block_canvas_support' ) ) :
 	/**
 	 * Sets up theme defaults and registers support for various WordPress features.
 	 *
-	 * @since Club 1.0
+	 * @since Disco 1.0
 	 *
 	 * @return void
 	 */
@@ -34,7 +34,7 @@ if ( ! function_exists( 'block_canvas_styles' ) ) :
 	/**
 	 * Enqueue styles.
 	 *
-	 * @since Club 1.0
+	 * @since Disco 1.0
 	 *
 	 * @return void
 	 */

+ 0 - 0
club/index.php → disco/index.php


+ 1 - 1
club/parts/footer.html → disco/parts/footer.html

@@ -8,7 +8,7 @@
 	<div class="wp-block-group"><!-- wp:site-title {"level":2,"style":{"typography":{"lineHeight":"1.3"}},"fontSize":"large"} /-->
 	
 	<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.3"}},"fontSize":"large"} -->
-	<p class="has-large-font-size" style="line-height:1.3">Club 6 West 25th St, NY 10010</p>
+	<p class="has-large-font-size" style="line-height:1.3">Disco 6 West 25th St, NY 10010</p>
 	<!-- /wp:paragraph --></div>
 	<!-- /wp:group -->
 	

+ 0 - 0
club/parts/header.html → disco/parts/header.html


+ 4 - 4
club/patterns/404.php → disco/patterns/404.php

@@ -1,7 +1,7 @@
 <?php
 /**
  * Title: A 404 page
- * Slug: club/404
+ * Slug: disco/404
  * Inserter: no
  */
 
@@ -13,13 +13,13 @@
 <!-- /wp:spacer -->
 
 <!-- wp:heading {"textAlign":"left","level":1,"style":{"typography":{"textTransform":"uppercase"}}} -->
-<h1 class="has-text-align-left" id="oops-that-page-can-t-be-found" style="text-transform:uppercase"><?php echo esc_html__( 'Uh Oh :((((((((((', 'club' ); ?></h1>
+<h1 class="has-text-align-left" id="oops-that-page-can-t-be-found" style="text-transform:uppercase"><?php echo esc_html__( 'Uh Oh :((((((((((', 'disco' ); ?></h1>
 <!-- /wp:heading -->
 
 <!-- wp:paragraph {"fontSize":"large"} -->
-<p class="has-large-font-size"><?php echo esc_html__( 'This page could not be found. Try searching posts using the search field.', 'club' ); ?></p>
+<p class="has-large-font-size"><?php echo esc_html__( 'This page could not be found. Try searching posts using the search field.', 'disco' ); ?></p>
 <!-- /wp:paragraph -->
 
-<!-- wp:pattern {"slug":"club/search"} /-->
+<!-- wp:pattern {"slug":"disco/search"} /-->
 
 <!-- /wp:group -->

+ 5 - 5
club/patterns/post-list.php → disco/patterns/post-list.php

@@ -1,14 +1,14 @@
 <?php
 /**
  * Title: Posts list
- * Slug: club/posts-list
+ * Slug: disco/posts-list
  * Inserter: no
  */
 
 ?>
 
-<!-- wp:query {"query":{"perPage":"10","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"tagName":"main","displayLayout":{"type":"list","columns":3},"className":"club-post-list-pattern","layout":{"inherit":false}} -->
-<main class="wp-block-query club-post-list-pattern"><!-- wp:post-template -->
+<!-- wp:query {"query":{"perPage":"10","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"tagName":"main","displayLayout":{"type":"list","columns":3},"className":"disco-post-list-pattern","layout":{"inherit":false}} -->
+<main class="wp-block-query disco-post-list-pattern"><!-- wp:post-template -->
 <!-- wp:group {"style":{"spacing":{"padding":{"top":"1em","bottom":"1em"}}}} -->
 <div class="wp-block-group" style="padding-top:1em;padding-bottom:1em"><!-- wp:columns {"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
 <div class="wp-block-columns" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:column {"width":"","layout":{"inherit":false}} -->
@@ -30,7 +30,7 @@
 <!-- /wp:column -->
 
 <!-- wp:column {"width":""} -->
-<div class="wp-block-column"><!-- wp:read-more {"content":"<?php echo esc_html__( 'Read It', 'club' ); ?>"} /--></div>
+<div class="wp-block-column"><!-- wp:read-more {"content":"<?php echo esc_html__( 'Read It', 'disco' ); ?>"} /--></div>
 <!-- /wp:column --></div>
 <!-- /wp:columns --></div>
 <!-- /wp:column --></div>
@@ -43,7 +43,7 @@
 
 <!-- /wp:post-template -->
 
-<!-- wp:paragraph {"placeholder":"<?php echo esc_html__( 'Add text or blocks that will display when the query returns no results.', 'club' ); ?>"} -->
+<!-- wp:paragraph {"placeholder":"<?php echo esc_html__( 'Add text or blocks that will display when the query returns no results.', 'disco' ); ?>"} -->
 <p></p>
 <!-- /wp:paragraph -->
 

+ 10 - 0
disco/patterns/search.php

@@ -0,0 +1,10 @@
+<?php
+/**
+ * Title: Search block
+ * Slug: disco/search
+ * Inserter: no
+ */
+
+?>
+
+<!-- wp:search {"label":"","showLabel":false,"placeholder":"<?php echo esc_html__( 'Search...', 'disco' ); ?>","buttonText":"<?php echo esc_html__( 'WHAT R U WAITING FOR?', 'disco' ); ?>"} /-->

+ 4 - 4
club/readme.txt → disco/readme.txt

@@ -1,4 +1,4 @@
-=== Club ===
+=== Disco ===
 Contributors: Automattic
 Requires at least: 5.8
 Tested up to: 6.0.1
@@ -8,7 +8,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
 
 == Description ==
 
-Club is a funky, vibrant, opinionated theme with a monospaced font. Both its styles and spacing form an edgy aesthetic perfect for those looking to build a quirky website.
+Disco is a funky, vibrant, opinionated theme with a monospaced font. Both its styles and spacing form an edgy aesthetic perfect for those looking to build a quirky website.
 
 == Changelog ==
 
@@ -17,8 +17,8 @@ Club is a funky, vibrant, opinionated theme with a monospaced font. Both its sty
 
 == Copyright ==
 
-Club WordPress Theme, (C) 2022 Automattic, Inc.
-Club is distributed under the terms of the GNU GPL.
+Disco WordPress Theme, (C) 2022 Automattic, Inc.
+Disco 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

+ 0 - 0
club/screenshot.png → disco/screenshot.png


+ 15 - 15
club/style.css → disco/style.css

@@ -1,20 +1,20 @@
 /*
-Theme Name: Club
-Theme URI: https://github.com/Automattic/themes/tree/trunk/club
+Theme Name: Disco
+Theme URI: https://github.com/Automattic/themes/tree/trunk/disco
 Author: Automattic
 Author URI: https://automattic.com/
-Description: Club is a funky, vibrant, opinionated theme with a monospaced font. Both its styles and spacing form an edgy aesthetic perfect for those looking to build a quirky website.
+Description: Disco is a funky, vibrant, opinionated theme with a monospaced font. Both its styles and spacing form an edgy aesthetic perfect for those looking to build a quirky website.
 Requires at least: 5.8
 Tested up to: 6.0.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
-Text Domain: club
+Text Domain: disco
 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, auto-loading-homepage, blog-homepage
 
-Club WordPress Theme, (C) 2021 Automattic, Inc.
-Club is distributed under the terms of the GNU GPL.
+Disco WordPress Theme, (C) 2021 Automattic, Inc.
+Disco 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
@@ -127,7 +127,7 @@ a {
  * Styles for the post list pattern
  */
 
-.club-post-list-pattern .wp-block-post-title {
+.disco-post-list-pattern .wp-block-post-title {
 	/* This is necesary to make the post list item the same height when the post has or lacks a featured image */
 	min-height: 60px; /* 60px is the height of the featured image used */
     display: flex;
@@ -135,41 +135,41 @@ a {
     flex-direction: column;
 }
 
-.club-post-list-pattern .wp-block-post-date {
+.disco-post-list-pattern .wp-block-post-date {
 	white-space: nowrap;
 }
 
-.club-post-list-pattern .wp-block-read-more {
+.disco-post-list-pattern .wp-block-read-more {
 	text-align: center;
 	word-break: keep-all;
 	width: 100%;
 	white-space: nowrap;
 }
 
-.club-post-list-pattern .wp-block-post  .post-date-container {
+.disco-post-list-pattern .wp-block-post  .post-date-container {
 	flex-basis: min-content;
 	flex-grow: unset;
 }
 
-.club-post-list-pattern .wp-block-columns {
+.disco-post-list-pattern .wp-block-columns {
 	height: 100%;
 }
 
-.club-post-list-pattern .wp-block-column {
+.disco-post-list-pattern .wp-block-column {
 	align-items: center;
 	display: flex;
 	min-width: unset;
 }
 
-.club-post-list-pattern .wp-block-post > .wp-block-group > .wp-block-columns > .wp-block-column:first-child {
+.disco-post-list-pattern .wp-block-post > .wp-block-group > .wp-block-columns > .wp-block-column:first-child {
 	flex-grow: 3;
 }
 
-.club-post-list-pattern .wp-block-post > .wp-block-group > .wp-block-columns > .wp-block-column:last-child > .wp-block-columns {
+.disco-post-list-pattern .wp-block-post > .wp-block-group > .wp-block-columns > .wp-block-column:last-child > .wp-block-columns {
 	width: 100%;
 }
 
-.club-post-list-pattern .wp-block-column:empty {
+.disco-post-list-pattern .wp-block-column:empty {
 	display: none;
 }
 

+ 1 - 1
club/templates/404.html → disco/templates/404.html

@@ -1,5 +1,5 @@
 <!-- wp:template-part {"slug":"header","tagName":"header"} /-->
 
-<!-- wp:pattern {"slug":"club/404"} /-->
+<!-- wp:pattern {"slug":"disco/404"} /-->
 
 <!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

+ 1 - 1
club/templates/archive.html → disco/templates/archive.html

@@ -6,6 +6,6 @@
 <div style="height:clamp(1rem, calc(1rem + ((1vw - 0.48rem) * 5.7692)), 2rem)" aria-hidden="true" class="wp-block-spacer"></div>
 <!-- /wp:spacer -->
 
-<!-- wp:pattern {"slug":"club/posts-list"} /-->
+<!-- wp:pattern {"slug":"disco/posts-list"} /-->
 
 <!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

+ 0 - 0
club/templates/blank.html → disco/templates/blank.html


+ 0 - 0
club/templates/footer-only.html → disco/templates/footer-only.html


+ 0 - 0
club/templates/header-footer-only.html → disco/templates/header-footer-only.html


+ 1 - 1
club/templates/index.html → disco/templates/index.html

@@ -4,7 +4,7 @@
 <hr class="wp-block-separator has-alpha-channel-opacity alignfull" style="margin-top:-2rem;margin-bottom:-2rem"/>
 <!-- /wp:separator -->
 
-<!-- wp:pattern {"slug":"club/posts-list"} /-->
+<!-- wp:pattern {"slug":"disco/posts-list"} /-->
 	
 <!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
 	

+ 0 - 0
club/templates/page.html → disco/templates/page.html


+ 2 - 2
club/templates/search.html → disco/templates/search.html

@@ -7,7 +7,7 @@
 <div style="height:clamp(1rem, calc(1rem + ((1vw - 0.48rem) * 5.7692)), 2rem)" aria-hidden="true" class="wp-block-spacer"></div>
 <!-- /wp:spacer -->
 
-<!-- wp:pattern {"slug":"club/search"} /-->
+<!-- wp:pattern {"slug":"disco/search"} /-->
 
 <!-- wp:spacer {"height":"clamp(1.5rem, calc(1.5rem + ((1vw - 0.48rem) * 5.7692)), 3rem)"} -->
 <div style="height:clamp(1.5rem, calc(1.5rem + ((1vw - 0.48rem) * 5.7692)), 3rem)" aria-hidden="true" class="wp-block-spacer"></div>
@@ -15,6 +15,6 @@
 
 <!-- /wp:group -->
 
-<!-- wp:pattern {"slug":"club/posts-list"} /-->
+<!-- wp:pattern {"slug":"disco/posts-list"} /-->
 
 <!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

+ 0 - 0
club/templates/single.html → disco/templates/single.html


+ 0 - 0
club/theme.json → disco/theme.json