Skip to content

Commit ecee49f

Browse files
authored
Merge pull request #28 from BeAPI/feature/clean-markup
Clean markup and heading level attribute
2 parents eebfb0c + 4a0bdae commit ecee49f

31 files changed

Lines changed: 684 additions & 231 deletions

blockparty-faq.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ function blockparty_faq_init(): void {
8383
'forceExpand' => false,
8484
'hasAnimation' => true,
8585
'openMultiple' => false,
86-
'panelSelector' => '.faq__panel',
86+
'panelSelector' => '.wp-block-blockparty-faq-answer',
8787
'prefixId' => 'block-faq',
88-
'triggerSelector' => '.faq__trigger',
88+
'triggerSelector' => '.wp-block-blockparty-faq-trigger',
8989
]
9090
),
9191
];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"translation-revision-date":"2026-06-26 15:28+0200","generator":"WP-CLI\/2.11.0","source":"build\/faq-answer\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr_FR","plural-forms":"nplurals=2; plural=(n != 1);"},"Answer\u2026":["R\u00e9ponse\u2026"]}}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"translation-revision-date":"2026-06-26 15:28+0200","generator":"WP-CLI\/2.11.0","source":"build\/faq-item\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr_FR","plural-forms":"nplurals=2; plural=(n != 1);"},"Add FAQ item":["Ajouter un \u00e9l\u00e9ment"],"Remove FAQ item":["Supprimer l\u2019\u00e9l\u00e9ment"]}}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"translation-revision-date":"2026-06-26 15:28+0200","generator":"WP-CLI\/2.11.0","source":"build\/faq-question\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr_FR","plural-forms":"nplurals=2; plural=(n != 1);"},"Question\u2026?":["Question\u2026?"]}}}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"translation-revision-date": "2026-06-26 15:28+0200",
3+
"generator": "WP-CLI\/2.11.0",
4+
"source": "build\/faq\/index.js",
5+
"domain": "messages",
6+
"locale_data": {
7+
"messages": {
8+
"": {
9+
"domain": "messages",
10+
"lang": "fr_FR",
11+
"plural-forms": "nplurals=2; plural=(n != 1);"
12+
},
13+
"Add FAQ item": [
14+
"Ajouter un \u00e9l\u00e9ment"
15+
],
16+
"Remove FAQ item": [
17+
"Supprimer l\u2019\u00e9l\u00e9ment"
18+
],
19+
"Settings": [
20+
"R\u00e9glages"
21+
],
22+
"Accordion behavior": [
23+
"Comportement d\u2019accord\u00e9on"
24+
],
25+
"If enabled, the FAQ will be displayed as an accordion component.": [
26+
"Si cette option est activ\u00e9e, la FAQ s'affichera sous forme d'accord\u00e9on."
27+
],
28+
"Question heading level": [
29+
"Niveau de titre de la question"
30+
],
31+
"Define the heading level for each FAQ question.": [
32+
"D\u00e9finissez le niveau de titre pour chaque question de la FAQ."
33+
],
34+
"Heading level %d": [
35+
"Niveau de titre %d"
36+
]
37+
}
38+
}
39+
}

languages/blockparty-faq-fr_FR-dfbff627e6c248bcb3b61d7d06da9ca9.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

languages/blockparty-faq-fr_FR.mo

182 Bytes
Binary file not shown.

languages/blockparty-faq-fr_FR.po

Lines changed: 44 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ msgid ""
44
msgstr ""
55
"Project-Id-Version: Blockparty Faq 1.0.2\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/blockparty-faq\n"
7-
"POT-Creation-Date: 2026-01-26T15:49:49+00:00\n"
8-
"PO-Revision-Date: 2026-01-26 16:50+0100\n"
7+
"POT-Creation-Date: 2026-06-26T13:28:07+00:00\n"
8+
"PO-Revision-Date: 2026-06-26 15:28+0200\n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"
1111
"Language: fr_FR\n"
1212
"MIME-Version: 1.0\n"
1313
"Content-Type: text/plain; charset=UTF-8\n"
1414
"Content-Transfer-Encoding: 8bit\n"
15-
"X-Generator: Poedit 3.8\n"
15+
"X-Generator: Poedit 3.9\n"
1616
"X-Domain: blockparty-faq\n"
1717

1818
#. Plugin Name of the plugin
@@ -40,51 +40,47 @@ msgstr ""
4040
msgid "Be API Technical team"
4141
msgstr "L’équipe technique de Be API"
4242

43-
#: build/index.js:1
43+
#: build/faq-answer/index.js:1
44+
msgid "Answer…"
45+
msgstr "Réponse…"
46+
47+
#: build/faq-item/index.js:1 build/faq/index.js:1
4448
msgid "Add FAQ item"
4549
msgstr "Ajouter un élément"
4650

47-
#: build/index.js:1
51+
#: build/faq-item/index.js:1 build/faq/index.js:1
4852
msgid "Remove FAQ item"
4953
msgstr "Supprimer l’élément"
5054

51-
#: build/index.js:1
52-
msgid "FAQ Settings"
53-
msgstr "Réglages de FAQ"
55+
#: build/faq-question/index.js:1
56+
msgid "Question…?"
57+
msgstr "Question…?"
5458

55-
#: build/index.js:1
59+
#: build/faq/index.js:1
60+
msgid "Settings"
61+
msgstr "Réglages"
62+
63+
#: build/faq/index.js:1
5664
msgid "Accordion behavior"
5765
msgstr "Comportement d’accordéon"
5866

59-
#: build/index.js:1
60-
msgid ""
61-
"If enabled, the HTML structure will be interpreted as an accordion from "
62-
"screen readers."
67+
#: build/faq/index.js:1
68+
msgid "If enabled, the FAQ will be displayed as an accordion component."
6369
msgstr ""
64-
"Si c’est activé, la structure HTML du bloc sera interprété en tant "
65-
"qu’accordéon pour les technologies d’assistance."
70+
"Si cette option est activée, la FAQ s'affichera sous forme d'accordéon."
6671

67-
#: build/index.js:1
68-
msgid "Question…?"
69-
msgstr "Question…?"
72+
#: build/faq/index.js:1
73+
msgid "Question heading level"
74+
msgstr "Niveau de titre de la question"
7075

71-
#: build/index.js:1
72-
msgid "Answer…"
73-
msgstr "Réponse…"
74-
75-
#: block.json
76-
msgctxt "block title"
77-
msgid "FAQ"
78-
msgstr "FAQ"
76+
#: build/faq/index.js:1
77+
msgid "Define the heading level for each FAQ question."
78+
msgstr "Définissez le niveau de titre pour chaque question de la FAQ."
7979

80-
#: block.json
81-
msgctxt "block description"
82-
msgid ""
83-
"A FAQ block for WordPress Editor that provided structured data based on FAQ "
84-
"schema."
85-
msgstr ""
86-
"A FAQ block for WordPress Editor that provided structured data based on FAQ "
87-
"schema."
80+
#. translators: %d: heading level number (2–6).
81+
#: build/faq/index.js:2
82+
msgid "Heading level %d"
83+
msgstr "Niveau de titre %d"
8884

8985
#: build/faq-answer/block.json
9086
msgctxt "block title"
@@ -115,3 +111,17 @@ msgstr "Question de FAQ"
115111
msgctxt "block description"
116112
msgid "Content of the FAQ question."
117113
msgstr "Contenu de la question FAQ."
114+
115+
#: build/faq/block.json
116+
msgctxt "block title"
117+
msgid "FAQ"
118+
msgstr "FAQ"
119+
120+
#: build/faq/block.json
121+
msgctxt "block description"
122+
msgid ""
123+
"A FAQ block for WordPress Editor that provided structured data based on FAQ "
124+
"schema."
125+
msgstr ""
126+
"A FAQ block for WordPress Editor that provided structured data based on FAQ "
127+
"schema."

languages/blockparty-faq.pot

Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# This file is distributed under the GPL-2.0-or-later.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Blockparty FAQ 1.0.2\n"
5+
"Project-Id-Version: Blockparty FAQ 2.0.3\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/blockparty-faq\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <LL@li.org>\n"
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: 2026-01-26T15:49:49+00:00\n"
12+
"POT-Creation-Date: 2026-06-26T13:28:07+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.11.0\n"
1515
"X-Domain: blockparty-faq\n"
@@ -35,42 +35,47 @@ msgstr ""
3535
msgid "Be API Technical team"
3636
msgstr ""
3737

38-
#: build/index.js:1
38+
#: build/faq-answer/index.js:1
39+
msgid "Answer…"
40+
msgstr ""
41+
42+
#: build/faq-item/index.js:1
43+
#: build/faq/index.js:1
3944
msgid "Add FAQ item"
4045
msgstr ""
4146

42-
#: build/index.js:1
47+
#: build/faq-item/index.js:1
48+
#: build/faq/index.js:1
4349
msgid "Remove FAQ item"
4450
msgstr ""
4551

46-
#: build/index.js:1
47-
msgid "FAQ Settings"
52+
#: build/faq-question/index.js:1
53+
msgid "Question…?"
4854
msgstr ""
4955

50-
#: build/index.js:1
51-
msgid "Accordion behavior"
56+
#: build/faq/index.js:1
57+
msgid "Settings"
5258
msgstr ""
5359

54-
#: build/index.js:1
55-
msgid "If enabled, the HTML structure will be interpreted as an accordion from screen readers."
60+
#: build/faq/index.js:1
61+
msgid "Accordion behavior"
5662
msgstr ""
5763

58-
#: build/index.js:1
59-
msgid "Question…?"
64+
#: build/faq/index.js:1
65+
msgid "If enabled, the FAQ will be displayed as an accordion component."
6066
msgstr ""
6167

62-
#: build/index.js:1
63-
msgid "Answer…"
68+
#: build/faq/index.js:1
69+
msgid "Question heading level"
6470
msgstr ""
6571

66-
#: block.json
67-
msgctxt "block title"
68-
msgid "FAQ"
72+
#: build/faq/index.js:1
73+
msgid "Define the heading level for each FAQ question."
6974
msgstr ""
7075

71-
#: block.json
72-
msgctxt "block description"
73-
msgid "A FAQ block for WordPress Editor that provided structured data based on FAQ schema."
76+
#. translators: %d: heading level number (2–6).
77+
#: build/faq/index.js:2
78+
msgid "Heading level %d"
7479
msgstr ""
7580

7681
#: build/faq-answer/block.json
@@ -102,3 +107,13 @@ msgstr ""
102107
msgctxt "block description"
103108
msgid "Content of the FAQ question."
104109
msgstr ""
110+
111+
#: build/faq/block.json
112+
msgctxt "block title"
113+
msgid "FAQ"
114+
msgstr ""
115+
116+
#: build/faq/block.json
117+
msgctxt "block description"
118+
msgid "A FAQ block for WordPress Editor that provided structured data based on FAQ schema."
119+
msgstr ""

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)