Pitbull Posted December 10, 2013 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!
arjen Posted December 10, 2013 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
Pitbull Posted December 10, 2013 Author Posted December 10, 2013 thank you arjen.. very smart approach!
pwired Posted December 10, 2013 Posted December 10, 2013 Nice found arjen, very good example too of the flexibility of processwire.
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