Add table-based legacy design
This commit is contained in:
parent
429314efba
commit
57bb0e03a3
35 changed files with 886 additions and 526 deletions
|
|
@ -8,11 +8,18 @@
|
|||
|
||||
class LastFMCurrent extends Component {
|
||||
public $track;
|
||||
public $artUrl;
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*/
|
||||
public function __construct($track) {
|
||||
$this->track = $track;
|
||||
if (isLegacy()) {
|
||||
$path = parse_url($track["image"], PHP_URL_PATH);
|
||||
$this->artUrl = "//".request()->getHttpHost()."/proxy/lastfm/".basename($path);
|
||||
} else {
|
||||
$this->artUrl = $track["image"];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue