aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/switcher/slides.phtml
diff options
context:
space:
mode:
authorBenjamin Peter2017-12-09 23:44:47 +0100
committerdedeibel2017-12-10 18:25:21 +0100
commitbe515f5150f20c773371f680efad58f2d0fcaaf0 (patch)
tree2035fa3a60399686b6c5f6e381124be68c5c667e /template/assemblies/switcher/slides.phtml
parent65397e5734b1439df4d68be40ffe994f26e551ec (diff)
Added multple translation tracks with configurable endpoints and labels
Diffstat (limited to 'template/assemblies/switcher/slides.phtml')
-rw-r--r--template/assemblies/switcher/slides.phtml12
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>