2015-10-25 06:17:45 +01:00
|
|
|
{{--
|
|
|
|
Pony.fm - A community for pony fan music.
|
2018-04-21 06:25:36 +02:00
|
|
|
Copyright (C) 2015 Feld0
|
2015-10-25 06:17:45 +01:00
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
--}}
|
|
|
|
|
2015-08-31 17:26:09 +02:00
|
|
|
@extends('shared._app_layout')
|
|
|
|
|
2016-10-30 20:02:14 +01:00
|
|
|
@section('title'){{ $track->title }} - {{ $track->user->display_name }} | @endsection
|
2021-02-14 19:01:29 +01:00
|
|
|
@section('description'){{ Str::limit($track->description, $limit = 200, $end = '...') }}@endsection
|
2016-10-30 20:02:14 +01:00
|
|
|
|
|
|
|
@section('metadata')
|
|
|
|
<meta property="og:title" content="{{ $track->title }}" />
|
|
|
|
<meta property="og:type" content="music.song" />
|
2016-10-30 20:15:51 +01:00
|
|
|
<meta property="og:url" content="{{ url('tracks/' . $track->id . '-' . $track->slug) }}" />
|
2021-02-14 03:34:58 +01:00
|
|
|
<meta property="og:image" content="{{ $track->getCoverUrl(\App\Models\Image::NORMAL) }}" />
|
2016-10-30 20:02:14 +01:00
|
|
|
<meta property="og:image:width" content="350" />
|
|
|
|
<meta property="og:image:height" content="350" />
|
2021-02-14 19:01:29 +01:00
|
|
|
<meta property="og:description" content="{{ Str::limit($track->description, $limit = 200, $end = '...') }}">
|
2016-10-30 20:02:14 +01:00
|
|
|
<meta property="og:site_name" content="Pony.fm" />
|
|
|
|
<meta property="og:audio" content="{{ $track->getStreamUrl('MP3') }}" />
|
2016-10-30 20:44:15 +01:00
|
|
|
<meta property="og:audio:secure_url" content="{{ $track->getStreamUrl('MP3') }}" />
|
2016-10-30 20:02:14 +01:00
|
|
|
<meta property="og:audio:type" content="audio/mpeg" />
|
|
|
|
<meta property="music:duration" content="{{ round($track->duration) }}" />
|
|
|
|
<meta property="fb:admins" content="1165335382" />
|
|
|
|
|
|
|
|
<meta name="twitter:card" content="player" />
|
|
|
|
<meta name="twitter:site" content="@ponyfm" />
|
|
|
|
<meta name="twitter:title" content="{{ $track->title }}" />
|
2021-02-14 19:01:29 +01:00
|
|
|
<meta name="twitter:description" content="{{ Str::limit($track->description, $limit = 200, $end = '...') }}" />
|
2021-02-14 03:34:58 +01:00
|
|
|
<meta name="twitter:image" content="{{ $track->getCoverUrl(\App\Models\Image::NORMAL) }}" />
|
2016-10-30 20:15:51 +01:00
|
|
|
<meta name="twitter:player" content="{{ url('t' . $track->id . '/embed?twitter') }}" />
|
2016-10-30 20:02:14 +01:00
|
|
|
<meta name="twitter:player:width" content="480" />
|
|
|
|
<meta name="twitter:player:height" content="130" />
|
|
|
|
<meta name="twitter:player:stream" content="{{ $track->getStreamUrl('MP3') }}" />
|
|
|
|
<meta name="twitter:player:stream:content_type" content="audio/mpeg" />
|
2016-11-30 22:42:45 +01:00
|
|
|
|
|
|
|
<link rel="alternate" type="application/json+oembed" href="{{ url('/oembed?url=') . url('tracks/' . $track->id . '-' . $track->slug) }}" title="{{ $track->title }}" />
|
2016-10-30 20:02:14 +01:00
|
|
|
@endsection
|
|
|
|
|
2015-08-31 17:26:09 +02:00
|
|
|
@section('app_content')
|
2016-10-30 20:02:14 +01:00
|
|
|
<div class="resource-details track-details">
|
|
|
|
<header>
|
|
|
|
<div class="hidden-xs single-player">
|
2021-02-14 03:34:58 +01:00
|
|
|
<img src="{{ $track->getCoverUrl(\App\Models\Image::THUMBNAIL) }}" style="opacity: 1;">
|
2016-10-30 20:02:14 +01:00
|
|
|
</div>
|
2016-10-30 20:15:51 +01:00
|
|
|
<h1>{{ $track->title }}</h1>
|
2016-10-30 20:02:14 +01:00
|
|
|
<h2>
|
2016-10-30 20:15:51 +01:00
|
|
|
by: <a href="{{ url($track->user->slug) }}">{{ $track->user->display_name }}</a>
|
2016-10-30 20:02:14 +01:00
|
|
|
</h2>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="stretch-to-bottom details-columns">
|
|
|
|
<div class="right">
|
2021-02-14 03:34:58 +01:00
|
|
|
<img class="cover" src="{{ $track->getCoverUrl(\App\Models\Image::NORMAL) }}"/>
|
2016-10-30 20:02:14 +01:00
|
|
|
|
|
|
|
<ul class="stats">
|
|
|
|
<li>Published: <strong>{!! Helpers::timestamp($track->published_at) !!}</strong></li>
|
|
|
|
<li>Views: <strong>{{ $track->view_count }}</strong></li>
|
|
|
|
<li>Plays: <strong>{{ $track->play_count }}</strong></li>
|
|
|
|
<li>Downloads: <strong>{{ $track->download_count }}</strong></li>
|
|
|
|
<li>Favourites: <strong>{{ $track->favourite_count }}</strong></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="left">
|
|
|
|
<div class="description">
|
|
|
|
<h2>Description</h2>
|
|
|
|
<p>{{ $track->description }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-25 03:35:37 +01:00
|
|
|
@endsection
|