Commit f9152b78 authored by imac's avatar imac

[Bugfix]Contact map

parent ef48f362
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -419,6 +419,7 @@ II/ Helper..............Helper classes ...@@ -419,6 +419,7 @@ II/ Helper..............Helper classes
background: #FF6A5F; background: #FF6A5F;
color: #fff; color: #fff;
} }
.access-form .white-btn,
.white-btn{ .white-btn{
background: #FFF; background: #FFF;
color: #FF6A5F; color: #FF6A5F;
...@@ -684,6 +685,7 @@ header{ ...@@ -684,6 +685,7 @@ header{
background : #ff6a5f; background : #ff6a5f;
display: block; display: block;
margin-bottom: 8px; margin-bottom: 8px;
margin-top: 15px;
} }
.pink-list { .pink-list {
color: #ff6a5f; color: #ff6a5f;
......
...@@ -302,6 +302,7 @@ $.fn.getMenuBg = function(){ ...@@ -302,6 +302,7 @@ $.fn.getMenuBg = function(){
$('#user_login').attr('placeholder', 'Identifiant'); $('#user_login').attr('placeholder', 'Identifiant');
$('#user_pass').attr('placeholder', 'Mot de passe'); $('#user_pass').attr('placeholder', 'Mot de passe');
$("#user_login").addClass("my-login-username"); $("#user_login").addClass("my-login-username");
$("#wp-submit").addClass("btn rounded white-btn");
});//END Function });//END Function
......
...@@ -28,11 +28,36 @@ ...@@ -28,11 +28,36 @@
<div class="close" id="close-popup"></div> <div class="close" id="close-popup"></div>
<h2 class="crete small-title" >Accès pro</h2> <h2 class="crete small-title" >Accès pro</h2>
<div class="access-form row"> <div class="access-form row">
<form action="" id="nl-form" method="post"> <!--<form action="" id="nl-form" method="post">
<input type="text" name="login" id="login" placeholder = "Identifiant" /> <input type="text" name="login" id="login" placeholder = "Identifiant" />
<input type="password" name="pwd" id="pwd" placeholder = "Mot de passe" /> <input type="password" name="pwd" id="pwd" placeholder = "Mot de passe" />
<button class="btn rounded white-btn" type="submit" class="nl-btn">Se connecter</button> <button class="btn rounded white-btn" type="submit" class="nl-btn">Se connecter</button>
</form> </form>-->
<?php
$popoup = array(
'echo' => true,
// Default 'redirect' value takes the user back to the request URI.
'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],
'form_id' => 'loginform',
'label_username' => __( '' ),
'label_password' => __( '' ),
'label_remember' => __( '' ),
'label_log_in' => __( 'Se connecter' ),
'id_username' => 'user_login',
'id_password' => 'user_pass',
'id_remember' => 'rememberme',
'id_submit' => 'wp-submit',
'remember' => false,
'value_username' => '',
// Set 'value_remember' to true to default the "Remember me" checkbox to checked.
'value_remember' => false,
);
$popup_form = wp_login_form($popoup) ;
$popup_form = str_replace('name="log"', 'name="log" placeholder="Username"', $form);
$popup_form = str_replace('name="pwd"', 'name="pwd" placeholder="Password"', $form);
echo $popup_form;
?>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -446,5 +446,15 @@ function nap_upload_image($img){ ...@@ -446,5 +446,15 @@ function nap_upload_image($img){
function nap_variable_meta($varID, $meta){ function nap_variable_meta($varID, $meta){
return get_post_meta( $varID, '_'.$meta, true ); return get_post_meta( $varID, '_'.$meta, true );
} }
add_action( 'wp_login_failed', 'my_front_end_login_fail' ); // hook failed login
function my_front_end_login_fail( $username ) {
$referrer = $_SERVER['HTTP_REFERER']; // where did the post submission come from?
// if there's a valid referrer, and it's not the default log-in screen
if ( !empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin') ) {
wp_redirect( $referrer . '?login=failed' ); // let's append some information (login=failed) to the URL for the theme to use
exit;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment