adapting the namespace not to cause problems with wpml
This commit is contained in:
parent
95e6a70bf5
commit
3d48aa5bf5
|
|
@ -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; ?>
|
||||
|
|
|
|||
|
|
@ -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={[]}
|
||||
|
|
|
|||
|
|
@ -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; ?>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user