use secure_url()
This commit is contained in:
parent
1d8fb6b407
commit
0d777d214c
1 changed files with 6 additions and 6 deletions
|
@ -11,11 +11,11 @@
|
||||||
$path = "/" . $trip_slug . "/" .$hasEmbed . "/" . $filepath[1];
|
$path = "/" . $trip_slug . "/" .$hasEmbed . "/" . $filepath[1];
|
||||||
|
|
||||||
$embed = '<video class="popup__video" controls>';
|
$embed = '<video class="popup__video" controls>';
|
||||||
$embed .= '<source src="' . url( $path ) . '" type="video/webm">';
|
$embed .= '<source src="' . secure_url( $path ) . '" type="video/webm">';
|
||||||
$embed .= '<p>Your client doesn\'t support HTML video. Here is a <a href="' . url( $path ) . '">link to the video</a> instead.</p>';
|
$embed .= '<p>Your client doesn\'t support HTML video. Here is a <a href="' . secure_url( $path ) . '">link to the video</a> instead.</p>';
|
||||||
$embed .= '</video>';
|
$embed .= '</video>';
|
||||||
if (isset($email)) {
|
if (isset($email)) {
|
||||||
$embed .= '<p><i>If your email client doesn\'t support video embeds, here is a <a href="' . url( $path ) . '">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="' . secure_url( $path ) . '">link to the file</a> instead.</i></p>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$embed = '<p>[The video \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]</p>';
|
$embed = '<p>[The video \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]</p>';
|
||||||
|
@ -28,11 +28,11 @@
|
||||||
$path = "/" . $trip_slug . "/" .$hasEmbed . "/" . $filepath[1];
|
$path = "/" . $trip_slug . "/" .$hasEmbed . "/" . $filepath[1];
|
||||||
|
|
||||||
$embed = '<audio class="popup__audio" controls>';
|
$embed = '<audio class="popup__audio" controls>';
|
||||||
$embed .= '<source src="' . url( $path ) . '" type="audio/ogg">';
|
$embed .= '<source src="' . secure_url( $path ) . '" type="audio/ogg">';
|
||||||
$embed .= '<p>Download <a href="' . url( $path ) . '">OGG</a> audio.</p>';
|
$embed .= '<p>Download <a href="' . secure_url( $path ) . '">OGG</a> audio.</p>';
|
||||||
$embed .= '</audio>';
|
$embed .= '</audio>';
|
||||||
if (isset($email)) {
|
if (isset($email)) {
|
||||||
$embed .= '<p><i>If your email client doesn\' support audio embeds, here is a <a href="' . url( $path ) . '">link to the file</a> instead.</i></p>';
|
$embed .= '<p><i>If your email client doesn\' support audio embeds, here is a <a href="' . secure_url( $path ) . '">link to the file</a> instead.</i></p>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$embed = '<p>[The recording \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]</p>';
|
$embed = '<p>[The recording \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]</p>';
|
||||||
|
|
Loading…
Reference in a new issue