I have created a custom header (header.php) and one of the components in it is the flag representing the langauge of the site.
What I am looking to do is, IF the current webpage URL is "www.abcde.com/en" then Do X, where X will be the for the English Flag. If Else, then Do Y, where Y is to load for the Chinese flag.
I do not want to create seperate header files as the only difference is this.
Looking forward to your expert advice :)