Fixes #6051 -- Apply per-station branding to embed pages too.
This commit is contained in:
parent
f0666ab175
commit
88e455f57a
|
@ -28,7 +28,15 @@ final class HistoryAction
|
||||||
throw new StationNotFoundException();
|
throw new StationNotFoundException();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $request->getView()->renderVuePage(
|
$view = $request->getView();
|
||||||
|
|
||||||
|
// Add station public code.
|
||||||
|
$view->fetch(
|
||||||
|
'frontend/public/partials/station-custom',
|
||||||
|
['station' => $station]
|
||||||
|
);
|
||||||
|
|
||||||
|
return $view->renderVuePage(
|
||||||
response: $response->withHeader('X-Frame-Options', '*'),
|
response: $response->withHeader('X-Frame-Options', '*'),
|
||||||
component: 'Vue_PublicHistory',
|
component: 'Vue_PublicHistory',
|
||||||
id: 'song-history',
|
id: 'song-history',
|
||||||
|
|
|
@ -58,7 +58,15 @@ final class OnDemandAction
|
||||||
$pageClass .= ' embed';
|
$pageClass .= ' embed';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $request->getView()->renderVuePage(
|
$view = $request->getView();
|
||||||
|
|
||||||
|
// Add station public code.
|
||||||
|
$view->fetch(
|
||||||
|
'frontend/public/partials/station-custom',
|
||||||
|
['station' => $station]
|
||||||
|
);
|
||||||
|
|
||||||
|
return $view->renderVuePage(
|
||||||
response: $response->withHeader('X-Frame-Options', '*'),
|
response: $response->withHeader('X-Frame-Options', '*'),
|
||||||
component: 'Vue_PublicOnDemand',
|
component: 'Vue_PublicOnDemand',
|
||||||
id: 'station-on-demand',
|
id: 'station-on-demand',
|
||||||
|
|
|
@ -46,7 +46,15 @@ final class PlayerAction
|
||||||
$pageClasses[] = 'page-station-public-player-embed station-' . $station->getShortName();
|
$pageClasses[] = 'page-station-public-player-embed station-' . $station->getShortName();
|
||||||
$pageClasses[] = ('social' === $embed) ? 'embed-social' : 'embed';
|
$pageClasses[] = ('social' === $embed) ? 'embed-social' : 'embed';
|
||||||
|
|
||||||
return $request->getView()->renderVuePage(
|
$view = $request->getView();
|
||||||
|
|
||||||
|
// Add station public code.
|
||||||
|
$view->fetch(
|
||||||
|
'frontend/public/partials/station-custom',
|
||||||
|
['station' => $station]
|
||||||
|
);
|
||||||
|
|
||||||
|
return $view->renderVuePage(
|
||||||
response: $response,
|
response: $response,
|
||||||
component: 'Vue_PublicPlayer',
|
component: 'Vue_PublicPlayer',
|
||||||
id: 'station-nowplaying',
|
id: 'station-nowplaying',
|
||||||
|
|
|
@ -30,7 +30,15 @@ final class ScheduleAction
|
||||||
$pageClass .= ' embed';
|
$pageClass .= ' embed';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $request->getView()->renderVuePage(
|
$view = $request->getView();
|
||||||
|
|
||||||
|
// Add station public code.
|
||||||
|
$view->fetch(
|
||||||
|
'frontend/public/partials/station-custom',
|
||||||
|
['station' => $station]
|
||||||
|
);
|
||||||
|
|
||||||
|
return $view->renderVuePage(
|
||||||
response: $response
|
response: $response
|
||||||
->withHeader('X-Frame-Options', '*'),
|
->withHeader('X-Frame-Options', '*'),
|
||||||
component: 'Vue_PublicSchedule',
|
component: 'Vue_PublicSchedule',
|
||||||
|
|
Loading…
Reference in New Issue