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

* rename theme slug from menu to the-menu

* rename theme directory

* update social links
This commit is contained in:
Madhu Dollu 2023-06-29 13:17:11 +08:00 committed by GitHub
parent 80f07bdfb1
commit e8c88e6634
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 39 additions and 71 deletions

View file

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

View file

@ -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"} /-->

View file

Before

Width:  |  Height:  |  Size: 395 KiB

After

Width:  |  Height:  |  Size: 395 KiB

View file

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 140 KiB

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php <?php
/** /**
* Title: A 404 page * Title: A 404 page
* Slug: menu/404 * Slug: the-menu/404
* Inserter: no * Inserter: no
*/ */
@ -14,11 +14,11 @@
<!-- /wp:spacer --> <!-- /wp:spacer -->
<!-- wp:heading {"textAlign":"left","level":1,"align":"wide","anchor":"oops-that-page-can-t-be-found"} --> <!-- 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 -->
<!-- wp:heading {"textAlign":"left","level":1,"align":"wide","anchor":"oops-that-page-can-t-be-found"} --> <!-- 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:heading -->
<!-- wp:spacer {"height":"40px"} --> <!-- wp:spacer {"height":"40px"} -->
@ -27,7 +27,7 @@
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"40px"}},"layout":{"type":"constrained","justifyContent":"left"}} --> <!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"40px"}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group alignwide"><!-- wp:paragraph --> <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:paragraph --></div>
<!-- /wp:group --> <!-- /wp:group -->
@ -36,7 +36,7 @@
<!-- /wp:spacer --> <!-- /wp:spacer -->
<!-- wp:group {"align":"full","layout":{"type":"constrained","justifyContent":"left"}} --> <!-- 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"} --> <!-- wp:spacer {"height":"40px"} -->
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div> <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>

View file

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

View file

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

View file

@ -1,7 +1,7 @@
<?php <?php
/** /**
* Title: Gallery * Title: Gallery
* Slug: menu/gallery * Slug: the-menu/gallery
* Categories: hidden * Categories: hidden
* Inserter: no * 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-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"} --> <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-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:image --></figure>
<!-- /wp:gallery --></div> <!-- /wp:gallery --></div>
<!-- /wp:column --> <!-- /wp:column -->
@ -20,7 +20,7 @@
<!-- wp:column {"width":"","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} --> <!-- 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"} --> <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-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:image --></figure>
<!-- /wp:gallery --></div> <!-- /wp:gallery --></div>
<!-- /wp:column --></div> <!-- /wp:column --></div>

View file

@ -1,7 +1,7 @@
<?php <?php
/** /**
* Title: Posts List * Title: Posts List
* Slug: menu/posts-list * Slug: the-menu/posts-list
* Categories: hidden * Categories: hidden
* Inserter: no * Inserter: no
*/ */
@ -9,7 +9,7 @@
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"40px","top":"64px"}}},"layout":{"type":"constrained"}} --> <!-- 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"} --> <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:heading -->
<!-- wp:spacer {"height":"40px","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} --> <!-- wp:spacer {"height":"40px","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} -->

View file

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

View file

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View file

@ -1,6 +1,6 @@
/* /*
Theme Name: MENU Theme Name: The MENU
Theme URI: https://github.com/wordpress/menutheme/ Theme URI: https://github.com/wordpress/the-menu/
Author: the WordPress team Author: the WordPress team
Author URI: https://wordpress.org/themes/ 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. 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 Version: 1.0.0
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html 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 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. * Control the hover stylings of outline block style.
* Unnecessary once block styles are configurable via theme.json * Unnecessary once block styles are configurable via theme.json
@ -34,29 +25,6 @@ body {
border-color: var(--wp--preset--color--secondary); 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 * Link styles
* https://github.com/WordPress/gutenberg/issues/42319 * https://github.com/WordPress/gutenberg/issues/42319

View file

@ -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"} /-->

View file

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

View file

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