diff --git a/app/routes.php b/app/routes.php index dd61d3c..8cb4c0b 100755 --- a/app/routes.php +++ b/app/routes.php @@ -5,4 +5,5 @@ require 'routes/index.php'; require 'routes/about.php'; require 'routes/contact.php'; require 'routes/home.php'; +require 'routes/music.php'; require 'routes/shows.php'; diff --git a/app/start.php b/app/start.php index 7b85b42..1f10574 100755 --- a/app/start.php +++ b/app/start.php @@ -27,7 +27,7 @@ require INC_ROOT . '/vendor/autoload.php'; // Time to create our app $app = new Slim([ - 'mode' => file_get_contents(INC_ROOT . '/mode.php'), + 'mode' => trim(file_get_contents(INC_ROOT . '/mode.php')), 'view' => new Twig(), 'templates.path' => INC_ROOT . '/app/views' ]); diff --git a/app/views/music.twig b/app/views/music.twig new file mode 100644 index 0000000..c5784b7 --- /dev/null +++ b/app/views/music.twig @@ -0,0 +1,71 @@ +{% extends 'templates/default.twig' %} + +{% block javascripts %} + + +{% endblock %} + +{% block title %}Music{% endblock %} + +{% block content %} + +
+

Music

+
+ + +
+ + + + +
+
+ {{ albums[0].title }} +
+

{{ albums[0].title }}

+ {% if albums[0].description %} +
+

{{ albums[0].description }}

+ {% endif %} +
+
+
+ + +
+
+ +
+ +
+
    + {% for song in songs %} +
  • + {{ song.track_order }}. {{ song.title }} +
  • + {% endfor %} +
+
+
+
+ + +
+ {% for album in albums %} + +
+
+ {{ album.title }} +
+
{{ album.title }}
+
+
+
+ {% endfor %} +
+ +{% endblock %} diff --git a/app/views/templates/partials/header.twig b/app/views/templates/partials/header.twig index 9baad5d..5a88d9e 100755 --- a/app/views/templates/partials/header.twig +++ b/app/views/templates/partials/header.twig @@ -12,26 +12,29 @@
- +