MyMenu: Fixing hard-coded links (#7916)

Co-authored-by: Henrique 'Foca' Iamarino <henriquefoca@gmail.com>
This commit is contained in:
Henrique Iamarino 2024-07-03 11:53:20 +02:00 committed by GitHub
parent c23b7d0218
commit 7645b76bd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 8 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 395 KiB

After

Width:  |  Height:  |  Size: 392 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 139 KiB

View file

@ -239,19 +239,19 @@
<div class="wp-block-group alignwide"><!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"1px","left":"1px"}}}} --> <div class="wp-block-group alignwide"><!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"1px","left":"1px"}}}} -->
<div class="wp-block-columns"><!-- wp:column {"width":"31%","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} --> <div class="wp-block-columns"><!-- wp:column {"width":"31%","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:31%"><!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"full","linkDestination":"media","style":{"color":[]}} --> <div class="wp-block-column" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;flex-basis:31%"><!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"full","linkDestination":"media","style":{"color":[]}} -->
<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 esc_html_e('', 'mymenu');?>" style="aspect-ratio:1;object-fit:cover"/></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 esc_attr_e('Young lady holding huge burger', 'mymenu');?>" style="aspect-ratio:1;object-fit:cover"/></a></figure>
<!-- /wp:image --></div> <!-- /wp:image --></div>
<!-- /wp:column --> <!-- /wp:column -->
<!-- wp:column {"width":"59%","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} --> <!-- wp:column {"width":"59%","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:59%"><!-- wp:image {"aspectRatio":"4/3","scale":"cover","sizeSlug":"full","linkDestination":"media","style":{"color":[]}} --> <div class="wp-block-column" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;flex-basis:59%"><!-- wp:image {"aspectRatio":"4/3","scale":"cover","sizeSlug":"full","linkDestination":"media","style":{"color":[]}} -->
<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 esc_html_e('', 'mymenu');?>" style="aspect-ratio:4/3;object-fit:cover"/></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 esc_attr_e('Girl holding a juicy beef burger', 'mymenu');?>" style="aspect-ratio:4/3;object-fit:cover"/></a></figure>
<!-- /wp:image --></div> <!-- /wp:image --></div>
<!-- /wp:column --> <!-- /wp:column -->
<!-- wp:column {"width":"12%","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} --> <!-- wp:column {"width":"12%","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:12%"><!-- wp:image {"aspectRatio":"3/4","scale":"cover","sizeSlug":"large","linkDestination":"media","style":{"color":[]}} --> <div class="wp-block-column" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;flex-basis:12%"><!-- wp:image {"aspectRatio":"3/4","scale":"cover","sizeSlug":"full","linkDestination":"media","style":{"color":[]}} -->
<figure class="wp-block-image size-large"><a href="http://localhost.local/wp-content/themes/mymenu/assets/images/haloumi-burger-with-french-fries-768x1024-1.jpg"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/haloumi-burger-with-french-fries-768x1024.jpg" alt="<?php esc_html_e('', 'mymenu');?>" style="aspect-ratio:3/4;object-fit:cover"/></a></figure> <figure class="wp-block-image size-full"><a href="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/haloumi-burger-with-french-fries.jpg"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/haloumi-burger-with-french-fries.jpg" alt="<?php esc_attr_e('Haloumi burger with french fries', 'mymenu');?>" class="" style="aspect-ratio:3/4;object-fit:cover"/></a></figure>
<!-- /wp:image --></div> <!-- /wp:image --></div>
<!-- /wp:column --></div> <!-- /wp:column --></div>
<!-- /wp:columns --></div> <!-- /wp:columns --></div>

View file

@ -15,6 +15,9 @@ My Menu is a simple theme designed to facilitate restaurant owners site-build
== Changelog == == Changelog ==
= 1.0.1 =
* Hard-coded links removed from patterns/front-page.php
= 1.0.0 = = 1.0.0 =
* Initial release * Initial release

View file

@ -7,7 +7,7 @@ Description: My Menu is a simple theme designed to facilitate restaurant owners
Requires at least: 6.0 Requires at least: 6.0
Tested up to: 6.5 Tested up to: 6.5
Requires PHP: 5.7 Requires PHP: 5.7
Version: 1.0 Version: 1.0.1
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: mymenu Text Domain: mymenu