From: Laury GvR Date: Wed, 3 Aug 2016 12:34:19 +0000 (-0400) Subject: Members only login form more resilient X-Git-Tag: v1.1.2^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=f1f2ed3359d4a10ab39f9cf570df7e554ece8374;p=WP-Themes%2Fwesternup.git Members only login form more resilient The members only login form now checks whether email and/or phone values exist before displaying assistance text. --- diff --git a/parts/glm-members-only-login-form.php b/parts/glm-members-only-login-form.php index 424cf90..66256b1 100644 --- a/parts/glm-members-only-login-form.php +++ b/parts/glm-members-only-login-form.php @@ -3,16 +3,29 @@ The information you entered is incorrect. Please try again. + else if( isset( $_GET['login'] ) && $_GET['login'] == 'empty' ) { ?> Please enter both username and password. - - Please log in with your username and password. -
If you need assistance, email () or call () + + Please log in with your username and password. + + If you need assistance, "; + if ($supportEmail) { + echo "email (".$supportEmail.")"; + if ($supportPhone) { + echo " or "; + } + } + if ($supportPhone) { + echo "call (".$supportPhone.")"; + } + } + ?>

@@ -20,6 +33,6 @@ + ?> \ No newline at end of file