<?php
/**
 * @var \App\Entity\Station $station
 * @var \App\Customization $customization
 */

$this->layout(
    'minimal',
    [
        'page_class' => 'station-' . $station->getShortName(),
        'title' => $this->e($station->getName()),
    ]
);

/** @var \App\Assets $assets */
$assets
    ->load('fancybox')
    ->load('Vue_PublicFullPlayer')
    ->addInlineJs(
        $this->fetch(
            'frontend/public/index.js',
            [
                'station' => $station,
                'nowplaying' => $nowplaying,
                'customFields' => $customFields,
            ]
        )
    );

$this->push('head');
?>
<meta property="twitter:card" content="player"/>
<meta property="twitter:player" content="<?=(string)$router->named(
    'public:index',
    ['station_id' => $station->getShortName(), 'embed' => 'embed'],
    [],
    true
)?>"/>
<meta property="twitter:player:width" content="400">
<meta property="twitter:player:height" content="250">
<meta property="twitter:title" content="<?=$this->e($station->getName())?>">
<meta property="twitter:site" content="<?=$this->e($station->getUrl())?>">
<meta property="twitter:image" content="<?=$defaultAlbumArt?>">
<?php
$this->end();
?>

<div id="public-radio-player">
    Loading...
</div>

<?php
/**
 * @var \App\Entity\Station $station
 * @var \App\Customization $customization
 */

$this->layout(
    'minimal',
    [
        'page_class' => 'station-' . $station->getShortName(),
        'title' => $this->e($station->getName()),
    ]
);

/** @var \App\Assets $assets */
$assets
    ->load('fancybox')
    ->load('Vue_PublicFullPlayer')
    ->addInlineJs(
        $this->fetch(
            'frontend/public/index.js',
            [
                'station' => $station,
                'nowplaying' => $nowplaying,
                'customFields' => $customFields,
            ]
        )
    );

$this->push('head');
?>
<meta property="twitter:card" content="player"/>
<meta property="twitter:player" content="<?=(string)$router->named(
    'public:index',
    ['station_id' => $station->getShortName(), 'embed' => 'embed'],
    [],
    true
)?>"/>
<meta property="twitter:player:width" content="400">
<meta property="twitter:player:height" content="125">
<meta property="twitter:title" content="<?=$this->e($station->getName())?>">
<meta property="twitter:site" content="<?=$this->e($station->getUrl())?>">
<meta property="twitter:image" content="<?=$defaultAlbumArt?>">
<?php
$this->end();
?>

<div id="public-radio-player">
    Loading...
</div>

Update dimensions of Twitter player card.
Update dimensions of Twitter player card.

