Fork me on GitHub

Own top logo for every language !  Bottom

  • Hello!

    My site is available in 3 languages. I could go and upload another 2 themes for german and spanish, with different logos. But before I'm going to do that, I wanted to ask if there's a way to switch the logo automatically when a new language is selected. How could I get this done ???

    The theme is an AutoTheme



    thx !!!
  • Easy,

    Stick your logo in the lang dir and use this code to call it:

    Code

    <?php
    $currentlang = atGetLang(); //only needs to be declared once (and after the modules tag, dunno why this is...)
    ?>
    <img src="<!-- [theme-path] -->/lang/<?php echo $currentlang; ?>/logo.jpg" alt"">


    Regards
    Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • That worked - thank you Lobos !!!
  • In the new AutoTheme 1.7 and AT-Lite .8, you can just use {imagelangpath} or

    -Shawn

    --
    Get the Revolutionary AutoTheme HTML Theme System! Currently for Zikula, PHP-Nuke, CRE Loaded, osCommerce and Wordpress!
  • AbraCadaver

    In the new AutoTheme 1.7 and AT-Lite .8, you can just use {imagelangpath} or

    -Shawn


    Sounds cool, what do those tags resolve as? themes/mytheme/images/eng/ like that?

    REgards
    Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment

This list is based on users active over the last 60 minutes.