Public API or custom integration?
-
I was hoping there might be a nice and easy way to get this code which works fine with WPML working with WPGlobus:
if(!function_exists("languages_dropdown_menu")){ function languages_dropdown_menu(){ global $awp_options; if(function_exists("icl_get_home_url") && isset($awp_options['languages_dropdown']) && $awp_options['languages_dropdown'] == 1){ $languages = icl_get_languages('skip_missing=0&orderby=id&order=asc&link_empty_to=#'); if(!empty($languages)){ echo "<ul class='languages'>"; foreach($languages as $l){ echo "<li>"; if(!$l['active']) echo '<a href="'.$l['url'].'">'; echo '<img src="'.$l['country_flag_url'].'" height="12" alt="'.$l['language_code'].'" width="18" />' . icl_disp_language($l['native_name'], $l['translated_name']); if(!$l['active']) echo '</a>'; echo '</li>'; } echo "</ul>"; } } } }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Public API or custom integration?’ is closed to new replies.