From 6ed4b0dc178a0c5cbb4b214ae96f275c5be83c0d Mon Sep 17 00:00:00 2001 From: Gilbertsoft <25326036+gilbertsoft@users.noreply.github.com> Date: Sat, 1 Feb 2020 16:29:51 +0100 Subject: [PATCH 1/6] [BUGFIX] Don't touch existing camel cases --- src/Utility/StringUtility.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Utility/StringUtility.php b/src/Utility/StringUtility.php index 0f211c2..fab819b 100644 --- a/src/Utility/StringUtility.php +++ b/src/Utility/StringUtility.php @@ -62,6 +62,7 @@ public static function stringToUpperCamelCase($string) { $string = self::clean($string); $string = preg_replace('/[^a-z0-9]+/i', ' ', $string); + $string = preg_replace('/[A-Z]+/', ' $0', $string); $string = trim($string); $string = strtolower($string); $string = ucwords($string); From 6a6c84a3e3e34cf938e846e672051b90b92fb31a Mon Sep 17 00:00:00 2001 From: Gilbertsoft <25326036+gilbertsoft@users.noreply.github.com> Date: Sat, 1 Feb 2020 19:28:48 +0100 Subject: [PATCH 2/6] [TASK] Render privacy statement from partial --- templates/default/edit.html.twig | 10 +--------- templates/default/new.html.twig | 9 +-------- templates/default/partials/privacy-footer.html.twig | 8 ++++++++ 3 files changed, 10 insertions(+), 17 deletions(-) create mode 100644 templates/default/partials/privacy-footer.html.twig diff --git a/templates/default/edit.html.twig b/templates/default/edit.html.twig index f383f4f..261abc2 100644 --- a/templates/default/edit.html.twig +++ b/templates/default/edit.html.twig @@ -17,14 +17,6 @@ -
- We respect your Privacy.
- We are not storing, sharing or doing any other crazy stuff with the data you provide to generate your very own sitepackage. Simple as that.
-
-
- We respect your Privacy.
- We are not storing, sharing or doing any other crazy stuff with the data you provide to generate your very own sitepackage. Simple as that.
-
+ We respect your Privacy.
+ We are not storing, sharing or doing any other crazy stuff with the data you provide to generate your very own sitepackage. Simple as that.
+