Skip to content

Instantly share code, notes, and snippets.

@katzueno
Created June 10, 2015 00:11
Show Gist options
  • Save katzueno/8fecefd8705418f91055 to your computer and use it in GitHub Desktop.
Save katzueno/8fecefd8705418f91055 to your computer and use it in GitHub Desktop.
concrete5.7.x エリアを多言語対応する方法
<?php
$ms = \Concrete\Core\Multilingual\Page\Section\Section::getCurrentSection();
if (is_object($ms)) {
if ($ms->getLocale() == 'en_US') {
$a = new GlobalArea('Global Nav English');
}
}
if (!is_object($a)) {
$a = new GlobalArea('Global Nav');
}
$a->display();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment