Skip to content

Instantly share code, notes, and snippets.

@hissy
Created January 27, 2013 08:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hissy/4647316 to your computer and use it in GitHub Desktop.
Save hissy/4647316 to your computer and use it in GitHub Desktop.
[concrete5] Switch area name by current language
<?php
Loader::model('section', 'multilingual');
$ms = MultilingualSection::getCurrentSection();
if (is_object($ms)) {
$lang = $ms->getLanguage();
} else {
$lang = LANGUAGE;
}
if ($lang != 'en'){
$a = new GlobalArea('Footer ' . ucwords($lang));
} else {
$a = new GlobalArea('Footer');
}
$a->display();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment