Download & Extend

Theme language icon on page.tpl.php

Project:Language icons
Version:6.x-2.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

May be it not a issue on this module, but I need add language icon on my theme.

Is there some code so that I can add them to page.tpl.php to show language icon (icon in same line)?

Anyone can help me?

Comments

#1

Do you still have this issue? If you still do what is your problem exactly? Did you install the module? Are you not able to show the icons or do you want to change the way you are displaying them?

#2

Our designer included the icons hard coded on our theme source as follows:

<a href="/en"><img src="lang_en.gif" alt="English" /></a>
<a href="/nl"><img src="lang_nl.gif" alt="Dutch" /></a>

How can I theme this so the links are not static, but variable language links? thanks!

Update: We solved this by using the Block that switches between languages and css for positioning.

#3

Could you provide an example of how you did this? It would be very helpful. For example, have you managed to display the language switcher inline in say the header of a page?

Thanks in advance

Ryan

#4

Component:Miscellaneous» Code
Status:active» fixed

I would think calling theme('languageicons_icon', $language, $title) should do the trick (note that the $title is optional and will default to the language's native name if not given). Look at the function theme_languageicons_icon() for how it works and what it'll produce.

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.