From: Laury GvR
Date: Tue, 7 Jun 2016 17:02:10 +0000 (-0400)
Subject: Members only phrasing & styling edits, more parts
X-Git-Tag: v1.0.0^2~12
X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=0baba9b616a3b2d0d1d6a69662586764a72ecf52;p=WP-Themes%2FDiscoverKZOO.git
Members only phrasing & styling edits, more parts
Members only template changed to use member db terms through our
new filters. Several buttons for the members only section restyled
to suit theme. Share button removed. Sunrise now default for any
user who has access to the member admin but who is not an
administrator. Split theme into more parts as per our standards to
avoid needless code duplication.
---
diff --git a/css/app.css b/css/app.css
index 9ebc8af..4c7579a 100644
--- a/css/app.css
+++ b/css/app.css
@@ -7909,7 +7909,22 @@ ul.social {
padding: 20px 0; }
body #glm-member-login-form {
- width: 250px; }
+ width: 250px;
+ margin-bottom: 40px; }
+body #glm-member-login-form .button-primary, body #glm-member-password-lost-form .lostpassword-button {
+ background-color: #57b649;
+ border: 0 none;
+ border-radius: 5px;
+ color: white;
+ font-size: 14px;
+ padding: 10px 15px;
+ min-width: 90px;
+ cursor: pointer; }
+body #glm-member-password-lost-form {
+ width: 400px; }
+body #glm-member-password-lost-link {
+ color: #d2222a;
+ margin-top: 40px; }
body #glm-member-password-lost-form {
display: none; }
body .glm-member-db-list-view #glm-member-list-map-toggle {
diff --git a/functions.php b/functions.php
index 4ad743f..d84f2aa 100644
--- a/functions.php
+++ b/functions.php
@@ -188,6 +188,17 @@ function remove_admin_bar() {
}
}
+/*
+ * If the current user is not an admin and is a member,
+ * return 'sunrise' as the default admin color
+ */
+add_filter('get_user_option_admin_color', function($result) {
+ if (!current_user_can('administrator') && current_user_can("glm_members_member")) {
+ return 'sunrise';
+ }
+ return $result;
+});
+
/*
* This function returns true when the current page is the page given by ID
* or a descendent thereof.
diff --git a/parts/bread-crumbs.php b/parts/bread-crumbs.php
index 65c72d2..b0ebbd0 100644
--- a/parts/bread-crumbs.php
+++ b/parts/bread-crumbs.php
@@ -1,8 +1,10 @@
-+ Share'; ?>
+
+ + Share'; ?>
+
";
bcn_display();
echo "";
}
-?>
+?>
\ No newline at end of file
diff --git a/parts/glm-members-only-login-form.php b/parts/glm-members-only-login-form.php
index 1f079aa..d21a4a7 100644
--- a/parts/glm-members-only-login-form.php
+++ b/parts/glm-members-only-login-form.php
@@ -6,7 +6,8 @@
else if( isset( $_GET['login'] ) && $_GET['login'] == 'empty' ) { ?>
Please enter both username and password.
- Please log in to gain access to this page
+
+ Please log in with your username and password. If you need assistance, email (xxxxx@yyyy.zzz) or call (###-###-####)
diff --git a/parts/glm-members-only-top-bar.php b/parts/glm-members-only-top-bar.php
index 64faa4b..f9ad26c 100644
--- a/parts/glm-members-only-top-bar.php
+++ b/parts/glm-members-only-top-bar.php
@@ -2,6 +2,7 @@
Hello, user_login ?>.
Logout
- Enter Member Admin Area
+
+ Enter Admin Area
\ No newline at end of file
diff --git a/scss/plugins/_glm-member-db.scss b/scss/plugins/_glm-member-db.scss
index 1e850eb..958db74 100644
--- a/scss/plugins/_glm-member-db.scss
+++ b/scss/plugins/_glm-member-db.scss
@@ -11,6 +11,25 @@ body {
// 1.0 General
#glm-member-login-form {
width: 250px;
+ margin-bottom: 40px;
+}
+#glm-member-login-form .button-primary,
+#glm-member-password-lost-form .lostpassword-button {
+ background-color: $green;
+ border: 0 none;
+ border-radius: 5px;
+ color: white;
+ font-size: 14px;
+ padding: 10px 15px;
+ min-width: 90px;
+ cursor: pointer;
+}
+#glm-member-password-lost-form {
+ width: 400px;
+}
+#glm-member-password-lost-link {
+ color: $red;
+ margin-top: 40px;
}
#glm-member-password-lost-form {
display: none;