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();
|
||||
}
|
||||
|
||||
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', '*'),
|
||||
component: 'Vue_PublicHistory',
|
||||
id: 'song-history',
|
||||
|
|
|
@ -58,7 +58,15 @@ final class OnDemandAction
|
|||
$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', '*'),
|
||||
component: 'Vue_PublicOnDemand',
|
||||
id: 'station-on-demand',
|
||||
|
|
|
@ -46,7 +46,15 @@ final class PlayerAction
|
|||
$pageClasses[] = 'page-station-public-player-embed station-' . $station->getShortName();
|
||||
$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,
|
||||
component: 'Vue_PublicPlayer',
|
||||
id: 'station-nowplaying',
|
||||
|
|
|
@ -30,7 +30,15 @@ final class ScheduleAction
|
|||
$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', '*'),
|
||||
component: 'Vue_PublicSchedule',
|
||||
|
|
Loading…
Reference in New Issue