Pony.fm/app/views/tracks/embed.blade.php

68 lines
2.8 KiB
PHP
Raw Normal View History

2013-08-31 05:16:16 +02:00
<!DOCTYPE html>
<html lang="en-CA">
<head>
<meta charset="UTF-8">
2013-09-01 04:20:48 +02:00
<title>{{$track->title}} by {{$track->user->display_name}} on Pony.fm</title>
2013-08-31 05:16:16 +02:00
<meta itemprop="name" content="Pony.fm">
<meta property="og:title" content="Pony.fm - The Pony Music Hosting Site" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://pony.fm/" />
<meta property="og:image" content="https://pony.fm/favicon.ico" />
<meta property="og:site_name" content="Pony.fm" />
<meta property="fb:admins" content="1165335382" />
2013-09-01 21:02:18 +02:00
<base href="/" />
2013-08-31 05:16:16 +02:00
2013-09-01 04:20:48 +02:00
{{ Assets::styleIncludes('embed') }}
2013-08-31 05:16:16 +02:00
</head>
2013-09-01 04:20:48 +02:00
<body>
@if($track->explicit && !(Auth::check() && Auth::user()->can_see_explicit_content))
<div class="explicit alert alert-danger">
<em>Enable explicit content in {{ HTML::link(URL::to('/account/settings'), 'your account', ['target' => '_blank']) }} to play this track.</em>
2013-08-31 05:16:16 +02:00
<div class="stats">
<span>Hosted by <a href="{{URL::to('/')}}" target="_blank">Pony.fm</a></span>
</div>
</div>
2013-09-01 04:20:48 +02:00
@else
<div class="player loading {{Auth::check() ? 'can-favourite' : ''}} {{$user['is_favourited'] ? 'favourited' : ''}}" data-track-id="{{ $track->id }}" data-duration="{{ $track->duration * 1000 }}">
2013-08-31 05:16:16 +02:00
<div class="play" disabled="disabled">
2013-09-01 04:20:48 +02:00
<div class="button"><i class="icon-play"></i></div>
{{ HTML::image($track->getCoverUrl(\Entities\Image::SMALL)) }}
2013-08-31 05:16:16 +02:00
</div>
<div class="meta">
@if (Auth::check())
2013-09-01 04:20:48 +02:00
<a href="#" class="favourite"><i title="Favourite this track!" class="favourite-icon icon-star-empty"></i></a>
2013-08-31 05:16:16 +02:00
@endif
<div class="progressbar">
2013-09-01 04:20:48 +02:00
<div class="loader"></div>
<div class="seeker"></div>
2013-08-31 05:16:16 +02:00
</div>
<span class="title">{{ HTML::link( $track->url, $track->title, ['target' => '_blank'] ) }}</span>
2013-09-01 04:20:48 +02:00
<span>by: <strong>{{ HTML::link($track->user->url, $track->user->display_name, ['target' => '_blank']) }}</strong> / {{$track->genre->name}} / {{Helpers::timestamp($track->published_at)}}</span>
2013-08-31 05:16:16 +02:00
</div>
<div class="stats">
2013-09-01 04:20:48 +02:00
Views: <strong>{{ $track->view_count }}</strong> / Plays: <strong>{{ $track->play_count }}</strong> / Downloads: <strong>{{ $track->download_count }}</strong> /
2013-08-31 05:16:16 +02:00
<span>Hosted by <a href="{{URL::to('/')}}" target="_blank">Pony.fm</a></span>
</div>
</div>
2013-09-01 04:20:48 +02:00
@endif
2013-08-31 05:16:16 +02:00
<script>
var pfm = {token: '{{ Session::token() }}'}
</script>
2013-09-01 04:20:48 +02:00
{{ Assets::scriptIncludes('embed') }}
2013-08-31 05:16:16 +02:00
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-29463256-1']);
_gaq.push(['_setDomainName', 'pony.fm']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>