syuichi-tsuji
1/27/2013 - 6:19 AM

[concrete5] Set <html lang=""> attribute value in multilingual site

[concrete5] Set attribute value in multilingual site

<?php  defined('C5_EXECUTE') or die("Access Denied.");
Loader::model('section', 'multilingual');
$ms = MultilingualSection::getCurrentSection();
if (is_object($ms)) {
	$lang = $ms->getLanguage();
} else {
	$lang = LANGUAGE;
}
?>
<!DOCTYPE html>
<html lang="<?php echo $lang?>">