Created
April 7, 2017 12:18
-
-
Save pavlo-bondarchuk/e60428e4f6a26f1b0015f39fe847c9e7 to your computer and use it in GitHub Desktop.
переключатель языка зависимый от языка php.wp
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
<?php | |
$currentlang = get_bloginfo('language'); | |
if($currentlang=="ru-RU"): | |
?> | |
ru | |
<?php else: ?> | |
eng | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment