From 5c4d79cc232099a027fb14f3b1cc4bbd8f27a1cb Mon Sep 17 00:00:00 2001 From: Henrique Iamarino <103748085+henriqueiamarino@users.noreply.github.com> Date: Wed, 10 Jul 2024 12:16:50 +0200 Subject: [PATCH] MyMenu: fixing after review (#7946) * MyMenu: fixing after review * MyMenu: final edits before resubmitting --- mymenu/functions.php | 22 ++++++------ mymenu/patterns/404.php | 11 +++--- mymenu/patterns/archive.php | 9 +++-- mymenu/patterns/front-page.php | 63 +++++++++++++++++----------------- mymenu/patterns/index.php | 9 +++-- mymenu/patterns/search.php | 9 +++-- mymenu/readme.txt | 32 +++++++++++++++++ mymenu/templates/page.html | 6 ++-- mymenu/templates/single.html | 6 ++-- 9 files changed, 97 insertions(+), 70 deletions(-) diff --git a/mymenu/functions.php b/mymenu/functions.php index b71ad33673..e509a9b8e4 100644 --- a/mymenu/functions.php +++ b/mymenu/functions.php @@ -1,7 +1,7 @@ get( 'Version' ) ); // Enqueue theme stylesheet. - wp_enqueue_style( 'menu-style' ); + wp_enqueue_style( 'mymenu-style' ); } endif; -add_action( 'wp_enqueue_scripts', 'menu_styles' ); +add_action( 'wp_enqueue_scripts', 'mymenu_styles' ); diff --git a/mymenu/patterns/404.php b/mymenu/patterns/404.php index 6e2d5478d3..907e7f157f 100644 --- a/mymenu/patterns/404.php +++ b/mymenu/patterns/404.php @@ -1,4 +1,3 @@ - - -
+ +
-

+

@@ -23,7 +22,7 @@
-

+

@@ -32,7 +31,7 @@
-
+ \ No newline at end of file diff --git a/mymenu/patterns/archive.php b/mymenu/patterns/archive.php index 51ec7775c0..6c9875113e 100644 --- a/mymenu/patterns/archive.php +++ b/mymenu/patterns/archive.php @@ -1,4 +1,3 @@ - - -
+ +
@@ -44,11 +43,11 @@ -

+

-
+ \ No newline at end of file diff --git a/mymenu/patterns/front-page.php b/mymenu/patterns/front-page.php index 13189a381a..2a3b335911 100644 --- a/mymenu/patterns/front-page.php +++ b/mymenu/patterns/front-page.php @@ -1,4 +1,3 @@ - - -
+ +
-

+

@@ -26,13 +25,13 @@
-

+

-

+

@@ -40,7 +39,7 @@
-

+

@@ -52,13 +51,13 @@
-

+

-

+

@@ -66,7 +65,7 @@
-

+

@@ -78,13 +77,13 @@
-

+

-

+

@@ -92,7 +91,7 @@
-

+

@@ -104,13 +103,13 @@
-

+

-

+

@@ -118,7 +117,7 @@
-

+

@@ -130,13 +129,13 @@
-

+

-

+

@@ -144,7 +143,7 @@
-

+

@@ -156,13 +155,13 @@
-

+

-

+

@@ -170,7 +169,7 @@
-

+

@@ -182,13 +181,13 @@
-

+

-

+

@@ -196,7 +195,7 @@
-

+

@@ -208,13 +207,13 @@
-

+

-

+

@@ -222,7 +221,7 @@
-

+

@@ -240,23 +239,23 @@
-
<?php esc_attr_e('Young lady holding huge burger', 'mymenu');?>
+
<?php echo __('Young lady holding huge burger', 'mymenu');?>
-
<?php esc_attr_e('Girl holding a juicy beef burger', 'mymenu');?>
+
<?php echo __('Girl holding a juicy beef burger', 'mymenu');?>
-
<?php esc_attr_e('Haloumi burger with french fries', 'mymenu');?>
+
<?php echo __('Haloumi burger with french fries', 'mymenu');?>
-
+
\ No newline at end of file diff --git a/mymenu/patterns/index.php b/mymenu/patterns/index.php index 42f1a99e63..fd7b4588ef 100644 --- a/mymenu/patterns/index.php +++ b/mymenu/patterns/index.php @@ -1,4 +1,3 @@ - - -
+ +
@@ -36,11 +35,11 @@ -

+

-
+ \ No newline at end of file diff --git a/mymenu/patterns/search.php b/mymenu/patterns/search.php index 7e1328abe0..52d91a6dec 100644 --- a/mymenu/patterns/search.php +++ b/mymenu/patterns/search.php @@ -1,4 +1,3 @@ - - -
+ +
@@ -52,11 +51,11 @@ -

+

-
+
\ No newline at end of file diff --git a/mymenu/readme.txt b/mymenu/readme.txt index 5ee496d372..275e308ea1 100644 --- a/mymenu/readme.txt +++ b/mymenu/readme.txt @@ -40,3 +40,35 @@ GNU General Public License for more details. MyMenu is based on My Menu (), (C) the WordPress team, [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html) + +This theme bundles the following third-party resources: + +== Fonts == + +Font: DM Mono from Google Fonts +License: Open Font License (https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL) +Source: https://fonts.google.com/specimen/DM+Mono + +Font: Fraunces from Google Fonts +License: Open Font License (https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL) +Source: https://fonts.google.com/specimen/Fraunces + +Font: TeX Gyre Adventor font +License: GUST e-foundry License v1.00 (http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt) +Source: https://www.fontsquirrel.com/fonts/tex-gyre-adventor + + +== Images == + +Image: Girl holding a juicy beef burger +License: CCO (https://creativecommons.org/publicdomain/zero/1.0/) +Source: https://www.foodiesfeed.com/free-food-photo/girl-holding-a-juicy-beef-burger/ + +Image: Young lady holding huge burger +License: CCO (https://creativecommons.org/publicdomain/zero/1.0/) +Source: https://www.foodiesfeed.com/free-food-photo/young-lady-holding-huge-burger/ + + +Image: Halloumi cheeseburger +License: CCO (https://creativecommons.org/publicdomain/zero/1.0/) +Source: https://www.foodiesfeed.com/free-food-photo/haloumi-burger-with-french-fries/ \ No newline at end of file diff --git a/mymenu/templates/page.html b/mymenu/templates/page.html index 6c1dca5580..49ea1e180b 100644 --- a/mymenu/templates/page.html +++ b/mymenu/templates/page.html @@ -1,11 +1,11 @@ - -
+ +
-
+ \ No newline at end of file diff --git a/mymenu/templates/single.html b/mymenu/templates/single.html index 60c9d8780f..7c3585d94b 100644 --- a/mymenu/templates/single.html +++ b/mymenu/templates/single.html @@ -1,7 +1,7 @@ - -
+ +
@@ -13,7 +13,7 @@ -
+ \ No newline at end of file