Members only login form uses settings email/phone
authorLaury GvR <laury@gaslightmedia.com>
Wed, 3 Aug 2016 12:19:19 +0000 (08:19 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 3 Aug 2016 12:19:19 +0000 (08:19 -0400)
Updated the members only login form to use settings for the email
and phone as set in the admin side.

header.php
parts/glm-members-only-login-form.php
style.css

index 843feca..14ed095 100644 (file)
@@ -4,7 +4,7 @@
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title><?php wp_title(); ?></title>
-    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.28">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.1.1">
     <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700' rel='stylesheet' type='text/css'>
     <link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,700' rel='stylesheet' type='text/css'>
     <?php wp_head(); ?>
index f8cf1fe..424cf90 100644 (file)
@@ -1,5 +1,4 @@
                         <div class="wp_login_error">
-                            <?php $glmAssociateTerms = apply_filters('glm_associate_terms');?>
                             <p id="glm-member-login-notification">
                                 <?php if( isset( $_GET['login'] ) && $_GET['login'] == 'failed' ) { ?>
                                     The information you entered is incorrect. Please try again.
@@ -7,8 +6,13 @@
                                 else if( isset( $_GET['login'] ) && $_GET['login'] == 'empty' ) { ?>
                                     Please enter both username and password.
                                 <?php } else { ?>    
-                                Please log in with your <?php echo $glmAssociateTerms['term_member']; ?> username and password.
-                                <br>If you need assistance, email (xxxxx@yyyy.zzz) or call (###-###-####)
+                                <?php $glmAssociateConfig = apply_filters('glm_associate_config'); 
+                                    $supportEmail = $glmAssociateConfig['settings']['members_only_support_email'];
+                                    $supportPhone = $glmAssociateConfig['settings']['members_only_support_phone'];
+                                    $glmTerm = $glmAssociateConfig['terms']['term_member'];
+                                ?>
+                                Please log in with your <?php echo $glmTerm; ?> username and password.
+                                <br>If you need assistance, email (<?php echo $supportEmail;?>) or call (<?php echo $supportPhone;?>)
                                 <?php } ?>
                             </p>
                         </div> 
index cc83411..8dde4df 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: WesternUPCVB
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for WesternUPCVB
-Version: 1.1.0
+Version: 1.1.1
 */