From 2afa8ab5497f569f26166698596b53b3e8888c88 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 12 Nov 2018 14:15:57 -0500 Subject: [PATCH] releasing changes to the login menu for failed login redirection --- functions.php | 6 +++--- inc/glm-dev.php | 20 +++++++++++++++++++- js/custom.js | 3 +++ style.css | 3 +++ 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index 7558b43..562f7a7 100644 --- a/functions.php +++ b/functions.php @@ -187,11 +187,11 @@ function accesspress_parallax_scripts() { wp_enqueue_script( 'jquery-fitvid', get_template_directory_uri() . '/js/jquery.fitvids.js', array('jquery'), '1.0', true ); wp_enqueue_script( 'nivo-lightbox', get_template_directory_uri() . '/js/nivo-lightbox.min.js', array('jquery'), '1.2.0', true ); wp_enqueue_script( 'slick', get_template_directory_uri() . '/js/slick.js', array('jquery'), '1.8.0', true ); - wp_enqueue_script( 'accesspress-parallax-custom', get_template_directory_uri() . '/js/custom.js', array('jquery'), '1.0', true ); + wp_enqueue_script( 'accesspress-parallax-custom', get_template_directory_uri() . '/js/custom.js', array('jquery'), '1.0.2', true ); wp_localize_script( 'accesspress-parallax-custom', 'ap_params', $slider_parameters ); - wp_enqueue_script( 'glm-dev', get_template_directory_uri() . '/assets/js/glm-dev.js', array(), '1.0.1', true ); - wp_enqueue_style( 'glm-style', get_template_directory_uri() . '/assets/css/glm-dev.css', false, "1.0.1" ); + wp_enqueue_script( 'glm-dev', get_template_directory_uri() . '/assets/js/glm-dev.js', array(), '1.0.2', true ); + wp_enqueue_style( 'glm-style', get_template_directory_uri() . '/assets/css/glm-dev.css', false, "1.0.2" ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); diff --git a/inc/glm-dev.php b/inc/glm-dev.php index e15cfc5..d38398f 100644 --- a/inc/glm-dev.php +++ b/inc/glm-dev.php @@ -9,6 +9,16 @@ if( isset( $_GET['login'] ) && $_GET['login'] == 'failed' ) { ?> function glm_login_form( $atts ){ ob_start(); ?> +
+

+ + The information you entered is incorrect. Please try again. + + Please enter both username and password. + +

+
-1) { + $(".menu-login").trigger("click"); + } }); \ No newline at end of file diff --git a/style.css b/style.css index c278ade..d5698d3 100644 --- a/style.css +++ b/style.css @@ -2754,3 +2754,6 @@ body .cmvl-navbar-navigation span{ width: 35%; } } +#glm-member-login-notification{ + color: red; +} \ No newline at end of file -- 2.17.1