<?php 
$current_user = wp_get_current_user();
if ( 0 == $current_user->ID ) {
?>
<div class="login-head-full">
<div class="login-head">

<div id="login-wp">
        <ul>
                <li id="login">
                        <a id="login-trigger" href="#">
                                Se connecter <span>&#x25BC;</span>
                        </a>                        
<div id="login-content">
<form action="<?php echo get_option('home'); ?>/wp-login.php" method="post">
<fieldset id="login-input">
<p style=" text-align:left; margin-bottom:3px;">Mon identifiant</p>
<input class="wdlogin-input" type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="20"/>
<p style=" text-align:left; margin-bottom:3px;">Mon Mot de passe</p>
<input class="wdlogin-input" type="password" name="pwd" id="pwd" size="20"/>
</fieldset>
    
       
       <fieldset id="actions">
        <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
   		<input class="sub-login" type="submit" name="submit" value="Connexion" id="submit" /><div class="login-clear"></div>
    	<label style=" width:150px; text-align:center;"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" />Se souvenir de moi</label>
        </fieldset>
</form>
<p style="text-align:center; margin-bottom:5px;"><strong>Mot de passe perdu ?</strong><a href="<?php echo site_url(); ?>/login-connect/">Cliquez ici</a></p>

              </li>
                <li id="signup">
                        <a href="<?php echo site_url(); ?>/inscriptions">Cr&eacute;er un compte</a>
                </li>
        </ul>
</div>

</div>
</div>
<?php } else { ?>
<div class="login-head-full">
<div class="login-head-conect">
<div class="login-head-loged">
<ul>
<li id="logout-1"><a href="<?php echo wp_logout_url( home_url() ); ?>" title="D&eacute;connexion">Se d&eacute;connecter</a></li>
</ul>
<ul>
<li id="logout-1"><a href="<?php echo site_url(); ?>/profil" title="Editer Mon profile">Editer profil</a></li>
</ul>
<ul>
<li id="logout-1"><a href="<?php echo site_url(); ?>/view-annonces" title="Mes annonces">Mes annonces</a></li>
</ul>
</div>
<div class="header_soc_search clearfix">
						<div class="header_search">
							<form role="search" method="get"  class="search" action="<?php echo home_url( '/' ); ?>">
								<button class="button_search"></button>
								<input name="s" id="s" type="text" value="Rechercher ..." onClick="this.value = '';">
							</form>
						</div>	
</div>
</div>
</div>
<?php } ?>
