WIP embed.js support and robots.txt
This commit is contained in:
parent
5368c08039
commit
d0d36c26f3
15 changed files with 108 additions and 44 deletions
22
app/Models/VideoTemplate.php
Normal file
22
app/Models/VideoTemplate.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
namespace App\Models;
|
||||
|
||||
/**
|
||||
* Base for templates with a feed
|
||||
*/
|
||||
class VideoTemplate extends BaseTemplate {
|
||||
public object $item;
|
||||
public object $detail;
|
||||
public string $layout = 'hero';
|
||||
|
||||
function __construct(object $item, object $detail, bool $isEmbed = false) {
|
||||
parent::__construct('Video');
|
||||
$this->item = $item;
|
||||
$this->detail = $detail;
|
||||
if ($isEmbed) {
|
||||
$this->layout = 'embed';
|
||||
} else {
|
||||
$this->layout = 'hero';
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue