]> _ Git - spinepro.git/commitdiff
wait #7203 @1:30
authorsoufiane <soufiane@cubedesigners.com>
Thu, 21 Nov 2024 13:08:30 +0000 (14:08 +0100)
committersoufiane <soufiane@cubedesigners.com>
Thu, 21 Nov 2024 13:08:30 +0000 (14:08 +0100)
wp-content/mu-plugins/cube/src/Forms/Base.php
wp-content/themes/CCV/dist/styles/app.css
wp-content/themes/CCV/functions.php
wp-content/themes/CCV/resources/assets/styles/common/global.styl

index 68e569198761c3233fd4fce77af2ac086318956f..f094b112e412f09d1e0b2b9667a3708d3c13caa3 100644 (file)
@@ -104,10 +104,10 @@ class Base
 
         foreach ($flatpickr_languages as $flatpickr_language) {
             wp_register_script("flatpickr-locale-{$flatpickr_language}",
-                               asset("scripts/flatpickr/locale/{$flatpickr_language}.js"),
-                               ['flatpickr'], // Dependencies
-                               null, // Version
-                               true // In footer?
+                asset("scripts/flatpickr/locale/{$flatpickr_language}.js"),
+                ['flatpickr'], // Dependencies
+                null, // Version
+                true // In footer?
             );
         }
 
@@ -234,29 +234,27 @@ class Base
         //$this->pre_process();
 
         $headers = [];
-        $data = [];
+        //$data = [];
 
         $to           = $this->destination;
-        $from         = 'Spine pro <no-reply@spinepro.fr>';
+        $from         = '';
         $subject      = $this->form_title;
-        $content_type = 'text/html';
+        $content_type = 'text/plain';
         $charset      = get_bloginfo('charset');
-        $headers[]    = sprintf('Return-Path: %s', $return_path);
         $headers[]    = sprintf('Content-Type: %s; charset=%s', $content_type, $charset);
-        $headers[]    = sprintf('From: %s', $from);
 
-        // Gather filled fields into label/value pairs
+        $message = '';
         foreach ($this->fields as $field_name => $field) {
             if(!in_array($field_name,['years','months'])) {
                 if ($value = $this->get_data($field_name)) {
-                    $data[$field->get_title()] = $value;
+                    $label = str_replace(':','',$field->get_title());
+                    $message .= $label.': '. $value;
+                    $message .= "\r\n";
                 }
             }
         }
 
-        $data['How long have you been suffering ?'] = 'Years: '.$this->get_data('years').' - Months: '.$this->get_data('months');
-
-        $message = view('forms.common.email', compact('data', 'subject'));
+        $message .= 'How long have you been suffering ?: '.'Years: '.$this->get_data('years').' - Months: '.$this->get_data('months');
 
         // Hook directly into WPMailer temporarily so we can add attachments and set their proper filenames
         add_action('phpmailer_init', [$this, 'attach_files']);
@@ -413,4 +411,4 @@ class Base
         return $value;
     }
 
-}
+}
\ No newline at end of file
index 7f853ed6faf5d445b21dbe634100773fed10ffc1..235dcadbab73b42c788ee7f338b935fc41fbf99b 100644 (file)
@@ -1174,6 +1174,10 @@ body:not(.home) .wrapper {
   overflow-x: hidden;
 }
 
+#tw-target-text {
+  font-family: Roboto Condensed, sans-serif;
+}
+
 .elementor-widget-wrap {
   height: 100%;
   align-content: center;
index c3c8f2fb68c9a6736111b4296d55c500ad465edd..35465028c55f7212bd1601df206893a3413d9cac 100644 (file)
@@ -59,12 +59,11 @@ array_map(function ($file) use ($sage_error) {
     }
 }, ['helpers', 'setup', 'filters', 'admin']);
 
-function force_host( $phpmailer ) {
+/*function force_host( $phpmailer ) {
     $host = parse_url( get_site_url(), PHP_URL_HOST );
     $phpmailer->Sender = 'spinepro@'.$host;
 }
-add_action( 'phpmailer_init', 'force_host' );
-
+add_action( 'phpmailer_init', 'force_host' );*/
 
 function delete_post_type(){
     unregister_post_type( 'scientific_news' );
index f96280325e802ecf81c2260b044dcd68ba79f6f0..cfdb0b4a4cd0e39ae0ad6d1f187de8bf7dfc1e83 100644 (file)
@@ -31,3 +31,6 @@ body:not(.home) .wrapper
 
 .swiper-container
   overflow-x: hidden
+
+#tw-target-text
+  @apply font-body
\ No newline at end of file