56klab / qhtml5

Basic Joomla 3.10.x Template
1 stars 1 forks source link

Errore nei lang=it-it dell'html che deve essere lang=it #40

Closed simbus82 closed 5 years ago

simbus82 commented 5 years ago

SI può usare la logica del

$langTag = JFactory::getLanguage()->getTag(); $langUrl = substr($langTag, 0, -3);

per inserire solo "it" in

<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="<?php echo $langUrl; ?>" dir="<?php echo $this->direction; ?>" prefix="og: http://ogp.me/ns#"><![endif]-->
<!--[if IE 7 ]><html class="no-js lt-ie9 lt-ie8" lang="<?php echo $langUrl; ?>" dir="<?php echo $this->direction; ?>" prefix="og: http://ogp.me/ns#"><![endif]-->
<!--[if IE 8 ]><html class="no-js lt-ie9" lang="<?php echo $langUrl; ?>" dir="<?php echo $this->direction; ?>" prefix="og: http://ogp.me/ns#"><![endif]-->
<!--[if IE 9 ]><html class="no-js ie9" lang="<?php echo $langUrl; ?>" dir="<?php echo $this->direction; ?>" prefix="og: http://ogp.me/ns#"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html class="no-js" lang="<?php echo $langUrl; ?>" dir="<?php echo $this->direction; ?>" prefix="og: http://ogp.me/ns#"><!--<![endif]-->
simbus82 commented 5 years ago

no va bene anche it-it