mirror of
https://github.com/voc/streaming-website
synced 2024-11-15 00:47:14 +00:00
26 lines
454 B
PHP
26 lines
454 B
PHP
<?php
|
|
|
|
class Subtitles extends ModelBase
|
|
{
|
|
public function isEnabled() {
|
|
return $this->has('SUBTITLES');
|
|
}
|
|
|
|
public function getEnabledRooms($slug) {
|
|
$rooms = [];
|
|
foreach(Room::rooms() as $room)
|
|
{
|
|
if($room->hasSubtitles())
|
|
$rooms[] = $room;
|
|
}
|
|
|
|
return $rooms;
|
|
}
|
|
|
|
public function getPrimusURL() {
|
|
return $this->get('SUBTITLES.PRIMUS_URL');
|
|
}
|
|
public function getFrontendURL() {
|
|
return $this->get('SUBTITLES.FRONTEND_URL');
|
|
}
|
|
}
|