Created
September 19, 2013 19:25
-
-
Save jbutko/6628594 to your computer and use it in GitHub Desktop.
WP, qTranslate: Show image based on language
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
<div class="ruka"> | |
<?php if(qtrans_getLanguage()=='SK'): ?> | |
<img src="<?php bloginfo('template_directory') ?>/images/ruka<?php echo get_bloginfo('language') ?>.jpg" alt="sckr logo" /> | |
<?php endif; ?> | |
<?php if(qtrans_getLanguage()=='en'): ?> | |
<img src="<?php bloginfo('template_directory') ?>/images/ruka<?php echo get_bloginfo('language') ?>.png" alt="icgv logo" /> | |
<?php endif; ?> | |
</div><!-- .ruka --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment