From: soufiane Date: Thu, 21 Nov 2024 13:08:30 +0000 (+0100) Subject: wait #7203 @1:30 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c7d2e023a371ddb0090f495753b8f27a0b3535b9;p=spinepro.git wait #7203 @1:30 --- diff --git a/wp-content/mu-plugins/cube/src/Forms/Base.php b/wp-content/mu-plugins/cube/src/Forms/Base.php index 68e56919..f094b112 100644 --- a/wp-content/mu-plugins/cube/src/Forms/Base.php +++ b/wp-content/mu-plugins/cube/src/Forms/Base.php @@ -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 '; + $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 diff --git a/wp-content/themes/CCV/dist/styles/app.css b/wp-content/themes/CCV/dist/styles/app.css index 7f853ed6..235dcadb 100644 --- a/wp-content/themes/CCV/dist/styles/app.css +++ b/wp-content/themes/CCV/dist/styles/app.css @@ -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; diff --git a/wp-content/themes/CCV/functions.php b/wp-content/themes/CCV/functions.php index c3c8f2fb..35465028 100644 --- a/wp-content/themes/CCV/functions.php +++ b/wp-content/themes/CCV/functions.php @@ -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' ); diff --git a/wp-content/themes/CCV/resources/assets/styles/common/global.styl b/wp-content/themes/CCV/resources/assets/styles/common/global.styl index f9628032..cfdb0b4a 100644 --- a/wp-content/themes/CCV/resources/assets/styles/common/global.styl +++ b/wp-content/themes/CCV/resources/assets/styles/common/global.styl @@ -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