ソースを参照

MENU: Rename menu theme to the-menu (#7169)

* rename theme slug from menu to the-menu

* rename theme directory

* update social links
Madhu Dollu 2 年 前
コミット
e8c88e6634

+ 0 - 1
menu/parts/footer.html

@@ -1 +0,0 @@
-<!-- wp:pattern {"slug":"menu/footer"} /-->

+ 0 - 5
menu/templates/404.html

@@ -1,5 +0,0 @@
-<!-- wp:template-part {"slug":"header","tagName":"header","align":"full"} /-->
-
-<!-- wp:pattern {"slug":"menu/404"} /-->
-
-<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

+ 0 - 0
menu/assets/fonts/dm-mono_italic_400.ttf → the-menu/assets/fonts/dm-mono_italic_400.ttf


+ 0 - 0
menu/assets/fonts/dm-mono_normal_400.ttf → the-menu/assets/fonts/dm-mono_normal_400.ttf


+ 0 - 0
menu/assets/fonts/fraunces_italic_600.ttf → the-menu/assets/fonts/fraunces_italic_600.ttf


+ 0 - 0
menu/assets/fonts/fraunces_normal_600.ttf → the-menu/assets/fonts/fraunces_normal_600.ttf


+ 0 - 0
menu/assets/fonts/texgyreadventor_italic_700.woff → the-menu/assets/fonts/texgyreadventor_italic_700.woff


+ 0 - 0
menu/assets/fonts/texgyreadventor_normal_700.woff → the-menu/assets/fonts/texgyreadventor_normal_700.woff


+ 0 - 0
menu/assets/images/girl-holding-a-juicy-beef-burger.jpg → the-menu/assets/images/girl-holding-a-juicy-beef-burger.jpg


+ 0 - 0
menu/assets/images/young-lady-holding-huge-burger.jpg → the-menu/assets/images/young-lady-holding-huge-burger.jpg


+ 3 - 3
menu/functions.php → the-menu/functions.php

@@ -4,8 +4,8 @@
  *
  * @link https://developer.wordpress.org/themes/basics/theme-functions/
  *
- * @package MENU
- * @since MENU 1.0
+ * @package The MENU
+ * @since The MENU 1.0
  */
 
 
@@ -24,7 +24,7 @@ if ( ! function_exists( 'menu_support' ) ) :
 		add_editor_style( 'style.css' );
 
 		// Make theme available for translation.
-		load_theme_textdomain( 'menu' );
+		load_theme_textdomain( 'the-menu' );
 	}
 
 endif;

+ 1 - 0
the-menu/parts/footer.html

@@ -0,0 +1 @@
+<!-- wp:pattern {"slug":"the-menu/footer"} /-->

+ 0 - 0
menu/parts/header.html → the-menu/parts/header.html


+ 0 - 0
menu/parts/post-meta.html → the-menu/parts/post-meta.html


+ 5 - 5
menu/patterns/404.php → the-menu/patterns/404.php

@@ -1,7 +1,7 @@
 <?php
 /**
  * Title: A 404 page
- * Slug: menu/404
+ * Slug: the-menu/404
  * Inserter: no
  */
 
@@ -14,11 +14,11 @@
 <!-- /wp:spacer -->
 
 <!-- wp:heading {"textAlign":"left","level":1,"align":"wide","anchor":"oops-that-page-can-t-be-found"} -->
-<h1 class="wp-block-heading alignwide has-text-align-left"><?php echo esc_html__( 'We\'re sorry!', 'menu' ); ?></h1>
+<h1 class="wp-block-heading alignwide has-text-align-left"><?php echo esc_html__( 'We\'re sorry!', 'the-menu' ); ?></h1>
 <!-- /wp:heading -->
 
 <!-- wp:heading {"textAlign":"left","level":1,"align":"wide","anchor":"oops-that-page-can-t-be-found"} -->
-<h1 class="wp-block-heading alignwide has-text-align-left"><?php echo esc_html__( 'Nothing has last...', 'menu' ); ?></h1>
+<h1 class="wp-block-heading alignwide has-text-align-left"><?php echo esc_html__( 'Nothing has last...', 'the-menu' ); ?></h1>
 <!-- /wp:heading -->
 
 <!-- wp:spacer {"height":"40px"} -->
@@ -27,7 +27,7 @@
 
 <!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"40px"}},"layout":{"type":"constrained","justifyContent":"left"}} -->
 <div class="wp-block-group alignwide"><!-- wp:paragraph -->
-<p><?php echo esc_html__( 'We are apparently out of that item. What about a new selection?', 'menu' ); ?></p>
+<p><?php echo esc_html__( 'We are apparently out of that item. What about a new selection?', 'the-menu' ); ?></p>
 <!-- /wp:paragraph --></div>
 <!-- /wp:group -->
 
@@ -36,7 +36,7 @@
 <!-- /wp:spacer -->
 
 <!-- wp:group {"align":"full","layout":{"type":"constrained","justifyContent":"left"}} -->
-<div class="wp-block-group alignfull"><!-- wp:search {"showLabel":false,"width":100,"widthUnit":"%","buttonText":"<?php echo esc_html__( 'Search', 'menu' ); ?>"} /-->
+<div class="wp-block-group alignfull"><!-- wp:search {"showLabel":false,"width":100,"widthUnit":"%","buttonText":"<?php echo esc_html__( 'Search', 'the-menu' ); ?>"} /-->
 
 <!-- wp:spacer {"height":"40px"} -->
 <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>

+ 1 - 1
menu/patterns/comments.php → the-menu/patterns/comments.php

@@ -1,7 +1,7 @@
 <?php
 /**
  * Title: Comments
- * slug: menu/comments
+ * slug: the-menu/comments
  * inserter: no
  */
 

+ 8 - 8
menu/patterns/footer.php → the-menu/patterns/footer.php

@@ -1,7 +1,7 @@
 <?php
 /**
  * Title: Default footer
- * Slug: menu/footer
+ * Slug: the-menu/footer
  * Categories: footer
  * Block Types: core/template-part/footer
  */
@@ -17,10 +17,10 @@
 <div class="wp-block-group"><!-- wp:paragraph {"align":"left"} -->
 <p class="has-text-align-left">
 	<?php
-		$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'menu' ) ) . '" rel="nofollow">WordPress</a>';
+		$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'the-menu' ) ) . '" rel="nofollow">WordPress</a>';
 		echo sprintf(
 			/* Translators: WordPress link. */
-			esc_html__( 'Designed with %1$s', 'menu' ),
+			esc_html__( 'Designed with %1$s', 'the-menu' ),
 			$wordpress_link
 		);
 	?>
@@ -28,11 +28,11 @@
 <!-- /wp:paragraph -->
 
 <!-- wp:social-links {"iconColor":"primary","iconColorValue":"var(--wp--preset--color--foreground)","iconBackgroundColor":"background","iconBackgroundColorValue":"var(--wp--preset--color--tertiary)"} -->
-<ul class="wp-block-social-links has-icon-color has-icon-background-color"><!-- wp:social-link {"url":"https://tumblr.com","service":"tumblr","label":"Tumblr"} /-->
-
-<!-- wp:social-link {"url":"https://instagram.com","service":"instagram","label":"Instagram"} /-->
-
-<!-- wp:social-link {"url":"https://twitter.com","service":"twitter","label":"Twitter"} /--></ul>
+<ul class="wp-block-social-links has-icon-color has-icon-background-color">
+<!-- wp:social-link {"url":"#","service":"tumblr","label":"Tumblr"} /-->
+<!-- wp:social-link {"url":"#","service":"instagram","label":"Instagram"} /-->
+<!-- wp:social-link {"url":"#","service":"twitter","label":"Twitter"} /-->
+</ul>
 <!-- /wp:social-links --></div>
 <!-- /wp:group -->
 

+ 3 - 3
menu/patterns/gallery.php → the-menu/patterns/gallery.php

@@ -1,7 +1,7 @@
 <?php
 /**
  * Title: Gallery
- * Slug: menu/gallery
+ * Slug: the-menu/gallery
  * Categories: hidden
  * Inserter: no
  */
@@ -12,7 +12,7 @@
 <div class="wp-block-columns" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:column {"width":"29%","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
 <div class="wp-block-column" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;flex-basis:29%"><!-- wp:gallery {"linkTo":"media","sizeSlug":"full"} -->
 <figure class="wp-block-gallery has-nested-images columns-default is-cropped"><!-- wp:image {"sizeSlug":"full","linkDestination":"media","style":{"color":{"duotone":["#1d1d1d","#f8f8f7"]}}} -->
-<figure class="wp-block-image size-full"><a href="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/young-lady-holding-huge-burger.jpg"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/young-lady-holding-huge-burger.jpg" alt="<?php echo esc_attr__( 'Young lady holding huge burger', 'menu' ); ?>"/></a></figure>
+<figure class="wp-block-image size-full"><a href="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/young-lady-holding-huge-burger.jpg"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/young-lady-holding-huge-burger.jpg" alt="<?php echo esc_attr__( 'Young lady holding huge burger', 'the-menu' ); ?>"/></a></figure>
 <!-- /wp:image --></figure>
 <!-- /wp:gallery --></div>
 <!-- /wp:column -->
@@ -20,7 +20,7 @@
 <!-- wp:column {"width":"","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
 <div class="wp-block-column" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:gallery {"linkTo":"media","sizeSlug":"full"} -->
 <figure class="wp-block-gallery has-nested-images columns-default is-cropped"><!-- wp:image {"sizeSlug":"full","linkDestination":"media","style":{"color":{"duotone":["#1d1d1d","#f8f8f7"]}}} -->
-<figure class="wp-block-image size-full"><a href="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/girl-holding-a-juicy-beef-burger.jpg"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/girl-holding-a-juicy-beef-burger.jpg" alt="<?php echo esc_attr__( 'Girl holding a juicy beef burger', 'menu' ); ?>"/></a></figure>
+<figure class="wp-block-image size-full"><a href="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/girl-holding-a-juicy-beef-burger.jpg"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/girl-holding-a-juicy-beef-burger.jpg" alt="<?php echo esc_attr__( 'Girl holding a juicy beef burger', 'the-menu' ); ?>"/></a></figure>
 <!-- /wp:image --></figure>
 <!-- /wp:gallery --></div>
 <!-- /wp:column --></div>

+ 2 - 2
menu/patterns/posts-list.php → the-menu/patterns/posts-list.php

@@ -1,7 +1,7 @@
 <?php
 /**
  * Title: Posts List
- * Slug: menu/posts-list
+ * Slug: the-menu/posts-list
  * Categories: hidden
  * Inserter: no
  */
@@ -9,7 +9,7 @@
 
 <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"40px","top":"64px"}}},"layout":{"type":"constrained"}} -->
 <div class="wp-block-group alignwide" style="padding-top:64px;padding-bottom:40px"><!-- wp:heading {"level":1,"align":"wide"} -->
-<h1 class="wp-block-heading alignwide"><?php echo esc_html__( 'Burgers', 'menu' ); ?></h1>
+<h1 class="wp-block-heading alignwide"><?php echo esc_html__( 'Burgers', 'the-menu' ); ?></h1>
 <!-- /wp:heading -->
 
 <!-- wp:spacer {"height":"40px","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} -->

+ 5 - 5
menu/readme.txt → the-menu/readme.txt

@@ -1,4 +1,4 @@
-=== MENU ===
+=== The MENU ===
 Contributors: the WordPress team
 Requires at least: 6.1
 Tested up to: 6.2
@@ -12,14 +12,14 @@ A simple theme designed to facilitate restaurant owners' experience when buildin
 
 == Changelog ==
 
-= 0.0.1 =
+= 1.0.0 =
 * Initial release
 
 == Copyright ==
 
-MENU WordPress Theme, (C) 2023 the WordPress team
-MENU is distributed under the terms of the GNU GPL.
-MENU 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)
+The MENU WordPress Theme, (C) 2023 the WordPress team
+The MENU is distributed under the terms of the GNU GPL.
+The MENU 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

+ 0 - 0
menu/screenshot.png → the-menu/screenshot.png


+ 3 - 35
menu/style.css → the-menu/style.css

@@ -1,6 +1,6 @@
 /*
-Theme Name: MENU
-Theme URI: https://github.com/wordpress/menutheme/
+Theme Name: The MENU
+Theme URI: https://github.com/wordpress/the-menu/
 Author: the WordPress team
 Author URI: https://wordpress.org/themes/
 Description: A simple theme designed to facilitate restaurant owners' experience when building their sites. Is clean, direct, and customizable.
@@ -10,19 +10,10 @@ 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: menu
+Text Domain: the-menu
 Tags: food-and-drink, three-columns, wide-blocks, block-patterns, block-styles, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, flexible-header, full-site-editing, auto-loading-homepage, post-formats, rtl-language-support, style-variations, theme-options, threaded-comments, translation-ready, restaurants, menu, cuisine, food, lacarte, static, dujour, fixedmenu, bar, cafeteria, coffeeshop
 */
 
-/*
- * Font smoothing
- * https://github.com/WordPress/gutenberg/issues/35934
- */
-body {
-	-moz-osx-font-smoothing: grayscale;
-	-webkit-font-smoothing: antialiased;
-}
-
 /*
  * Control the hover stylings of outline block style.
  * Unnecessary once block styles are configurable via theme.json
@@ -34,29 +25,6 @@ body {
 	border-color: var(--wp--preset--color--secondary);
 }
 
-/**
- * Currently table styles are only available with 'wp-block-styles' 
- * theme support (block css) thus the following needs to be included
- * since 'wp-block-styles' aren't used for this theme.
- * https://github.com/WordPress/gutenberg/issues/45065
- */
-.wp-block-table thead {
-	border-bottom: 3px solid;
-}
-.wp-block-table tfoot {
-	border-top: 3px solid;
-}
-.wp-block-table td,
-.wp-block-table th {
-	padding: var(--wp--preset--spacing--30);
-	border: 1px solid;
-	word-break: normal;
-}
-.wp-block-table figcaption {
-	font-size: var(--wp--preset--font-size--small);
-	text-align: center;
-}
-
 /*
  * Link styles
  * https://github.com/WordPress/gutenberg/issues/42319

+ 0 - 0
menu/styles/cyan.json → the-menu/styles/cyan.json


+ 0 - 0
menu/styles/maroon.json → the-menu/styles/maroon.json


+ 5 - 0
the-menu/templates/404.html

@@ -0,0 +1,5 @@
+<!-- wp:template-part {"slug":"header","tagName":"header","align":"full"} /-->
+
+<!-- wp:pattern {"slug":"the-menu/404"} /-->
+
+<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

+ 0 - 0
menu/templates/archive.html → the-menu/templates/archive.html


+ 2 - 2
menu/templates/index.html → the-menu/templates/index.html

@@ -2,8 +2,8 @@
 
 <!-- wp:group {"layout":{"type":"constrained"}} -->
 <div class="wp-block-group">
-    <!-- wp:pattern {"slug":"menu/posts-list"} /-->
-    <!-- wp:pattern {"slug":"menu/gallery"} /-->
+    <!-- wp:pattern {"slug":"the-menu/posts-list"} /-->
+    <!-- wp:pattern {"slug":"the-menu/gallery"} /-->
 </div>
 <!-- /wp:group -->
 

+ 0 - 0
menu/templates/page.html → the-menu/templates/page.html


+ 1 - 1
menu/templates/search.html → the-menu/templates/search.html

@@ -19,7 +19,7 @@
 
 <!-- wp:post-excerpt /-->
 
-<!-- wp:template-part {"slug":"post-meta","theme":"menu"} /-->
+<!-- wp:template-part {"slug":"post-meta"} /-->
 
 <!-- wp:spacer {"height":"80px"} -->
 <div style="height:80px" aria-hidden="true" class="wp-block-spacer"></div>

+ 0 - 0
menu/templates/single.html → the-menu/templates/single.html


+ 0 - 0
menu/theme.json → the-menu/theme.json