-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a302ff
commit 917ee51
Showing
5 changed files
with
90 additions
and
90 deletions.
There are no files selected for viewing
34 changes: 17 additions & 17 deletions
34
src/Illuminate/Mail/resources/views/html/button.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<table class="action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation"> | ||
<tr> | ||
<td align="center"> | ||
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation"> | ||
<tr> | ||
<td align="center"> | ||
<table border="0" cellpadding="0" cellspacing="0" role="presentation"> | ||
<tr> | ||
<td> | ||
<a href="{{ $url }}" class="button button-{{ $color ?? 'primary' }}" target="_blank">{{ $slot }}</a> | ||
</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation"> | ||
<tr> | ||
<td align="center"> | ||
<table border="0" cellpadding="0" cellspacing="0" role="presentation"> | ||
<tr> | ||
<td> | ||
<a href="{{ $url }}" class="button button-{{ $color ?? 'primary' }}" target="_blank">{{ $slot }}</a> | ||
</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<tr> | ||
<td class="header"> | ||
<a href="{{ $url }}"> | ||
{{ $slot }} | ||
</a> | ||
</td> | ||
<td class="header"> | ||
<a href="{{ $url }}"> | ||
{{ $slot }} | ||
</a> | ||
</td> | ||
</tr> |
82 changes: 41 additions & 41 deletions
82
src/Illuminate/Mail/resources/views/html/layout.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
</head> | ||
<body> | ||
<style> | ||
@media only screen and (max-width: 600px) { | ||
.inner-body { | ||
width: 100% !important; | ||
} | ||
<style> | ||
@media only screen and (max-width: 600px) { | ||
.inner-body { | ||
width: 100% !important; | ||
} | ||
.footer { | ||
width: 100% !important; | ||
} | ||
} | ||
.footer { | ||
width: 100% !important; | ||
} | ||
} | ||
@media only screen and (max-width: 500px) { | ||
.button { | ||
width: 100% !important; | ||
} | ||
} | ||
</style> | ||
@media only screen and (max-width: 500px) { | ||
.button { | ||
width: 100% !important; | ||
} | ||
} | ||
</style> | ||
|
||
<table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation"> | ||
<tr> | ||
<td align="center"> | ||
<table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation"> | ||
{{ $header ?? '' }} | ||
<table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation"> | ||
<tr> | ||
<td align="center"> | ||
<table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation"> | ||
{{ $header ?? '' }} | ||
|
||
<!-- Email Body --> | ||
<tr> | ||
<td class="body" width="100%" cellpadding="0" cellspacing="0"> | ||
<table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation"> | ||
<!-- Body content --> | ||
<tr> | ||
<td class="content-cell"> | ||
{{ Illuminate\Mail\Markdown::parse($slot) }} | ||
<!-- Email Body --> | ||
<tr> | ||
<td class="body" width="100%" cellpadding="0" cellspacing="0"> | ||
<table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation"> | ||
<!-- Body content --> | ||
<tr> | ||
<td class="content-cell"> | ||
{{ Illuminate\Mail\Markdown::parse($slot) }} | ||
|
||
{{ $subcopy ?? '' }} | ||
</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
{{ $subcopy ?? '' }} | ||
</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
|
||
{{ $footer ?? '' }} | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
{{ $footer ?? '' }} | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |
44 changes: 22 additions & 22 deletions
44
src/Illuminate/Mail/resources/views/html/message.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
@component('mail::layout') | ||
{{-- Header --}} | ||
@slot('header') | ||
@component('mail::header', ['url' => config('app.url')]) | ||
{{ config('app.name') }} | ||
@endcomponent | ||
@endslot | ||
{{-- Header --}} | ||
@slot('header') | ||
@component('mail::header', ['url' => config('app.url')]) | ||
{{ config('app.name') }} | ||
@endcomponent | ||
@endslot | ||
|
||
{{-- Body --}} | ||
{{ $slot }} | ||
{{-- Body --}} | ||
{{ $slot }} | ||
|
||
{{-- Subcopy --}} | ||
@isset($subcopy) | ||
@slot('subcopy') | ||
@component('mail::subcopy') | ||
{{ $subcopy }} | ||
@endcomponent | ||
@endslot | ||
@endisset | ||
{{-- Subcopy --}} | ||
@isset($subcopy) | ||
@slot('subcopy') | ||
@component('mail::subcopy') | ||
{{ $subcopy }} | ||
@endcomponent | ||
@endslot | ||
@endisset | ||
|
||
{{-- Footer --}} | ||
@slot('footer') | ||
@component('mail::footer') | ||
© {{ date('Y') }} {{ config('app.name') }}. @lang('All rights reserved.') | ||
@endcomponent | ||
@endslot | ||
{{-- Footer --}} | ||
@slot('footer') | ||
@component('mail::footer') | ||
© {{ date('Y') }} {{ config('app.name') }}. @lang('All rights reserved.') | ||
@endcomponent | ||
@endslot | ||
@endcomponent |
10 changes: 5 additions & 5 deletions
10
src/Illuminate/Mail/resources/views/html/promotion.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<table class="promotion" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation"> | ||
<tr> | ||
<td align="center"> | ||
{{ Illuminate\Mail\Markdown::parse($slot) }} | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
{{ Illuminate\Mail\Markdown::parse($slot) }} | ||
</td> | ||
</tr> | ||
</table> |
917ee51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@taylorotwell Was there a reason for removing indentation?
917ee51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah why so?
917ee51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read the comments here f17e347