web/wp-content/themes/IRI-Theme/header.php
branchwordpress
changeset 123 561aa6d282f6
parent 110 1e6e4baafa3d
child 125 6d47ba214f30
equal deleted inserted replaced
112:fb7cd02b9848 123:561aa6d282f6
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     2 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     2 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     3 <head profile="http://gmpg.org/xfn/11">
     3 <head profile="http://gmpg.org/xfn/11">
     4 	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
     4 	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
       
     5 	<meta name="google-site-verification" content="0kR9Eu8GeMBtsGL5ZaoZ4PYBkii0Q5pc8A9LPU17ZN0" />
     5 	<meta http-equiv="X-UA-Compatible" content="IE=8" />
     6 	<meta http-equiv="X-UA-Compatible" content="IE=8" />
     6 	<title><?php wp_title(''); ?> <?php if ( !(is_404()) && (is_single()) or (is_page()) or (is_archive()) ) { ?> :: <?php } ?> <?php bloginfo('name'); ?></title>
     7 	<title><?php wp_title(''); ?> <?php if ( !(is_404()) && (is_single()) or (is_page()) or (is_archive()) ) { ?> :: <?php } ?> <?php echo (get_bloginfo('name')." - ".get_bloginfo ( 'description' )); ?></title>
     7 	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
     8 	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
       
     9 	<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/custom-theme/jquery-ui-1.7.2.custom.css" type="text/css" media="screen, projection" />
     8 	<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/screen.css" type="text/css" media="screen, projection" />
    10 	<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/screen.css" type="text/css" media="screen, projection" />
     9 	<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/print.css" type="text/css" media="print" />
    11 	<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/print.css" type="text/css" media="print" />
    10         <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style.css" type="text/css" media="screen, projection" />
    12     <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style.css?v=20090128-7" type="text/css" media="screen, projection" />
    11     <!--[if IE]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/lib/ie.css" type="text/css" media="screen, projection" /><![endif]--> 
    13 	<!-- Javascripts  -->	
    12 	<!-- Javascripts  -->
       
    13 	<!-- <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.1.3.1.pack.js"></script> -->
       
    14 	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/functions.js"></script>
    14 	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/functions.js"></script>
    15 	<!--<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.js"></script>-->
       
    16 	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.3.2.min.js"></script>
    15 	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.3.2.min.js"></script>
    17 	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-ui-1.7.2.custom.min.js"></script>
    16 	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-ui-1.7.2.custom.min.js"></script>
       
    17 	<!-- <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.skinned-select.js"></script> -->
    18 	<!--[if lt IE 7]>
    18 	<!--[if lt IE 7]>
    19 	<script defer type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/pngfix.js"></script>
    19 	 <script defer type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/pngfix.js"></script>
    20 	<![endif]-->
    20 	<![endif]-->
    21    <!--[if gte IE 5.5]>
    21     <!--[if gte IE 5.5]>
    22    <script language="javaScript" src="<?php bloginfo('stylesheet_directory'); ?>/js/dhtml.js" type="text/javaScript"></script>
    22      <script language="javaScript" src="<?php bloginfo('stylesheet_directory'); ?>/js/dhtml.js" type="text/javaScript"></script>
    23    <![endif]-->
    23     <![endif]-->
    24 	<!-- Show the grid and baseline  -->
    24 	<!-- Show the grid and baseline  -->
    25 	<style type="text/css">
       
    26 /*		.container { background: url(<?php bloginfo('stylesheet_directory'); ?>/css/lib/img/grid.png); }*/
       
    27 	</style>
       
    28 	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    25 	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    29 	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    26 	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    30 	<?php wp_head(); ?>
    27 	<?php wp_head(); ?>
    31 	
    28 	<?php // this is for the search engine selection 
       
    29 			
       
    30 			if ( is_home() ) {
       
    31 				$cssSearch 		= "searchHome";
       
    32 				$cssSkinselect 	= "-Home";
       
    33 				$engines		=  array(__("sur ce site"),__("sur les sites IRI"),__("sur ENMI"),__("sur S&eacute;minaires"));//__("Avanc&eacute;e"));
       
    34 			} else {
       
    35 				$cssSearch 		= "searchPage";
       
    36 				$cssSkinselect 	= "-Page";
       
    37 				$engines		=  array(__("ce site"),__("sites IRI"),__("ENMI"),__("s&eacute;minaires"));//__("Avanc&eacute;e"));
       
    38 			}	
       
    39 	?>
       
    40 	 
    32     <script type="text/javascript">  
    41     <script type="text/javascript">  
    33         $(document).ready(function() {  
    42         $(document).ready(function() {  
    34             $('#accordion').accordion();  
    43             $('#accordion').accordion({ 
       
    44 				autoheight: true
       
    45 			});  
       
    46 			$('#accordion_nav').accordion({ 
       
    47 				autoheight: true,
       
    48 				event: 'mouseover'
       
    49 			});  
       
    50 			// ----------------------------------
       
    51 			$('#accordionSeminaire').accordion({
       
    52 				autoheight: false,
       
    53 				event: 'mouseover',			
       
    54 				fillSpace: true
       
    55 
       
    56 			});  
       
    57 			$('#accordionSeminaire2').accordion({
       
    58 				autoheight: false,
       
    59 				event: 'mouseover',
       
    60 				fillSpace: true
       
    61 
       
    62 			});
       
    63 			$('#accordionSeminaire3').accordion({
       
    64 				autoheight: false,
       
    65 				event: 'mouseover',
       
    66 				fillSpace: true
       
    67 
       
    68 			});
       
    69 			$('#accordionSeminaire4').accordion({
       
    70 				autoheight: false,
       
    71 				event: 'mouseover',
       
    72 				fillSpace: true
       
    73 
       
    74 			});		
       
    75 			// Tabs
       
    76 			$('#tabsSeminaire').tabs({
       
    77 				autoheight: false
       
    78 			});
       
    79 
    35 			//alert("test");
    80 			//alert("test");
    36 			
       
    37 			// search
    81 			// search
    38 			$("#s").mouseover(function() {
    82 			/*
       
    83 			$("#searchHome").mouseover(function() {
    39 				$(this).animate({ backgroundColor: "#FFFFFF" }, 500);
    84 				$(this).animate({ backgroundColor: "#FFFFFF" }, 500);
    40 			}).mouseout(function(){
    85 			}).mouseout(function(){
    41 				$(this).animate({ backgroundColor: "#CCCCCC" }, 500);
    86 				$(this).animate({ backgroundColor: "#CCCCCC" }, 500);
    42 			});
    87 			});
       
    88 			*/
    43 			
    89 			
    44 			
    90 			
    45 			// liens
    91 			// liens
    46 			
       
    47 			$(".JQplink").mouseover(function() {
    92 			$(".JQplink").mouseover(function() {
    48 				$(this).fadeTo("slow", 0.5);
    93 				$(this).fadeTo("slow", 0.5);
    49 			}).mouseout(function(){
    94 			}).mouseout(function(){
    50 				$(this).fadeTo("slow", 1);
    95 				$(this).fadeTo("slow", 1);
    51 			});
    96 			});
    52 			
    97 			
    53 
    98 			$('.my-skinnable-select').each(
       
    99 			  function(i) {
       
   100 				selectContainer = $(this);
       
   101 				// Remove the class for non JS browsers
       
   102 				selectContainer.removeClass('my-skinnable-select');
       
   103 				// Add the class for JS Browers
       
   104 				selectContainer.addClass('skinned-select<?php echo($cssSkinselect) ?>');
       
   105 				// Find the select box
       
   106 				selectContainer.children().before('<div class="select-text<?php echo($cssSkinselect) ?>">a</div>').each(
       
   107 				  function() {
       
   108 					$(this).prev().text(this.options[0].innerHTML)
       
   109 				  }
       
   110 				);
       
   111 				// Store the parent object
       
   112 				var parentTextObj = selectContainer.children().prev();
       
   113 				// As we click on the options
       
   114 				selectContainer.children().click(function() {
       
   115 				  // Set the value of the html
       
   116 				  parentTextObj.text(this.options[this.selectedIndex].innerHTML);
       
   117 				})        
       
   118 			  }
       
   119 			);
       
   120 	
    54         });  
   121         });  
    55 		
       
    56 
       
    57 
       
    58     </script>  
   122     </script>  
       
   123 	<!--[if IE 7]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/lib/ie.css?v=20090127-11" type="text/css" media="screen, projection" /><![endif]--> 
       
   124 	
       
   125 	<!-- FIN DE LA HEAD -->
    59 </head>
   126 </head>
    60 <body>
   127 <body>
       
   128 <!-- DEBUT DU HEADER -->
    61 <?php /*echo("debug = ".wp_title('')." lang = ".language_attributes() ); */?>
   129 <?php /*echo("debug = ".wp_title('')." lang = ".language_attributes() ); */?>
    62 <div class="container">
   130 <div class="container">
    63 
       
    64 <!-- Header -->
   131 <!-- Header -->
    65   <div class="column span-24" id="header">
   132   <div class="column span-24" id="header">
    66        <a href="<?php echo get_option('home'); ?>" title="<?php bloginfo('name'); ?>"  class="logo"><img alt="<?php bloginfo('name'); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/logo-iri-petit.png" /></a> 
   133        <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> 
    67   </div>
   134   </div>
    68 
   135 
    69 <!-- Navigation -->
   136 <!-- Navigation -->
    70 <div class="column span-24 large" id="nav">
   137 <div class="column span-24 large" id="nav">
    71 <div class="content">
   138 <div class="content">
    72 	<ul id="navmenu-h">
   139 	<ul id="navmenu-h">
    73 		<li><a href="<?php echo get_settings('home'); ?>">Acceuil</a></li>
   140 		<li><a href="<?php echo get_settings('home'); ?>/">Accueil</a></li>
    74 		<?php dp_list_categories('&exclude=1,8,16&'); ?>
   141 		<?php dp_list_categories('&exclude=1,8,16,17,38&'); ?>
    75 		
       
    76 
   142 
    77 		<li class="alignright"><a href="<?php bloginfo('rss2_url'); ?>" style="padding: 2px 5px 0 5px;"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/rss.png" style="padding:4px;" alt="rss icon" /></a></li>
   143 		<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>
    78 		
       
    79 		
       
    80 		<li class="alignright">
       
    81 			<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
       
    82 				<div  id="searchB" >
       
    83 				
   144 				
       
   145 		<li class="alignright" >
       
   146 				<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
       
   147 				
       
   148 				<?php
       
   149 				if ( isset($_GET['s']) ) {
       
   150 					$search_text= utf8_decode(stripslashes($_GET['s']));
       
   151 				} else {
       
   152 					$search_text= "Rechercher";
       
   153 				}	
       
   154 				?>
       
   155 				
       
   156 				<div  id="<?php echo($cssSearch); ?>" >
    84 					<input type="text" name="s" id="s"
   157 					<input type="text" name="s" id="s"
    85 								 value="<?php echo wp_specialchars($search_text, 1); ?>"
   158 								 value="<?php echo wp_specialchars($search_text, 1); ?>"
    86 								 onfocus="clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')" 
   159 								 onfocus="clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')" 
    87 								 onblur="clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')"
   160 								 onblur="clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')"
    88 					/>
   161 					/>
    89 				
   162 				
       
   163 				
       
   164 				<div class="my-skinnable-select">
       
   165 					<select name="engine" id="engine">
       
   166 					<?php
       
   167 						foreach ($engines as $i => $value) {
       
   168 							echo("<option value='".$i."'>".$value."</option>");
       
   169 						}
       
   170 					?>
       
   171 					</select>
    90 				</div>
   172 				</div>
    91 			</form>
   173 				
       
   174 					<input id="bt" name="bt" type="submit" value="" title="Rechercher" tabindex="0" />
       
   175 				</div>
       
   176 				
       
   177 				</form>
    92 		</li>
   178 		</li>
    93 		
   179 		
    94 	</ul>
   180 	</ul>
    95 </div>
   181 </div>
    96 </div>
   182 </div>
       
   183 <!-- FIN DU HEADER -->