Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image Added

Figure 1: Userview Theme with Language Selector

  1. English
    Place the following code in "Sub Header" in DX Progressive Theme. Change line 2 and line 3 #appResource with country flag images.
    Code Block
    languagexml
    linenumberstrue
    <div id="languages">
        <li><a href="?_lang=en_US" class="btn waves-effect btn waves-button waves-float"><img title="English" src="#appResource.US-United-States-Flag-icon.png#"/></a></li>
        <li><a href="?_lang=pt_BR" class="btn waves-effect btn waves-button waves-float"><img title="Portuguese" src="#appResource.PT-Portugal-Flag-icon.png#"/></a></li>
    </div>
    
    <script>
    $(function(){
        $("#page > header > div.navbar-inner > div > div.nav-no-collapse.header-nav > ul").prepend( $("#languages li") );
    });
    </script>

Image Removed

Figure 1: Userview Theme with Language Selector

...

  1. Upload country flags using "Properties & Export" > "Add Resource".


    Image Modified