-
Notifications
You must be signed in to change notification settings - Fork 1
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
Jason Morris
committed
Aug 31, 2024
1 parent
a8158b9
commit 121873c
Showing
6 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Single watch page template. | ||
*/ | ||
|
||
use CodeIgniter\I18n\Time; | ||
|
||
if ($build['video_height'] !== 0) { | ||
$ratio = round($build['video_height'] / $build['video_width'], 4); | ||
} | ||
|
||
echo $this->include('includes/header'); ?> | ||
|
||
<main id="content" tabindex="-1"> | ||
<div class="wrap"> | ||
<div class="full"> | ||
<h1>Watch</h1> | ||
<p>Every week, this page features a different video. This week it’s <?= htmlspecialchars_decode($build['video_title'] ?? ''); ?> from <a href="<?= $build['video_source_url']; ?>" rel="noopener noreferrer"><?= $build['video_source_username']; ?></a>. </p> | ||
<h2>Why?</h2> | ||
<p><?= $build['notes']; ?></p> | ||
</div> | ||
</div> | ||
|
||
<div class="curtain"> | ||
<div class="randb"> | ||
<div class="video<?php | ||
if ($build['video_type'] === 'vimeo') { | ||
echo ' video--vimeo'; | ||
} | ||
if ($build['video_type'] === 'youtube') { | ||
echo ' video--youtube'; | ||
} | ||
?>" style="--aspect-ratio: <?= $ratio; ?>;"> | ||
<?php if ($build['video_type'] === 'vimeo') :?> | ||
<iframe src="https://player.vimeo.com/video/<?= $build['video_id']; ?>?dnt=true&portrait=0&byline=0&title=0&autoplay=0&color=ffffff" title="<?= $build['video_title']; ?> (embedded video)" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> | ||
<?php endif; ?> | ||
<?php if ($build['video_type'] === 'youtube') :?> | ||
<iframe src="https://www.youtube.com/embed/<?= $build['video_id']; ?>?rel=0&showinfo=0" title="<?= $build['video_title']; ?> (embedded video)" allowfullscreen></iframe> | ||
<?php endif; ?> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
|
||
<?= $this->include('includes/footer'); |