web/wp-content/themes/IRI-Theme/header.php
changeset 170 8e3a5a6fc63e
parent 136 bde1974c263b
child 180 d8780eeb2607
--- a/web/wp-content/themes/IRI-Theme/header.php	Tue Mar 16 14:14:44 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/header.php	Thu Mar 18 09:56:33 2010 +0000
@@ -31,11 +31,11 @@
 			if ( is_home() ) {
 				$cssSearch 		= "searchHome";
 				$cssSkinselect 	= "-Home";
-				$engines		=  array(__("sur ce site"),__("sur les sites IRI"),__("sur ENMI"),__("sur Séminaires"));//__("Avancée"));
+				$engines		=  array(__("on this site",'IriTheme'),__("on IRI sites",'IriTheme'),__("on ENMI",'IriTheme'),__("on Seminars",'IriTheme'));//__("Avancée"));
 			} else {
 				$cssSearch 		= "searchPage";
 				$cssSkinselect 	= "-Page";
-				$engines		=  array(__("ce site"),__("sites IRI"),__("ENMI"),__("séminaires"));//__("Avancée"));
+				$engines		=  array(__("this site",'IriTheme'),__("sites IRI",'IriTheme'),__("ENMI",'IriTheme'),__("Seminars",'IriTheme'));//__("Avancée"));
 			}	
 	?>
 	 
@@ -125,60 +125,82 @@
 	
 	<!-- FIN DE LA HEAD -->
 </head>
+<?php 
+		if ( function_exists('xili_language_list')) {
+			$current_lang = the_cur_lang_dir();
+			$LANG_LINK = '?lang='.$current_lang['lang']; }
+?>
 <body>
 <!-- DEBUT DU HEADER -->
 <?php /*echo("debug = ".wp_title('')." lang = ".language_attributes() ); */?>
 <div class="container">
 <!-- Header -->
-  <div class="column span-24" id="header">
-       <a href="<?php echo get_option('home'); ?>/" class="logo"><img alt="<?php bloginfo('name'); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/logo-iri-petit.png" /></a> 
+  <div class="column" id="header">
+	<div class="column">
+       <a href="<?php echo (get_option('home').$LANG_LINK); ?>/" class="logo">
+		<img alt="<?php bloginfo('name'); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/logo-iri-petit.png" />
+	   </a> 
+	</div>   
+	  <div class="column lang">
+		<ul>
+		<?php if (function_exists('xili_language_list') && is_user_logged_in() ) {
+			xili_language_list();
+		} ?>
+		</ul>
+	  </div>
+	
   </div>
-
+  
 <!-- Navigation -->
 <div class="column span-24 large" id="nav"> 
 <div class="content">
+
 	<ul id="navmenu-h">
-		<li><a href="<?php echo get_settings('home'); ?>/">Accueil</a></li>
+		<li><a href="<?php echo (get_settings('home').$LANG_LINK); ?>/"><?php _e('Home','IriTheme'); ?></a></li>
 		<?php dp_list_categories('&exclude=1,8,16,17,38,171,169,170&'); ?>
 
-		<li class="alignright"><a href="<?php bloginfo('rss2_url'); ?>" style="padding: 2px 8px 2px 8px;"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/rss.png" style="padding:4px;" alt="rss icon" /></a></li>
+		<li class="alignright"><a href="<?php bloginfo('rss2_url'); echo("?lang=".$current_lang['lang']); ?>"  title="<?php _e('Click here to follow us !','IriTheme') ?>" style="padding: 2px 8px 2px 8px;"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/rss.png" style="padding:4px;" alt="rss icon" /></a></li>
 				
 		<li class="alignright" >
 				<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
 				
 				<?php
-				if ( isset($_GET['s']) ) {
+				if (isset($_GET['s']) ) {
 					$search_text= utf8_decode(stripslashes($_GET['s']));
 				} else {
-					$search_text= "Rechercher";
+					$search_text= __('Search','IriTheme');
 				}	
 				?>
 				
 				<div  id="<?php echo($cssSearch); ?>" >
+					
 					<input type="text" name="s" id="s"
-								 value="<?php echo wp_specialchars($search_text, 1); ?>"
-								 onfocus="clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')" 
-								 onblur="clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')"
+								 value		= "<?php echo wp_specialchars($search_text, 1); ?>"
+								 onfocus	= "clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')" 
+								 onblur		= "clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')"
 					/>
-				
+					
 				
 				<div class="my-skinnable-select">
 					<select name="engine" id="engine">
 					<?php
 						foreach ($engines as $i => $value) {
-							echo("<option value='".$i."'>".$value."</option>");
+							echo("<option value='".$i."'>".__($value,'IriTheme')."</option>");
 						}
 					?>
 					</select>
 				</div>
 				
-					<input id="bt" name="bt" type="submit" value="" title="Rechercher" tabindex="0" />
+					<input id="bt" name="bt" type="submit" value="" title="<?php echo($search_text); ?>" tabindex="0" />
+					<input type="hidden" name="lang" id="lang" value="<?php echo($current_lang['lang']); ?>" />
 				</div>
 				
 				</form>
 		</li>
 		
 	</ul>
-</div>
+
+	<?php do_action('icl_navigation_menu'); ?>
+	</div>
 </div>
 <!-- FIN DU HEADER -->
\ No newline at end of file