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