adapting the namespace not to cause problems with wpml

This commit is contained in:
Antoine M 2023-10-25 14:36:33 +02:00
parent 95e6a70bf5
commit 3d48aa5bf5
4 changed files with 6 additions and 7 deletions

View File

@ -27,7 +27,8 @@ $relatedBrochure = get_field('brochure_pdf', $relatedBrochuresPosts[0]->ID) ?? n
<div class="homegrade-blocks-chapter-header-block__infos">
<?php if ($thematique->parent == 0) : ?>
<p class="homegrade-blocks-chapter-header-block__page-thematic-title <?php echo "text-" . getThematiqueFamilySlug($thematique_generale->slug) ?>"><?php echo __("Les conseillers Homegrade vous guident", "homegrade-theme__bloks-texte-fonctionnel") ?></p>
<p class="homegrade-blocks-chapter-header-block__page-thematic-title <?php echo "text-" . getThematiqueFamilySlug($thematique_generale->slug) ?>"><?php echo __("Les conseillers Homegrade vous guident", "homegrade-blocks__texte-backoffice") ?></p>
<?php else : ?>
<p class="homegrade-blocks-chapter-header-block__page-thematic-title <?php echo "text-" . getThematiqueFamilySlug($thematique_generale->slug) ?>"><?php echo $thematique_generale->name ?></p>
<?php endif; ?>

View File

@ -60,7 +60,6 @@ export default function Edit({ attributes, setAttributes }) {
);
let currentGeneralThematique = postParentTaxonomy ?? postMainTaxonomy ?? null;
// let currentGeneralThematiqueSlug = postParentTaxonomy
// ? getThematiqueFamilySlug(postParentTaxonomy.slug)
// : postMainTaxonomy
@ -91,7 +90,6 @@ export default function Edit({ attributes, setAttributes }) {
return (
<section className="homegrade-blocks-chapter-header-block">
<div className="homegrade-blocks-chapter-header-block__infos">
<p className="homegrade-blocks-chapter-header-block__page-thematic-title">
{currentGeneralThematique.name}
</p>
@ -104,8 +102,8 @@ export default function Edit({ attributes, setAttributes }) {
}}
value={postTitle}
placeholder={__(
"Text de placeholrder du bloc chapter-header",
"homegrade-blocks__texte-fonctionnel"
"Text de placeholder du bloc chapter-header",
"homegrade-blocks__texte-backoffice"
)}
tagName="h2"
allowedFormats={[]}

View File

@ -27,7 +27,7 @@ $relatedBrochure = get_field('brochure_pdf', $relatedBrochuresPosts[0]->ID) ?? n
<div class="homegrade-blocks-chapter-header-block__infos">
<?php if ($thematique->parent == 0) : ?>
<p class="homegrade-blocks-chapter-header-block__page-thematic-title <?php echo "text-" . getThematiqueFamilySlug($thematique_generale->slug) ?>"><?php echo __("Les conseillers Homegrade vous guident", "homegrade-theme__bloks-texte-fonctionnel") ?></p>
<p class="homegrade-blocks-chapter-header-block__page-thematic-title <?php echo "text-" . getThematiqueFamilySlug($thematique_generale->slug) ?>"><?php echo __("Les conseillers Homegrade vous guident", "homegrade-blocks__texte-backoffice") ?></p>
<?php else : ?>
<p class="homegrade-blocks-chapter-header-block__page-thematic-title <?php echo "text-" . getThematiqueFamilySlug($thematique_generale->slug) ?>"><?php echo $thematique_generale->name ?></p>
<?php endif; ?>

View File

@ -130,7 +130,7 @@ export default function Edit({ attributes, setAttributes }) {
<p>
{__(
"Ce bloc n'est relié à aucune question. Rattachez-le à une fiche question dans la barre latérale.",
"homegrade-blocks__texte-fonctionnel"
"homegrade-blocks__texte-backoffice"
)}
</p>
</>