Skip to content

Commit 962e872

Browse files
committed
fix common W3C errors
1 parent 77da69f commit 962e872

File tree

6 files changed

+170
-80
lines changed

6 files changed

+170
-80
lines changed

components/parts/common/breadcrumb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
}
55
?>
66

7-
<nav class="breadcrumb" role="navigation" aria-label="<?php esc_attr_e( 'Breadcrumb', 'beapi-frontend-framework' ); ?>">
7+
<nav class="breadcrumb" aria-label="<?php esc_attr_e( 'Breadcrumb', 'beapi-frontend-framework' ); ?>">
88
<div class="container">
99
<?php yoast_breadcrumb( '<div class="breadcrumb__inner">', '</div>' ); ?>
1010
</div>

footer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
</main>
2-
<footer id="footer" class="footer" role="contentinfo" aria-label="<?php esc_attr_e( 'Footer', 'beapi-frontend-framework' ); ?>">
2+
<footer id="footer" class="footer" aria-label="<?php esc_attr_e( 'Footer', 'beapi-frontend-framework' ); ?>">
33

44
</footer>
55
<?php wp_footer(); ?>

header.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,27 @@ function replaceHtmlClass(regexp, str) {
2222
</script>
2323

2424
<meta charset="<?php bloginfo( 'charset' ); ?>" />
25-
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" />
2625
<meta name="viewport" content="width=device-width, initial-scale=1" />
2726
<meta http-equiv="x-ua-compatible" content="ie=edge">
2827

2928
<?php wp_head(); ?>
3029
</head>
3130
<body <?php body_class(); ?>>
3231
<?php wp_body_open(); ?>
33-
<nav class="skip-links skip-links--hidden" role="navigation" aria-label="<?php esc_attr_e( 'Fast access links', 'beapi-frontend-framework' ); ?>">
32+
<nav class="skip-links skip-links--hidden" aria-label="<?php esc_attr_e( 'Fast access links', 'beapi-frontend-framework' ); ?>">
3433
<ul>
3534
<li>
36-
<a href="#menu"><?php esc_html_e( 'Main navigation menu', 'beapi-frontend-framework' ); ?></a>
35+
<a href="#menu"><?php esc_html_e( 'Go to main navigation menu', 'beapi-frontend-framework' ); ?></a>
3736
</li>
3837
<li>
39-
<a href="#content"><?php esc_html_e( 'Main content', 'beapi-frontend-framework' ); ?></a>
38+
<a href="#content"><?php esc_html_e( 'Go to main content', 'beapi-frontend-framework' ); ?></a>
4039
</li>
4140
<li>
42-
<a href="#footer"><?php esc_html_e( 'Footer', 'beapi-frontend-framework' ); ?></a>
41+
<a href="#footer"><?php esc_html_e( 'Go to footer', 'beapi-frontend-framework' ); ?></a>
4342
</li>
4443
</ul>
4544
</nav>
46-
<header id="header" class="header" role="banner" aria-label="<?php esc_attr_e( 'Header', 'beapi-frontend-framework' ); ?>">
45+
<header id="header" class="header" aria-label="<?php esc_attr_e( 'Header', 'beapi-frontend-framework' ); ?>">
4746
<div class="header__inner">
4847
<div class="container">
4948
<a class="header__logo-link" href="<?php echo esc_url( home_url( '/' ) ); ?>">
@@ -57,7 +56,7 @@ function replaceHtmlClass(regexp, str) {
5756
<span class="sr-only aria-expanded-true-text"><?php esc_html_e( 'Close the menu', 'beapi-frontend-framework' ); ?></span>
5857
</button>
5958

60-
<nav id="menu" class="header__menu" aria-label="<?php esc_attr_e( 'Main navigation', 'beapi-frontend-framework' ); ?>" role="navigation">
59+
<nav id="menu" class="header__menu" aria-label="<?php esc_attr_e( 'Main navigation', 'beapi-frontend-framework' ); ?>">
6160
<div>
6261
<?php
6362
wp_nav_menu(
@@ -76,7 +75,7 @@ function replaceHtmlClass(regexp, str) {
7675
</div>
7776
</div>
7877
</header>
79-
<main id="content" role="main" tabindex="-1" aria-label="<?php esc_attr_e( 'Main content', 'beapi-frontend-framework' ); ?>">
78+
<main id="content" tabindex="-1" aria-label="<?php esc_attr_e( 'Main content', 'beapi-frontend-framework' ); ?>">
8079
<?php
8180
if ( ! is_front_page() && ! is_search() && ! is_404() ) {
8281
get_template_part( 'components/parts/common/breadcrumb' );
Lines changed: 73 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2022 BeAPI
1+
# Copyright (C) 2024 BeAPI
22
# This file is distributed under the .
33
msgid ""
44
msgstr ""
@@ -9,56 +9,82 @@ msgstr ""
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2022-06-30T08:09:55+00:00\n"
12+
"POT-Creation-Date: 2024-06-28T07:38:00+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"X-Generator: WP-CLI 2.6.0\n"
14+
"X-Generator: WP-CLI 2.10.0\n"
1515
"X-Domain: beapi-frontend-framework\n"
1616

1717
#. Theme Name of the theme
1818
#. Description of the theme
19+
#: style.css
1920
msgid "Be API Frontend Framework"
2021
msgstr ""
2122

2223
#. Theme URI of the theme
24+
#: style.css
2325
msgid "https://github.com/BeAPI/beapi-frontend-framework"
2426
msgstr ""
2527

2628
#. Author of the theme
29+
#: style.css
2730
msgid "BeAPI"
2831
msgstr ""
2932

3033
#. Author URI of the theme
34+
#: style.css
3135
msgid "http://www.beapi.fr"
3236
msgstr ""
3337

34-
#: components/blocks/footer.php:4
35-
#: components/blocks/skip-links.php:12
38+
#: components/parts/common/breadcrumb.php:7
39+
msgid "Breadcrumb"
40+
msgstr ""
41+
42+
#: footer.php:2
3643
msgid "Footer"
3744
msgstr ""
3845

39-
#: components/blocks/header.php:4
46+
#: header.php:33
47+
msgid "Fast access links"
48+
msgstr ""
49+
50+
#: header.php:36
51+
msgid "Go to main navigation menu"
52+
msgstr ""
53+
54+
#: header.php:39
55+
msgid "Go to main content"
56+
msgstr ""
57+
58+
#: header.php:42
59+
msgid "Go to footer"
60+
msgstr ""
61+
62+
#: header.php:46
4063
msgid "Header"
4164
msgstr ""
4265

43-
#: components/blocks/header.php:14
44-
msgid "Open/Close the menu"
66+
#: header.php:56
67+
msgid "Open the menu"
68+
msgstr ""
69+
70+
#: header.php:57
71+
msgid "Close the menu"
4572
msgstr ""
4673

47-
#: components/blocks/header.php:17
74+
#: header.php:60
4875
msgid "Main navigation"
4976
msgstr ""
5077

51-
#: components/blocks/skip-links.php:4
52-
msgid "Fast access links"
78+
#: header.php:79
79+
msgid "Main content"
5380
msgstr ""
5481

55-
#: components/blocks/skip-links.php:6
56-
msgid "Main navigation menu"
82+
#: inc/Helpers/Custom_Menu_Walker.php:27
83+
msgid "Open menu"
5784
msgstr ""
5885

59-
#: components/blocks/skip-links.php:9
60-
#: header.php:26
61-
msgid "Main content"
86+
#: inc/Helpers/Custom_Menu_Walker.php:28
87+
msgid "Close menu"
6288
msgstr ""
6389

6490
#: inc/Helpers/Formatting/Link.php:144
@@ -70,61 +96,73 @@ msgid "Share on Facebook"
7096
msgstr ""
7197

7298
#: inc/Helpers/Formatting/Share.php:64
73-
msgid "Share on Twitter"
99+
msgid "Share on X"
74100
msgstr ""
75101

76102
#: inc/Helpers/Formatting/Share.php:75
77103
msgid "Share on Linkedin"
78104
msgstr ""
79105

80106
#: inc/Helpers/Formatting/Share.php:86
81-
msgid "Share on Email"
107+
msgid "Share on Instagram"
82108
msgstr ""
83109

84-
#: inc/Helpers/Menu_Walker.php:26
85-
msgid "Toggle menu"
110+
#: inc/Helpers/Formatting/Share.php:97
111+
msgid "Share on Email"
86112
msgstr ""
87113

88-
#: inc/Services/Editor.php:76
114+
#: inc/Services/Editor.php:81
89115
msgid "Dark"
90116
msgstr ""
91117

92-
#: inc/Services/Editor.php:81
118+
#: inc/Services/Editor.php:86
93119
msgid "Light"
94120
msgstr ""
95121

96-
#: inc/Services/Editor.php:86
122+
#: inc/Services/Editor.php:91
97123
msgid "Primary"
98124
msgstr ""
99125

100-
#: inc/Services/Editor.php:91
126+
#: inc/Services/Editor.php:96
101127
msgid "Secondary"
102128
msgstr ""
103129

104-
#: inc/Services/Editor.php:102
130+
#: inc/Services/Editor.php:107
105131
msgid "Title 6"
106132
msgstr ""
107133

108-
#: inc/Services/Editor.php:108
134+
#: inc/Services/Editor.php:113
109135
msgid "Title 5"
110136
msgstr ""
111137

112-
#: inc/Services/Editor.php:114
138+
#: inc/Services/Editor.php:119
113139
msgid "Title 4"
114140
msgstr ""
115141

116-
#: inc/Services/Editor.php:120
142+
#: inc/Services/Editor.php:125
117143
msgid "Title 3"
118144
msgstr ""
119145

120-
#: inc/Services/Editor.php:126
146+
#: inc/Services/Editor.php:131
121147
msgid "Title 2"
122148
msgstr ""
123149

124-
#: inc/Services/Editor.php:132
150+
#: inc/Services/Editor.php:137
125151
msgid "Title 1"
126152
msgstr ""
127153

154+
#: inc/Services/Editor.php:251
155+
msgid "Small"
156+
msgstr ""
157+
158+
#: inc/Services/Editor.php:259
159+
msgid "Large"
160+
msgstr ""
161+
162+
#: inc/Services/Editor.php:267
163+
msgid "Huge"
164+
msgstr ""
165+
128166
#: inc/Services/Editor_Patterns.php:40
129167
msgid "Common"
130168
msgstr ""
@@ -151,3 +189,8 @@ msgstr ""
151189
#: inc/Services/Menu.php:38
152190
msgid "Footer menu"
153191
msgstr ""
192+
193+
#: patterns/media-text.php
194+
msgctxt "Pattern title"
195+
msgid "Media Text"
196+
msgstr ""

languages/fr_FR.mo

474 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)