Removed the second music player design in favor of the first design (after the IS 403 results)

This commit is contained in:
gballan1
2016-12-29 13:38:10 -05:00
parent a37ae70622
commit c2382ecac1
4 changed files with 6 additions and 110 deletions

View File

@ -1,31 +1,16 @@
<?php
// music design #1
$app->get('/music1', function() use($app) {
// music page
$app->get('/music', function() use($app) {
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
$songs = $albums[0]->songs;
$links = $albums[0]->links;
$app->render('pages/music1.twig', [
$app->render('pages/music.twig', [
'albums' => $albums,
'songs' => $songs,
'links' => $links,
]);
})->name('music1');
# music design #2
$app->get('/music2', function() use($app) {
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
$songs = $albums[0]->songs;
$links = $albums[0]->links;
$app->render('pages/music2.twig', [
'albums' => $albums,
'songs' => $songs,
'links' => $links,
]);
})->name('music2');
})->name('music');