Created
July 30, 2015 14:27
-
-
Save spadino/5a60bb66cb260f6f8725 to your computer and use it in GitHub Desktop.
Flags Language Swicher for Kirby
This file contains hidden or 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
<ul class="flags"> | |
<?php foreach($site->languages() as $lang): ?> | |
<li class="flag"><a href="<?php echo $page->url($lang->code()) ?>"> | |
<img src="<?php echo url('assets/images/flags/24/' . $lang . '.png') ?>"></a> | |
</li> | |
<?php endforeach ?> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put it in snippets folder than Include it in a kirby template as
You'll have to create a css style for it.