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">
|
<div class="homegrade-blocks-chapter-header-block__infos">
|
||||||
<?php if ($thematique->parent == 0) : ?>
|
<?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 : ?>
|
<?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>
|
<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; ?>
|
<?php endif; ?>
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,6 @@ export default function Edit({ attributes, setAttributes }) {
|
||||||
);
|
);
|
||||||
let currentGeneralThematique = postParentTaxonomy ?? postMainTaxonomy ?? null;
|
let currentGeneralThematique = postParentTaxonomy ?? postMainTaxonomy ?? null;
|
||||||
|
|
||||||
|
|
||||||
// let currentGeneralThematiqueSlug = postParentTaxonomy
|
// let currentGeneralThematiqueSlug = postParentTaxonomy
|
||||||
// ? getThematiqueFamilySlug(postParentTaxonomy.slug)
|
// ? getThematiqueFamilySlug(postParentTaxonomy.slug)
|
||||||
// : postMainTaxonomy
|
// : postMainTaxonomy
|
||||||
|
|
@ -91,7 +90,6 @@ export default function Edit({ attributes, setAttributes }) {
|
||||||
return (
|
return (
|
||||||
<section className="homegrade-blocks-chapter-header-block">
|
<section className="homegrade-blocks-chapter-header-block">
|
||||||
<div className="homegrade-blocks-chapter-header-block__infos">
|
<div className="homegrade-blocks-chapter-header-block__infos">
|
||||||
|
|
||||||
<p className="homegrade-blocks-chapter-header-block__page-thematic-title">
|
<p className="homegrade-blocks-chapter-header-block__page-thematic-title">
|
||||||
{currentGeneralThematique.name}
|
{currentGeneralThematique.name}
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -104,8 +102,8 @@ export default function Edit({ attributes, setAttributes }) {
|
||||||
}}
|
}}
|
||||||
value={postTitle}
|
value={postTitle}
|
||||||
placeholder={__(
|
placeholder={__(
|
||||||
"Text de placeholrder du bloc chapter-header",
|
"Text de placeholder du bloc chapter-header",
|
||||||
"homegrade-blocks__texte-fonctionnel"
|
"homegrade-blocks__texte-backoffice"
|
||||||
)}
|
)}
|
||||||
tagName="h2"
|
tagName="h2"
|
||||||
allowedFormats={[]}
|
allowedFormats={[]}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ $relatedBrochure = get_field('brochure_pdf', $relatedBrochuresPosts[0]->ID) ?? n
|
||||||
<div class="homegrade-blocks-chapter-header-block__infos">
|
<div class="homegrade-blocks-chapter-header-block__infos">
|
||||||
<?php if ($thematique->parent == 0) : ?>
|
<?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 : ?>
|
<?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>
|
<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; ?>
|
<?php endif; ?>
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ export default function Edit({ attributes, setAttributes }) {
|
||||||
<p>
|
<p>
|
||||||
{__(
|
{__(
|
||||||
"Ce bloc n'est relié à aucune question. Rattachez-le à une fiche question dans la barre latérale.",
|
"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>
|
</p>
|
||||||
</>
|
</>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user