Roberto Santini 1週間前
コミット
0b2895de44

+ 1
- 2
app/Notifications/AnnotazionePubblicaApertaDa.php ファイルの表示

4
 
4
 
5
 use App\Models\Annotazione;
5
 use App\Models\Annotazione;
6
 use App\Models\Segnalazione;
6
 use App\Models\Segnalazione;
7
-use App\Support\IsolaHtml;
8
 use Illuminate\Bus\Queueable;
7
 use Illuminate\Bus\Queueable;
9
 use Illuminate\Contracts\Queue\ShouldQueue;
8
 use Illuminate\Contracts\Queue\ShouldQueue;
10
 use Illuminate\Notifications\Messages\MailMessage;
9
 use Illuminate\Notifications\Messages\MailMessage;
52
             ->markdown('mail.annotazione-pubblica-aperta-da', [
51
             ->markdown('mail.annotazione-pubblica-aperta-da', [
53
                 'segnalazione' => $this->segnalazione,
52
                 'segnalazione' => $this->segnalazione,
54
                 'annotazione' => $this->annotazione,
53
                 'annotazione' => $this->annotazione,
55
-                'annotazioneHtml' => IsolaHtml::fragment((string) ($this->annotazione->text ?? '')),
54
+                'annotazioneHtml' => (string) ($this->annotazione->text ?? ''),
56
                 'aziendaLabel' => $aziendaLabel,
55
                 'aziendaLabel' => $aziendaLabel,
57
                 'statoLabel' => $statoLabel,
56
                 'statoLabel' => $statoLabel,
58
                 'prioritaLabel' => $prioritaLabel,
57
                 'prioritaLabel' => $prioritaLabel,

+ 1
- 1
app/Support/IsolaHtml.php ファイルの表示

37
         libxml_use_internal_errors($previous);
37
         libxml_use_internal_errors($previous);
38
 
38
 
39
         if (! $loaded) {
39
         if (! $loaded) {
40
-            return nl2br(e(strip_tags($html)));
40
+            return $html;
41
         }
41
         }
42
 
42
 
43
         foreach (self::REMOVE_TAGS as $tag) {
43
         foreach (self::REMOVE_TAGS as $tag) {

+ 19
- 7
resources/views/mail/annotazione-pubblica-aperta-da.blade.php ファイルの表示

1
-@component('mail::message')
1
+<x-mail::layout>
2
+{{-- Header --}}
3
+<x-slot:header>
4
+<x-mail::header :url="config('app.url')">
5
+{{ config('app.name') }}
6
+</x-mail::header>
7
+</x-slot:header>
2
 
8
 
3
-@component('mail::panel')
9
+<x-mail::panel>
4
 **Azienda:** {{ $aziendaLabel }}
10
 **Azienda:** {{ $aziendaLabel }}
5
 
11
 
6
 **Stato:** {{ $statoLabel }}
12
 **Stato:** {{ $statoLabel }}
8
 **Priorità:** {{ $prioritaLabel }}
14
 **Priorità:** {{ $prioritaLabel }}
9
 
15
 
10
 **Autore:** {{ $autoreLabel }}
16
 **Autore:** {{ $autoreLabel }}
11
-@endcomponent
17
+</x-mail::panel>
12
 
18
 
13
 @if(filled(trim(strip_tags($annotazioneHtml))))
19
 @if(filled(trim(strip_tags($annotazioneHtml))))
14
-<div>{!! $annotazioneHtml !!}</div>
20
+<div class="annotazione-mail">{!! $annotazioneHtml !!}</div>
15
 @endif
21
 @endif
16
 
22
 
17
-@component('mail::button', ['url' => $segnalazione->urlCliente()])
23
+<x-mail::button :url="$segnalazione->urlCliente()">
18
 Apri segnalazione
24
 Apri segnalazione
19
-@endcomponent
25
+</x-mail::button>
20
 
26
 
21
-@endcomponent
27
+{{-- Footer --}}
28
+<x-slot:footer>
29
+<x-mail::footer>
30
+© {{ date('Y') }} ElephanTech · Tutti i diritti riservati.
31
+</x-mail::footer>
32
+</x-slot:footer>
33
+</x-mail::layout>

+ 1
- 1
resources/views/vendor/mail/html/layout.blade.php ファイルの表示

46
 <!-- Body content -->
46
 <!-- Body content -->
47
 <tr>
47
 <tr>
48
 <td class="content-cell">
48
 <td class="content-cell">
49
-{!! Illuminate\Mail\Markdown::parse($slot) !!}
49
+{!! $slot !!}
50
 
50
 
51
 {!! $subcopy ?? '' !!}
51
 {!! $subcopy ?? '' !!}
52
 </td>
52
 </td>

+ 1
- 1
resources/views/vendor/mail/html/message.blade.php ファイルの表示

7
 </x-slot:header>
7
 </x-slot:header>
8
 
8
 
9
 {{-- Body --}}
9
 {{-- Body --}}
10
-{!! $slot !!}
10
+{!! Illuminate\Mail\Markdown::parse($slot) !!}
11
 
11
 
12
 {{-- Subcopy --}}
12
 {{-- Subcopy --}}
13
 @isset($subcopy)
13
 @isset($subcopy)

読み込み中…
キャンセル
保存