bugs nom des variables d'étiquettes

This commit is contained in:
Fred Tempez 2021-10-02 12:56:29 +02:00
parent 9908056c8e
commit 9e4010a4d5
4 changed files with 8 additions and 9 deletions

View File

@ -1297,13 +1297,13 @@ class common {
// Affichage du sitemap // Affichage du sitemap
$items .= '<span id="footerDisplaySiteMap"'; $items .= '<span id="footerDisplaySiteMap"';
$items .= $this->getData(['theme','footer','displaySiteMap']) === false ? ' class="displayNone"' : ''; $items .= $this->getData(['theme','footer','displaySiteMap']) === false ? ' class="displayNone"' : '';
$label = empty($this->getData(['locale','sitemaplabel'])) ? 'Rechercher' : $this->getData(['locale','sitemaplabel']); $label = empty($this->getData(['locale','sitemapPageLabel'])) ? 'Plan du site' : $this->getData(['locale','sitemapPageLabel']);
$items .= '><wbr>&nbsp;|&nbsp;<a href="' . helper::baseUrl() . 'sitemap" data-tippy-content="Plan du site" >' . $label . '</a>'; $items .= '><wbr>&nbsp;|&nbsp;<a href="' . helper::baseUrl() . 'sitemap" data-tippy-content="Plan du site" >' . $label . '</a>';
$items .= '</span>'; $items .= '</span>';
// Affichage du module de recherche // Affichage du module de recherche
$items .= '<span id="footerDisplaySearch"'; $items .= '<span id="footerDisplaySearch"';
$items .= $this->getData(['theme','footer','displaySearch']) === false ? ' class="displayNone" >' : '>'; $items .= $this->getData(['theme','footer','displaySearch']) === false ? ' class="displayNone" >' : '>';
$label = empty($this->getData(['locale','legalPageId'])) ? 'Rechercher' : $this->getData(['locale','legalPageId']); $label = empty($this->getData(['locale','searchPageLabel'])) ? 'Rechercher' : $this->getData(['locale','searchPageLabel']);
if ($this->getData(['locale','searchPageId']) !== 'none') { if ($this->getData(['locale','searchPageId']) !== 'none') {
$items .= '<wbr>&nbsp;|&nbsp;<a href="' . helper::baseUrl() . $this->getData(['locale','searchPageId']) . '" data-tippy-content="' . $label . '" >' . $label .'</a>'; $items .= '<wbr>&nbsp;|&nbsp;<a href="' . helper::baseUrl() . $this->getData(['locale','searchPageId']) . '" data-tippy-content="' . $label . '" >' . $label .'</a>';
} }
@ -1311,7 +1311,7 @@ class common {
// Affichage des mentions légales // Affichage des mentions légales
$items .= '<span id="footerDisplayLegal"'; $items .= '<span id="footerDisplayLegal"';
$items .= $this->getData(['theme','footer','displayLegal']) === false ? ' class="displayNone" >' : '>'; $items .= $this->getData(['theme','footer','displayLegal']) === false ? ' class="displayNone" >' : '>';
$label = empty($this->getData(['locale','legalPageId'])) ? 'Mentions Légales' : $this->getData(['locale','legalPageId']); $label = empty($this->getData(['locale','legalPageLabel'])) ? 'Mentions Légales' : $this->getData(['locale','legalPageLabel']);
if ($this->getData(['locale','legalPageId']) !== 'none') { if ($this->getData(['locale','legalPageId']) !== 'none') {
$items .= '<wbr>&nbsp;|&nbsp;<a href="' . helper::baseUrl() . $this->getData(['locale','legalPageId']) . '" data-tippy-content="' . $label . '">' . $label .'</a>'; $items .= '<wbr>&nbsp;|&nbsp;<a href="' . helper::baseUrl() . $this->getData(['locale','legalPageId']) . '" data-tippy-content="' . $label . '">' . $label .'</a>';
} }

View File

@ -404,7 +404,7 @@ class config extends common {
'searchPageId' => $this->getInput('configSearchPageId'), 'searchPageId' => $this->getInput('configSearchPageId'),
'searchPageLabel' => empty($this->getInput('configSearchPageLabel', helper::FILTER_STRING_SHORT)) ? 'Rechercher' : $this->getInput('configSearchPageLabel', helper::FILTER_STRING_SHORT), 'searchPageLabel' => empty($this->getInput('configSearchPageLabel', helper::FILTER_STRING_SHORT)) ? 'Rechercher' : $this->getInput('configSearchPageLabel', helper::FILTER_STRING_SHORT),
'legalPageLabel' => empty($this->getInput('configLegalPageLabel', helper::FILTER_STRING_SHORT)) ? 'Mentions légales' : $this->getInput('configLegalPageLabel', helper::FILTER_STRING_SHORT), 'legalPageLabel' => empty($this->getInput('configLegalPageLabel', helper::FILTER_STRING_SHORT)) ? 'Mentions légales' : $this->getInput('configLegalPageLabel', helper::FILTER_STRING_SHORT),
'sitemaplabel' => empty($this->getInput('configSitemapLabel', helper::FILTER_STRING_SHORT)) ? 'Plan du site' : $this->getInput('configSitemapLabel', helper::FILTER_STRING_SHORT), 'sitemapPageLabel' => empty($this->getInput('configSitemapPageLabel', helper::FILTER_STRING_SHORT)) ? 'Plan du site' : $this->getInput('configSitemapPageLabel', helper::FILTER_STRING_SHORT),
'metaDescription' => $this->getInput('configMetaDescription', helper::FILTER_STRING_LONG, true), 'metaDescription' => $this->getInput('configMetaDescription', helper::FILTER_STRING_LONG, true),
'title' => $this->getInput('configTitle', helper::FILTER_STRING_SHORT, true) 'title' => $this->getInput('configTitle', helper::FILTER_STRING_SHORT, true)
] ]

View File

@ -78,7 +78,6 @@ if ( isset($_COOKIE['ZWII_I18N_SITE']) ) {
'value' => $this->getData(['locale', 'metaDescription']), 'value' => $this->getData(['locale', 'metaDescription']),
'help' => 'La description d\'une page participe à son référencement, chaque page doit disposer d\'une description différente.' 'help' => 'La description d\'une page participe à son référencement, chaque page doit disposer d\'une description différente.'
]); ?> ]); ?>
</div> </div>
</div </div
><p>Le titre et la description sont spécifiques aux traductions rédigées du site.</p> ><p>Le titre et la description sont spécifiques aux traductions rédigées du site.</p>
@ -178,10 +177,10 @@ if ( isset($_COOKIE['ZWII_I18N_SITE']) ) {
]); ?> ]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<?php echo template::text('configSitemapLabel', [ <?php echo template::text('configSitemapPageLabel', [
'label' => 'Plan du site ' . $i18nSite, 'label' => 'Plan du site ' . $i18nSite,
'placeholder' => 'Plan du site', 'placeholder' => 'Plan du site',
'value' => $this->getData(['locale', 'sitemaplabel']), 'value' => $this->getData(['locale', 'sitemapPageLabel']),
]); ?> ]); ?>
</div> </div>
</div> </div>

View File

@ -65,10 +65,10 @@ class init extends common {
'page403' => 'none', 'page403' => 'none',
'page404' => 'none', 'page404' => 'none',
'legalPageId' => 'none', 'legalPageId' => 'none',
'legalPageLabel' => 'Mentions légales',
'searchPageId' => 'none', 'searchPageId' => 'none',
'searchPageLabel' => 'Rechercher', 'searchPageLabel' => 'Rechercher',
'sitemaplabel' => 'Plan du site', 'sitemapPageLabel' => 'Plan du site',
'legalPageLabel' => 'Mentions légales',
'metaDescription' => 'Zwii est un CMS sans base de données qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation.', 'metaDescription' => 'Zwii est un CMS sans base de données qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation.',
'title' => 'Votre site en quelques clics !' 'title' => 'Votre site en quelques clics !'
], ],