web/wp-content/themes/IRI-Theme/search.php
changeset 170 8e3a5a6fc63e
parent 136 bde1974c263b
--- a/web/wp-content/themes/IRI-Theme/search.php	Tue Mar 16 14:14:44 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/search.php	Thu Mar 18 09:56:33 2010 +0000
@@ -6,6 +6,7 @@
 		$search_text = utf8_decode(stripslashes($_GET['s']));
 
 		if (isset($_GET['engine'])){
+		
 			$engine = $_GET['engine'];
 
 			if ($engine=="0") {
@@ -13,7 +14,7 @@
 
 			} else if ($engine=="1") {
 
-				$title = str_replace("%s", $search_text,__("Search results for “%s”"));
+				$title = str_replace("%s", $search_text,__("Search results for “%s”",'IriTheme'));
 				
 				echo ("
 					<h2 class='pagetitle'>".$title ."</h2><br/>
@@ -48,7 +49,7 @@
 	
 	<!-- LIGNE DE TEMPS / ENMI :: RESEARCH -->
 	<?php if ($engine=="2") : ?>
-				<h2 class='pagetitle'><?php echo(str_replace("%s", $search_text,__("Rechercher dans les annotations des ENMI &#8220;%s&#8221;"))); ?></h2>
+				<h2 class='pagetitle'><?php echo(str_replace("%s", $search_text,__("Rechercher dans les annotations des ENMI &#8220;%s&#8221;",'IriTheme'))); ?></h2>
 				<script src="http://amateur.iri.centrepompidou.fr/nouveaumonde/static/js/jquery.DOMWindow.js" type="text/javascript">
 				</script>
 				<script type="text/javascript">// <![CDATA[
@@ -87,22 +88,22 @@
 					<div>
 						<div id="search">
 							
-							<h6>Rechercher dans les anotations des Entretiens du nouveau monde industriel :<h6>
+							<h6><?php _e("Rechercher dans les anotations des Entretiens du nouveau monde industriel :",'IriTheme'); ?><h6>
 							
 							<form id="search_form" action="http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/ldt/search/" method="post">
 								
 								<input name="edition" type="hidden" value="all" /> <input id="search_ts" name="ts" type="hidden" />
 								<input id="s" name="search" type="text" value="<?php echo($search_text); ?>" style="width:250px;"/>
 								<select id="id_type" name="type"  style="width:100px;">
-									<option value="all">tous</option>
-									<option value="project">Contribution</option>
-									<option value="content">contenu</option> 
+									<option value="all"><?php _e("tous",'IriTheme'); ?></option>
+									<option value="project"><?php _e("Contribution",'IriTheme'); ?></option>
+									<option value="content"><?php _e("content",'IriTheme'); ?></option> 
 								</select>
 								<select id="id_field" name="field"  style="width:100px;">
-									<option value="all">tous</option>
-									<option value="title">titre</option>
-									<option value="abstract">résumé</option>
-									<option value="tags">tags</option>
+									<option value="all"><?php _e("all",'IriTheme'); ?></option>
+									<option value="title"><?php _e("title",'IriTheme'); ?></option>
+									<option value="abstract"><?php _e("resum",'IriTheme'); ?></option>
+									<option value="tags"><?php _e("tags",'IriTheme'); ?></option>
 								</select>
 								<input type="submit" value="recherche" />
 
@@ -112,7 +113,7 @@
 						<br/><br/>
 						<hr/>
 						<div id="msg"> 
-							Retrouvez l'ensemble des contenus et annotations et participez &agrave; l'annotation collaborative sur le site des Entretien &agrave; l'adresse suivante :<br/>
+							<?php _e("Retrouvez l'ensemble des contenus et annotations et participez &agrave; l'annotation collaborative sur le site des Entretien &agrave; l'adresse suivante :",'IriTheme'); ?><br/>
 							<a href="http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/conf/program/2009_2" target="_blank">http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/conf/program/2009_2</a>
 						</div>
 						<div class="cleaner"> &nbsp;</div>
@@ -122,7 +123,7 @@
 	
 	<!-- LIGNE DE TEMPS / AMATEURS :: SEMINAIRES -->
 	<?php if ($engine=="3") : ?>
-				<h2 class='pagetitle'><?php echo(str_replace("%s", $search_text,__("Rechercher dans les annotations des s&eacute;minaires &#8220;%s&#8221;"))); ?></h2>
+				<h2 class='pagetitle'><?php echo(str_replace("%s", $search_text,__("Rechercher dans les annotations des s&eacute;minaires &#8220;%s&#8221;",'IriTheme'))); ?></h2>
 				<script src="http://amateur.iri.centrepompidou.fr/nouveaumonde/static/js/jquery.DOMWindow.js" type="text/javascript">
 				</script>
 				<script type="text/javascript">// <![CDATA[
@@ -161,7 +162,7 @@
 					<div>
 						<div id="search">
 								<form action="http://web.iri.centrepompidou.fr/fonds/ldt/index/seminaire/__post__" method="post" id="search_form" >
-								  <h6>Recherche inters&eacute;minaire dans ligne de temps : <h6>
+								  <h6><?php _e("Recherche inters&eacute;minaire dans ligne de temps :",'IriTheme'); ?> <h6>
 								  <input id="s" type="text" name="value" value="<?php echo($search_text); ?>" />
 								  <input type="submit" value="rechercher" />
 								</form>
@@ -175,7 +176,7 @@
 	<!-- WORDPRESS / RESEARCH -->
 	<?php if (have_posts() and $engine=="0") : ?>
 	
-		<h2 class="pagetitle"><?php echo(str_replace("%s", $search_text,__("Search results for &#8220;%s&#8221;"))); ?></h2>
+		<h2 class="pagetitle"><?php echo(str_replace("%s", $search_text,__("Search results for &#8220;%s&#8221;",'IriTheme'))); ?></h2>
 		
 
 				<?php getSearch(); ?>
@@ -191,7 +192,7 @@
 		<?php while (have_posts()) : the_post(); ?>
 	
 			<div class="post" id="post-<?php the_ID(); ?>">
-				<p class="large nomargin"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></p>
+				<p class="large nomargin"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e("Permanent Link to",'IriTheme'); the_title(); ?>"><?php the_title(); ?></a></p>
 				<?php
 				// Support for "Search Excerpt" plugin
 				// http://fucoder.com/code/search-excerpt/
@@ -220,7 +221,7 @@
 		</div>
 	<?php elseif($engine=="0") : ?>
 	
-		<h2 class="center"><?php _e("No results found."); ?></h2>
+		<h2 class="center"><?php _e("No results found.",'IriTheme'); ?></h2>
 		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
 		
 		 <?php //	<!-- Tag Element if no result-->