Xili-language: template tags

To built theme, Wordpress provides lot of template tags. To enrich the multilingual features, xili-language plugin offers a series of template tags:

usable by theme’s designer and webmaster, more infos inside plugin source code


This template tag is used by Language list widget.

outside loop (sidebar) display the languages of the site (used also by widget)

<h2><?php _e('Languages','xilidev') ?></h2>
	<ul class="langs">
		<?php if (function_exists('xili_language_list')) {
		} ?>


in loop display the link of other posts defined as in other languages


in loop display the language of the post


replace the_category() tag of WP Core. The current template tag the_category is not hookable by plugin. So here the categories list of a post inside loop will be translated according the language of the current post.

<p class="postmetadata"><?php the_tags(__('Tags: ','xiliips'), ', ', '<br />'); echo " "; _e('Posted in','xiliips'); echo " "; 
				if (class_exists('xili_language')) {
					xiliml_the_category(get_the_ID(),', ');
				} else {
					the_category(', ');
				}  ?> | <?php edit_post_link(__('Edit','xiliips'), '', ' | '); ?>  <?php comments_popup_link(__('No Comments &#187;','xiliips'), __('1 Comment &#187;','xiliips'), __('% Comments &#187;','xiliips')); ?></p>


Template Tag insertable in search form for sub-selection of a language. This function add a way to limit the search to a target language.

... under construction...