diff options
author | Benjamin Peter | 2017-12-12 14:07:49 +0100 |
---|---|---|
committer | GitHub | 2017-12-12 14:07:49 +0100 |
commit | 3229c9e8af148575d87b4dfbd878ffb300a2ddd2 (patch) | |
tree | 52a824f118f99f14d7079d2c05e9f3035350e1ee /template/assemblies/switcher/slides.phtml | |
parent | 65397e5734b1439df4d68be40ffe994f26e551ec (diff) | |
parent | 0b73843d5e0d0ac22a46db28090e707566668ae4 (diff) |
Merge pull request #56 from voc/feature/multitranslations
Feature/multitranslations
Diffstat (limited to 'template/assemblies/switcher/slides.phtml')
-rw-r--r-- | template/assemblies/switcher/slides.phtml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/template/assemblies/switcher/slides.phtml b/template/assemblies/switcher/slides.phtml index dfbc26d..ba70c5f 100644 --- a/template/assemblies/switcher/slides.phtml +++ b/template/assemblies/switcher/slides.phtml @@ -10,12 +10,14 @@ <a href="<?=h($selection->getLink())?>" class="btn btn-primary"> <span class="fa fa-flag-o"></span> - native - </a> - <a href="<?=h($selection->getTranslatedLink())?>" class="btn btn-primary"> - <span class="fa fa-flag"></span> - translated + Native </a> + <? foreach($room->getTranslations() as $translation): ?> + <a href="<?=h($selection->getTranslatedLink($translation['endpoint']))?>" class="btn btn-primary"> + <span class="fa fa-flag"></span> + <?=h(ucfirst($translation['label']))?> + </a> + <? endforeach ?> </div> </div> |