From e14b18cdd97a47aad9dd48e2faa995eec92cba71 Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Mon, 30 Mar 2020 19:29:33 +0200 Subject: [PATCH] WIP #3445 @3 --- wp-content/mu-plugins/cube/src/Init.php | 1 + .../cube/src/Shortcodes/CCVForm.php | 43 +++++++++++++++++++ .../views/forms/consultation.blade.php | 42 ++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 wp-content/mu-plugins/cube/src/Shortcodes/CCVForm.php create mode 100644 wp-content/themes/CCV/resources/views/forms/consultation.blade.php diff --git a/wp-content/mu-plugins/cube/src/Init.php b/wp-content/mu-plugins/cube/src/Init.php index 3762fdf..e2550dd 100644 --- a/wp-content/mu-plugins/cube/src/Init.php +++ b/wp-content/mu-plugins/cube/src/Init.php @@ -17,6 +17,7 @@ final class Init { // Marked as final because this class should never be extende Elementor\Setup::class, CPT\Person::class, CPT\ScientificNews::class, + Shortcodes\CCVForm::class, ]; } diff --git a/wp-content/mu-plugins/cube/src/Shortcodes/CCVForm.php b/wp-content/mu-plugins/cube/src/Shortcodes/CCVForm.php new file mode 100644 index 0000000..a1d0857 --- /dev/null +++ b/wp-content/mu-plugins/cube/src/Shortcodes/CCVForm.php @@ -0,0 +1,43 @@ + '', // Name of the form template + ], $attributes)); + + // List of all possible forms + $templates = [ + 'consultation', + ]; + + if (in_array($name, $templates)) { + return view("forms/$name"); + } + + return false; + } + +} diff --git a/wp-content/themes/CCV/resources/views/forms/consultation.blade.php b/wp-content/themes/CCV/resources/views/forms/consultation.blade.php new file mode 100644 index 0000000..dc0fdbb --- /dev/null +++ b/wp-content/themes/CCV/resources/views/forms/consultation.blade.php @@ -0,0 +1,42 @@ +{{-- CONSULTATION FORM --}} + +{{-- SYMPTOMS --}} +
+

{{ __('1. Vos symptômes') }}

+ + +
+ +{{-- TREATMENTS --}} +
+

{{ __('2. Vos traitements réalisés') }}

+
+ +{{-- IMAGERY --}} +
+

{{ __('3. Votre imagerie') }}

+
+ +{{-- CONTACT DETAILS --}} +
+

{{ __('4. Vos informations') }}

+
-- 2.39.5