Hello everyone,
I'm working on a Moodle site. I'm using standardwhite theme and I've changed its header.html file to have a logo in the top of the page (including a link). To do this, after reading this forum I changed in that file this:
<h1 echo $heading ?></h1>
<div echo $menu ?></div>
into this:
<div class="headermain"><a href=http://www.myothersite.com><img src="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/mylogo.png" alt="MyOtherSite" title="MyOtherSite" id="logo" /></a></div>
<h1 class="headermain"><a href=http://www.myothersite.com><?php echo “My Other Site” ?></a></h1>
This works. My problem cames in the moment that I have to link to one site when the user has Moodle in English and to other site when the user has Moodle in Spanish.
I've tried checking the "Filter all strings" and using "<span class="multilang" lang="en">...</span><span class="multilang" lang="es">...</span> but it doesn't work.
Is it because "<span class lang>" doesn't work in header.html? Any of you could tell me what could I do to link to one or other site depending on my selected language?
Thank you very much.
Wonton