how i can put qtranslate into my header
-
i saw this trick
<?php global $q_config; if(is_404()) $url = get_option('home'); else $url = ''; echo '<ul id="headerMenuSystem">'; foreach(qtrans_getSortedLanguages() as $language) { $link = qtrans_convertURL('', $language); if($_SERVER["HTTPS"] == "on") $link = preg_replace('#^https://#','https://', $link); echo '<li class="menu_item"><a href="'.$link.'"'; echo ' hreflang="'.$language.'" title="'.$q_config['language_name'][$language].'"'; echo '><span'; echo '>'.$q_config['language_name'][$language].'</span></a></li>'; } echo '</ul>'; ?>
but i can see only names on the languages in my header, and i want to see a dropdown list of that languages.If anyone knows how i can do that please help me
- The topic ‘how i can put qtranslate into my header’ is closed to new replies.