2015-10-25 06:17:45 +01:00
|
|
|
{{--
|
|
|
|
Pony.fm - A community for pony fan music.
|
|
|
|
Copyright (C) 2015 Peter Deltchev
|
|
|
|
|
|
|
|
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._layout')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
2015-10-25 03:35:37 +01:00
|
|
|
<div id="fb-root"></div>
|
2016-01-05 23:07:31 +01:00
|
|
|
|
2015-10-25 03:35:37 +01:00
|
|
|
<script>
|
|
|
|
window.fbAsyncInit = function() {
|
|
|
|
FB.init({
|
|
|
|
appId : '186765381447538',
|
|
|
|
status: true,
|
|
|
|
cookie: true,
|
|
|
|
xfbml: true
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
(function(d, s, id){
|
|
|
|
var js, fjs = d.getElementsByTagName(s)[0];
|
|
|
|
if (d.getElementById(id)) {return;}
|
|
|
|
js = d.createElement(s); js.id = id;
|
|
|
|
js.src = "//connect.facebook.net/en_US/all.js";
|
|
|
|
fjs.parentNode.insertBefore(js, fjs);
|
|
|
|
}(document, 'script', 'facebook-jssdk'));
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<header>
|
|
|
|
<a href="/">
|
2015-10-25 07:20:56 +01:00
|
|
|
<img src="/images/ponyfm-logo-white.svg" class="logo">
|
2015-08-31 17:26:09 +02:00
|
|
|
</a>
|
2015-10-25 03:35:37 +01:00
|
|
|
<div class="now-playing">
|
|
|
|
@if (Auth::check())
|
|
|
|
<div class="user-details dropdown">
|
|
|
|
<a class="avatar dropdown-toggle" href="#">
|
2016-01-01 01:12:30 +01:00
|
|
|
<img src="{{Auth::user()->getAvatarUrl(\Poniverse\Ponyfm\Models\Image::THUMBNAIL)}}" />
|
2015-10-25 03:35:37 +01:00
|
|
|
<span><i class="icon-chevron-down"></i></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="{{Auth::user()->url}}">Your Profile</a></li>
|
2016-01-07 19:30:43 +01:00
|
|
|
<li ng-class="{active: stateIncludes('favourites')}"><a href="/account/favourites/tracks">Favourites</a></li>
|
|
|
|
<li ng-class="{active: stateIncludes('account')}"><a href="/account/tracks">Account</a></li>
|
2015-10-25 03:35:37 +01:00
|
|
|
<li><a href="#" pfm-eat-click ng-click="logout()">Logout</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<pfm-player></pfm-player>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="site-body">
|
|
|
|
<ul class="sidebar" ng-controller="sidebar">
|
2016-01-21 04:18:18 +01:00
|
|
|
<li><pfm-search></pfm-search></li>
|
2016-01-07 19:30:43 +01:00
|
|
|
<li ng-class="{selected: stateIncludes('content.tracks') || stateIncludes('content.track')}"><a href="/tracks">Tracks</a></li>
|
|
|
|
<li ng-class="{selected: stateIncludes('content.albums') || stateIncludes('content.album')}"><a href="/albums">Albums</a></li>
|
|
|
|
<li ng-class="{selected: stateIncludes('content.playlists') || stateIncludes('content.playlist')}"><a href="/playlists">Playlists</a></li>
|
|
|
|
<li ng-class="{selected: stateIncludes('content.artists') || stateIncludes('content.artist')}"><a href="/artists">Artists</a></li>
|
2015-10-25 03:35:37 +01:00
|
|
|
|
|
|
|
|
2015-12-06 09:22:00 +01:00
|
|
|
<li ng-class="{selected: stateIncludes('pages')}"><a href="/about">About / FAQ</a></li>
|
2015-11-16 01:25:37 +01:00
|
|
|
<li><a href="https://mlpforums.com/forum/62-ponyfm/" title="Pony.fm Forum" target="_blank">Forum</a></li>
|
2015-10-25 03:35:37 +01:00
|
|
|
|
|
|
|
@if (Auth::check())
|
|
|
|
<li class="uploader" ng-class="{selected: stateIncludes('uploader')}">
|
|
|
|
<a href="/account/uploader">Upload Music</a>
|
|
|
|
</li>
|
2015-11-24 06:19:23 +01:00
|
|
|
|
|
|
|
@can('access-admin-area')
|
|
|
|
<li ng-class="{selected: stateIncludes('admin')}">
|
|
|
|
<a href="/admin/genres">Admin Area</a>
|
|
|
|
</li>
|
|
|
|
@endcan
|
|
|
|
|
2015-10-25 03:35:37 +01:00
|
|
|
<li>
|
|
|
|
<h3>
|
|
|
|
<a href="#" ng-click="createPlaylist()" pfm-eat-click title="Create Playlist"><i class="icon-plus"></i></a>
|
2016-01-05 21:47:27 +01:00
|
|
|
My Playlists
|
2015-10-25 03:35:37 +01:00
|
|
|
</h3>
|
|
|
|
</li>
|
|
|
|
<li class="none" ng-show="!playlists.length"><span>no pinned playlists</span></li>
|
2016-02-14 12:12:13 +01:00
|
|
|
<li class="dropdown" ng-repeat="playlist in playlists track by playlist.id" ng-cloak ng-class="{selected: stateIncludes('content.playlist') && $state.params.id == playlist.id}">
|
2015-10-25 03:35:37 +01:00
|
|
|
<a href="{{Helpers::angular('playlist.url')}}" ng-bind="playlist.title"></a>
|
|
|
|
</li>
|
|
|
|
@else
|
|
|
|
<li><a href="/login" target="_self">Login</a></li>
|
|
|
|
<li><a href="/register" target="_self">Register</a></li>
|
|
|
|
@endif
|
2015-10-25 02:50:45 +01:00
|
|
|
<li class="x-attribution">
|
2015-11-16 01:25:37 +01:00
|
|
|
<a href="#" ng-click="showCredits()" pfm-eat-click title="Pony.fm project credits">
|
2015-10-25 02:50:45 +01:00
|
|
|
@if(config('ponyfm.use_powered_by_footer'))
|
|
|
|
<span>Powered by</span>
|
2015-10-25 07:20:56 +01:00
|
|
|
<img src="/images/ponyfm-logo-white.svg" alt="Pony.fm logo" title="Pony.fm"/>
|
2015-10-25 06:17:45 +01:00
|
|
|
<span>We're open-source!</span>
|
2015-10-25 02:50:45 +01:00
|
|
|
@else
|
2015-10-25 06:17:45 +01:00
|
|
|
<span>A community by</span>
|
|
|
|
<img src="/images/poniverse.svg" alt="Poniverse logo" title="Poniverse"/>
|
2016-02-16 10:56:23 +01:00
|
|
|
<span>We're open-source!</span>
|
2015-10-25 02:50:45 +01:00
|
|
|
@endif
|
2015-09-23 19:06:54 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2015-10-25 03:35:37 +01:00
|
|
|
</ul>
|
|
|
|
<ui-view class="site-content">
|
|
|
|
@yield('app_content')
|
|
|
|
</ui-view>
|
|
|
|
</div>
|
2015-08-31 17:26:09 +02:00
|
|
|
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('styles')
|
2015-10-25 03:35:37 +01:00
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Josefin+Sans" />
|
|
|
|
<link rel="stylesheet" href="/styles/loader.css" />
|
|
|
|
{!! Assets::styleIncludes() !!}
|
2015-08-31 17:26:09 +02:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('scripts')
|
2015-10-25 03:35:37 +01:00
|
|
|
<script>
|
|
|
|
window.pfm = {
|
|
|
|
auth: {
|
|
|
|
@if (Auth::check())
|
|
|
|
isLogged: true,
|
|
|
|
user: {!! Auth::user()->toJson() !!}
|
|
|
|
@else
|
|
|
|
isLogged: false
|
|
|
|
@endif
|
|
|
|
},
|
2015-10-24 04:44:20 +02:00
|
|
|
environment: "{{ App::environment() }}"
|
2015-10-25 03:35:37 +01:00
|
|
|
};
|
|
|
|
</script>
|
2015-08-31 17:26:09 +02:00
|
|
|
|
2015-10-24 04:44:20 +02:00
|
|
|
@if(config('ponyfm.google_analytics_id'))
|
|
|
|
<script>
|
|
|
|
{{-- Google Analytics --}}
|
|
|
|
var _gaq = _gaq || [];
|
|
|
|
_gaq.push(['_setAccount', '{{ config('ponyfm.google_analytics_id') }}']);
|
|
|
|
_gaq.push(['_setDomainName', 'pony.fm']);
|
|
|
|
|
|
|
|
(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>
|
|
|
|
@endif
|
2015-08-31 17:26:09 +02:00
|
|
|
|
2016-02-14 17:14:30 +01:00
|
|
|
{{-- {!! Assets::scriptIncludes() !!}--}}
|
2015-08-31 17:26:09 +02:00
|
|
|
|
2016-02-14 17:14:30 +01:00
|
|
|
@if (Config::get("app.debug"))
|
|
|
|
<script src="http://localhost:8080/build/scripts/app.js"></script>
|
|
|
|
<script src="http://localhost:8080/webpack-dev-server.js"></script>
|
|
|
|
@else
|
|
|
|
<script src="/build/scripts/app.js"></script>
|
2015-08-31 17:26:09 +02:00
|
|
|
<script src="/build/scripts/templates.js"></script>
|
|
|
|
@endif
|
|
|
|
|
2015-10-25 03:35:37 +01:00
|
|
|
@yield('app_scripts')
|
2015-08-31 17:26:09 +02:00
|
|
|
|
2015-09-12 23:56:09 +02:00
|
|
|
@endsection
|