Page 1 of 1

How to use two headers - English and Spanish?

Posted: Fri Jul 23, 2010 10:05 pm
by aespinal
/*************************************
Title:Hesk Help Desk
Version: 2.2
Author:
Demo:
Download:
Website: http://www.support.itswebsites.com

Short description:


*************************************/

In previous versions, I had two different headers (one English, one Spanish).
header-esp.html
header-eng.html

Now, one version controls both languages.

For Spanish, I am including the header this way:
nclude_once('header-esp.html');

How I do to display the English header when in English language?
header-eng.html

The site:
http://www.support.itswebsites.com

Thanks in advance.

Posted: Sat Jul 24, 2010 3:53 pm
by Klemen
Something like

Code: Select all

if ($hesk_settings['language'] == 'English')
{
    include('english_header');
}
else
{
    include('spanish_header');
}
For this to work you need to call it after the

Code: Select all

require(HESK_PATH . 'inc/common.inc.php');
code.

You are great! Thanks

Posted: Sat Jul 24, 2010 4:29 pm
by aespinal
You are great! Thanks a lot. It worked fine.