Last active
December 11, 2015 19:09
-
-
Save hissy/4646884 to your computer and use it in GitHub Desktop.
[concrete5] Set <html lang=""> attribute value in multilingual site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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?>"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment