/ Published in: PHP
URL: http://wpml.org/documentation/support/creating-multilingual-wordpress-themes/#language_switcher
Of course the Plugin from wpml.org has to be installed, the file "wpml-integration.php" from docs/theme-integration has to be copied into your theme-directory and the call include "wpml-integration.php"; has to be copied to your functions.php. After that, you can simply place <?php> somewhere in your theme.
Expand |
Embed | Plain Text
// Languages links to display in the header // function wpml_languages_list_notext($skip_missing=0, $div_id = "langselector"){ foreach($languages as $l){ echo '<li>'; //if(!$l['active']) echo '<a href="'.$l['url'].'">'; // echo $l['native_name']; //if(!$l['active']) echo ' ('.$l['translated_name'].')'; //if(!$l['active']) echo '</a>'; echo '</li>'; } echo '</ul></div>'; } } }
You need to login to post a comment.
