2017-09-24 11:29:19 +00:00
|
|
|
<?php
|
2019-05-10 05:44:47 +00:00
|
|
|
/**
|
|
|
|
* @var App\Entity\Station $station
|
|
|
|
* @var \Azura\Assets $assets
|
|
|
|
*/
|
2018-09-29 13:35:40 +00:00
|
|
|
|
|
|
|
$this->layout('main', [
|
|
|
|
'title' => __('Profile'),
|
|
|
|
'manual' => true,
|
|
|
|
'sidebar_tab' => 'profile',
|
|
|
|
]);
|
|
|
|
|
2017-09-24 11:29:19 +00:00
|
|
|
$assets
|
2018-09-29 13:35:40 +00:00
|
|
|
->load('vue')
|
2019-07-17 21:29:21 +00:00
|
|
|
->load('inline_player')
|
|
|
|
->addInlineJs($this->fetch('partials/radio_controls.js'), 95)
|
2018-09-29 13:35:40 +00:00
|
|
|
->load('clipboard')
|
2019-05-24 18:14:03 +00:00
|
|
|
->load('fancybox')
|
2018-10-08 05:41:06 +00:00
|
|
|
->addInlineJs($this->fetch('stations/profile/index.js', ['nowplaying' => $nowplaying]), 99);
|
2019-07-26 04:54:25 +00:00
|
|
|
|
2019-07-31 18:47:12 +00:00
|
|
|
if ($customization->useWebSocketsForNowPlaying()) {
|
2019-07-26 04:54:25 +00:00
|
|
|
$assets->load('nchan');
|
|
|
|
}
|
2017-09-24 11:29:19 +00:00
|
|
|
?>
|
2015-05-22 09:13:52 +00:00
|
|
|
|
2016-05-13 01:52:34 +00:00
|
|
|
<div class="row">
|
2019-05-10 05:44:47 +00:00
|
|
|
<div class="col-lg-7">
|
|
|
|
<?=$this->fetch('stations/profile/panel_header') ?>
|
2019-01-17 13:11:04 +00:00
|
|
|
|
2019-05-10 05:44:47 +00:00
|
|
|
<?=$this->fetch('stations/profile/panel_nowplaying') ?>
|
2018-09-29 13:35:40 +00:00
|
|
|
|
2019-05-10 05:44:47 +00:00
|
|
|
<?php if ($backend::supportsRequests() || $backend::supportsStreamers()): ?>
|
|
|
|
<div class="row">
|
|
|
|
<?php if ($backend::supportsRequests()): ?>
|
|
|
|
<div class="col">
|
|
|
|
<?=$this->fetch('stations/profile/panel_requests') ?>
|
2016-05-13 01:52:34 +00:00
|
|
|
</div>
|
2018-10-11 07:04:09 +00:00
|
|
|
<?php endif; ?>
|
2019-05-10 05:44:47 +00:00
|
|
|
<?php if ($backend::supportsStreamers()): ?>
|
|
|
|
<div class="col">
|
|
|
|
<?=$this->fetch('stations/profile/panel_streamers') ?>
|
2018-10-11 07:04:09 +00:00
|
|
|
</div>
|
2019-05-10 05:44:47 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
2018-09-29 13:35:40 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
|
2019-05-10 05:44:47 +00:00
|
|
|
<?=$this->fetch('stations/profile/panel_publicpages') ?>
|
|
|
|
</div>
|
2015-05-22 09:13:52 +00:00
|
|
|
|
2019-05-10 05:44:47 +00:00
|
|
|
<div class="col-lg-5">
|
|
|
|
<?=$this->fetch('stations/profile/panel_streams') ?>
|
2018-10-11 07:04:09 +00:00
|
|
|
|
2019-05-10 05:44:47 +00:00
|
|
|
<?php if (\App\Radio\Adapters::FRONTEND_REMOTE !== $frontend_type): ?>
|
|
|
|
<?=$this->fetch('stations/profile/panel_frontend') ?>
|
|
|
|
<?php endif; ?>
|
2018-09-29 13:35:40 +00:00
|
|
|
|
2019-05-10 05:44:47 +00:00
|
|
|
<?php if (\App\Radio\Adapters::BACKEND_NONE === $backend_type): ?>
|
|
|
|
<?=$this->fetch('stations/profile/panel_backend_none') ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<?=$this->fetch('stations/profile/panel_backend') ?>
|
|
|
|
<?php endif; ?>
|
2015-05-22 09:13:52 +00:00
|
|
|
</div>
|
2018-08-04 22:05:14 +00:00
|
|
|
</div>
|