Pitbull Posted December 10, 2013 Share Posted December 10, 2013 hi! i have a question about using Different logo on different language, for example when a user views site in english show the logo-en.png, if user view site on italian show logo-it.png. thank you! Link to comment Share on other sites More sharing options...
arjen Posted December 10, 2013 Share Posted December 10, 2013 <img src="logo-<?php echo $user->language->name; ?>.png" alt="" /> This will give you the name of the language. So you either make sure you change the language name or the filename of the images to make sure they match. 3 Link to comment Share on other sites More sharing options...
Pitbull Posted December 10, 2013 Author Share Posted December 10, 2013 thank you arjen.. very smart approach! Link to comment Share on other sites More sharing options...
pwired Posted December 10, 2013 Share Posted December 10, 2013 Nice found arjen, very good example too of the flexibility of processwire. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now