2018-08-31 07:41:48 +02:00
|
|
|
<?php
|
2021-04-13 06:12:50 +02:00
|
|
|
/**
|
|
|
|
* @var \App\Entity\Station $station
|
|
|
|
* @var \App\Customization $customization
|
|
|
|
*/
|
2017-08-17 20:28:48 +02:00
|
|
|
|
2021-02-09 07:10:38 +01:00
|
|
|
$this->layout(
|
|
|
|
'minimal',
|
|
|
|
[
|
2021-12-26 23:59:52 +01:00
|
|
|
'page_class' => 'page-station-public-player station-' . $station->getShortName(),
|
2022-06-20 18:33:20 +02:00
|
|
|
'title' => $this->e($station->getName()),
|
2021-02-09 07:10:38 +01:00
|
|
|
]
|
|
|
|
);
|
2016-11-08 08:46:17 +01:00
|
|
|
|
2020-02-06 03:35:13 +01:00
|
|
|
/** @var \App\Assets $assets */
|
2022-06-20 18:33:20 +02:00
|
|
|
$assets->addVueRender('Vue_PublicFullPlayer', '#public-radio-player', $props);
|
2021-04-13 06:12:50 +02:00
|
|
|
|
2021-06-07 00:31:14 +02:00
|
|
|
// Register PWA service worker
|
|
|
|
$swJsRoute = (string)$router->named('public:sw');
|
|
|
|
|
|
|
|
$assets->addInlineJs(
|
|
|
|
<<<JS
|
|
|
|
if ('serviceWorker' in navigator) {
|
|
|
|
window.addEventListener('load', function() {
|
|
|
|
navigator.serviceWorker.register('${swJsRoute}');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
JS
|
|
|
|
);
|
|
|
|
|
2021-04-13 06:12:50 +02:00
|
|
|
$this->push('head');
|
|
|
|
?>
|
2021-12-14 17:44:37 +01:00
|
|
|
<link rel="manifest" href="<?= $router->fromHere('public:manifest') ?>">
|
2021-04-30 11:35:05 +02:00
|
|
|
|
2021-06-07 04:08:42 +02:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
2021-12-14 17:44:37 +01:00
|
|
|
<meta name="apple-mobile-web-app-title" content="<?= $this->e($station->getName() ?? '') ?>">
|
2021-06-07 04:08:42 +02:00
|
|
|
|
2021-12-14 17:44:37 +01:00
|
|
|
<meta property="og:title" content="<?= $this->e($station->getName() ?? '') ?>">
|
|
|
|
<meta property="og:url" content="<?= $this->e($station->getUrl() ?? '') ?>">
|
|
|
|
<meta property="og:image" content="<?= $defaultAlbumArt ?>">
|
2021-04-30 11:35:05 +02:00
|
|
|
|
2021-04-16 05:50:09 +02:00
|
|
|
<meta property="twitter:card" content="player">
|
2021-12-14 17:44:37 +01:00
|
|
|
<meta property="twitter:player" content="<?= $router->named(
|
2021-04-13 06:12:50 +02:00
|
|
|
'public:index',
|
2021-04-13 08:51:26 +02:00
|
|
|
['station_id' => $station->getShortName(), 'embed' => 'social'],
|
2021-04-13 06:12:50 +02:00
|
|
|
[],
|
|
|
|
true
|
2021-12-14 17:44:37 +01:00
|
|
|
) ?>">
|
2021-04-13 06:39:57 +02:00
|
|
|
<meta property="twitter:player:width" content="400">
|
2021-04-13 08:32:10 +02:00
|
|
|
<meta property="twitter:player:height" content="125">
|
2021-04-13 06:12:50 +02:00
|
|
|
<?php
|
|
|
|
$this->end();
|
2017-09-24 13:29:19 +02:00
|
|
|
?>
|
2016-11-08 17:32:15 +01:00
|
|
|
|
2020-10-15 12:01:32 +02:00
|
|
|
<div id="public-radio-player">
|
|
|
|
Loading...
|
2016-11-08 08:46:17 +01:00
|
|
|
</div>
|