you'll have to create a custom header, see http://forum.coppermine-gallery.net/index.php?topic=9863.msg44419#msg44419 and various other threads that explain this.
Hi,
I have already changed gallery theme header and footer to my website theme..
But my question is i have 2 images "ar-header.jpg" and "en-header.jpg" and default language is english so i m showing "en-header.jpg" and when i 'll select labgauge as Arabic i want to show "ar-header.jpg"
As in the url i m not always getting "lang=English or Arabaic" variable so i could use it show the proper images..!
I tried to solve this way but it dont knwo that much...help me.
template.html: Inserted this code on the page top
{MY_HEADER}
theme.php:
function pageheader($section, $meta = '')
{
global $CONFIG, $THEME_DIR;
global $template_header, $lang_charset, $lang_text_dir;
$charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
header("Content-Type: text/html; charset=$charset");
user_save_profile();
Now i want some code here to know what is my current langauge......something like this
// Store current languge in this variable
$current_language= ????????????;
if ($current_language=="English")
{
//Set Arabic Header
$my_header_img = "ar_header.jpg";
}
else
{
//Set English Header
$my_header_img = "en_header.jpg";
}
Now i can send this filename to template.htm
$template_vars = array('{LANG_DIR}' => $lang_text_dir,
'{TITLE}' => $CONFIG['gallery_name'] . ' - ' . $section,
'{CHARSET}' => $charset,
'{META}' => $meta,
'{GAL_NAME}' => $CONFIG['gallery_name'],
'{MY_HEADER}' => $my_header_img,
'{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
'{MAIN_MENU}' => theme_main_menu(),
'{ADMIN_MENU}' => theme_admin_mode_menu(),
);
echo template_eval($template_header, $template_vars);
}
Now here i want only one value somehaw
$current_language= ?????????;
I dont know whether i m right or not but pls tell me how to solve this..
thankx,
Azim