Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Michel – xiligroup dev

    (@michelwppi)

    the_curlang() is a php function returning the slug of the current language usable like that inside the source of your theme (not in content of post):

    <h1>small example</h1>
    <?php if (the_curlang() == "en_us" ) {
    
    echo '<span>text</span>';
    
    } else {
    
    echo '<span style="color:red;">redtext</span>';
    } ?>

    List of functions are inside the plugin source and summarized here

    http://wiki.xiligroup.org/index.php/Xili-language:_functions (follow link in this post)

    Thread Starter delythchandler

    (@delythchandler)

    Thank you for your reply, I am already attempting to use the function in my template files.
    I have pasted your code above, and it still seems to break the page whenever I use the function the_curlang()

    I am using WP version 3.2.1 and plugin version 2.7.1

    do you sure that xili-language is activated ?
    are you easy in php coding ? have you test the function is active ?

    if ( function_exists('the_curlang' ) ) {
    
    }

    Be more precise about error occurred

    M.

    Thread Starter delythchandler

    (@delythchandler)

    Sorry, my mistake, the plugin had been deactivated for some reason, works ok now activated.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: xili-language] Cannot use functions’ is closed to new replies.