From 94961c1c5ecff4a5937e10bb44e0191be4154f93 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 17 Dec 2018 20:02:51 -0700 Subject: [PATCH] Add alert to viewfamily page when privacy is turned on (#18) --- langs/en/messages.json | 3 ++- pages/viewfamily.php | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/langs/en/messages.json b/langs/en/messages.json index b0dbce5..581a5f5 100644 --- a/langs/en/messages.json +++ b/langs/en/messages.json @@ -10,5 +10,6 @@ "Events updated.": "Events updated.", "You agree to use the information in this directory for homeschool use ONLY. All other purposes, such as soliciting, is strictly prohibited.": "You agree to use the information in this directory for homeschool use ONLY. All other purposes, such as soliciting, is strictly prohibited.", "Payment saved.": "Payment saved.", - "Only showing expired or expiring memberships.": "Only showing expired or expiring memberships." + "Only showing expired or expiring memberships.": "Only showing expired or expiring memberships.", + "This family wishes to remain private. Do not share this information, even with other HACHE members.": "This family wishes to remain private. Do not share this information, even with other HACHE members." } diff --git a/pages/viewfamily.php b/pages/viewfamily.php index 603cfda..d195eba 100644 --- a/pages/viewfamily.php +++ b/pages/viewfamily.php @@ -43,6 +43,16 @@ $family = (new Family())->load($famid); + getPrivate()) { + ?> +
+ get("This family wishes to remain private. Do not share this information, even with other HACHE members."); ?> +
+ +