Topic: Header of the installation for a multi-language installation  (Read 38034 times)

We would like to display different headers for the ConfTool system for different languages. How can we do this?

You have to edit etc/siteheader.inc.php

Example for a site that uses three languages and a full-width header (780 pixels):

Code: [Select]
<?php
// Conference Header
// Add any code for your conference here if necessary :-)
?>


<div class="main_element whitebg" style="float:left;">

<?php
$langno 
1;
if (
is_object($session) && $session->get('langno')>0)
  
$langno=$session->get('langno');

if (
$langno==2
  echo 
'<div class="whitebg" style="float:left; width:780px; padding: 0; vertical-align:center;"><a href="http://www.your-conference.edu/" target="_blank"><img src="header_en.gif" border=0 alt="Logo Conference"></a></div>';
elseif (
$langno==3
  echo 
'<div class="whitebg" style="float:left; width:780px; padding: 0; vertical-align:center;"><a href="http://www.your-conference.edu/" target="_blank"><img src="header_de.gif" border=0 alt="Konferenzlogo"></a></div>';
else
  echo 
'<div class="whitebg" style="float:left; width:780px; padding: 0; vertical-align:center;"><a href="http://www.your-conference.de/" target="_blank"><img src="header_fr.gif" border=0 alt="Logo de ConfĂ©rence"></a></div>';

?>


</div>


Remarks:
  • $langno is the number of the selected language. In this example 1 is English, 2 German, and 3 French.
  • Please replace the URL http://www.your-conference.edu/ with the corresponding URLs of your conference homepages.
  • The names of the header images are header_en.gif, header_de.gif, and header_fr.gif.