Réécriture de la suppression d'un espace en trop dans le tag html

This commit is contained in:
LC 2022-12-29 13:21:16 +01:00
parent 03c3a16a85
commit ce5e9e7633
1 changed files with 2 additions and 1 deletions

View File

@ -2,8 +2,9 @@
<?php
$lang = $this->getData(['config', 'i18n', 'langBase']);
if( $this->getInput('DELTA_I18N_SITE') !== '' && $this->getInput('DELTA_I18N_SITE') !== null && $this->getInput('DELTA_I18N_SITE') !== 'base') $lang = $this->getInput('DELTA_I18N_SITE');
if( $this->getData(['config', 'social', 'headFacebook' ]) === true) { echo '<html prefix="og: http://ogp.me/ns#" lang="'.$lang.'">'; }
else { echo '<html lang="'.$lang.'">'; }
?>
<html <?php if( $this->getData(['config', 'social', 'headFacebook' ]) === true) echo 'prefix="og: http://ogp.me/ns#" '; ?>lang="<?php echo $lang;?>">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">