Created
June 10, 2015 00:11
-
-
Save katzueno/8fecefd8705418f91055 to your computer and use it in GitHub Desktop.
concrete5.7.x エリアを多言語対応する方法
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 | |
$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