Fix conditional email fallback text
This commit is contained in:
parent
b8de023f27
commit
e5a5ddffcd
2 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@
|
||||||
<h2>Checkins</h2>
|
<h2>Checkins</h2>
|
||||||
@if($checkinsList)
|
@if($checkinsList)
|
||||||
<ol>
|
<ol>
|
||||||
@include('partials.checkins-list', array('email'=>true))
|
@include('partials.checkins-list', ['email' => true])
|
||||||
</ol>
|
</ol>
|
||||||
@else
|
@else
|
||||||
<p>No new checkins</p>
|
<p>No new checkins</p>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
$embed .= '<source src="' . url("/videos/" . $filepath[1]) . '" type="video/webm">';
|
$embed .= '<source src="' . url("/videos/" . $filepath[1]) . '" type="video/webm">';
|
||||||
$embed .= '<p>Your client doesn\'t support HTML video. Here is a <a href="' . url("/videos/" . $filepath[1]) . '">link to the video</a> instead.</p>';
|
$embed .= '<p>Your client doesn\'t support HTML video. Here is a <a href="' . url("/videos/" . $filepath[1]) . '">link to the video</a> instead.</p>';
|
||||||
$embed .= '</video>';
|
$embed .= '</video>';
|
||||||
if ($email) {
|
if (isset($email)) {
|
||||||
$embed .= '<p><i>If your email client doesn\'t support video embeds, here is a <a href="' . url("/videos/" . $filepath[1]) . '">link to the file</a> instead.</i></p>';
|
$embed .= '<p><i>If your email client doesn\'t support video embeds, here is a <a href="' . url("/videos/" . $filepath[1]) . '">link to the file</a> instead.</i></p>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
$embed .= '<source src="' . url("/audio/" . $filepath[1]) . '" type="audio/ogg">';
|
$embed .= '<source src="' . url("/audio/" . $filepath[1]) . '" type="audio/ogg">';
|
||||||
$embed .= '<p>Download <a href="' . url("/audio/" . $filepath[1]) . '">OGG</a> audio.</p>';
|
$embed .= '<p>Download <a href="' . url("/audio/" . $filepath[1]) . '">OGG</a> audio.</p>';
|
||||||
$embed .= '</audio>';
|
$embed .= '</audio>';
|
||||||
if ($email) {
|
if (isset($email)) {
|
||||||
$embed .= '<p><i>If your email client doesn\' support audio embeds, here is a <a href="' . url("/audio/" . $filepath[1]) . '">link to the file</a> instead.</i></p>';
|
$embed .= '<p><i>If your email client doesn\' support audio embeds, here is a <a href="' . url("/audio/" . $filepath[1]) . '">link to the file</a> instead.</i></p>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue