forked from projects/fipamo
ro
a92e124957
the default theme included with fipamo was a bit janky, so that's been cleaned to bring it more inline with current accessiblility standards, an updated mobile friendly menu, updated the logo and plugged in the fresh colors. the layout is still a bit boring but the main purpose of the default is to show how templating works, so it needs to be kept as simple as possible but it still has some room for making it pop a bit more.
62 lines
2 KiB
PHP
62 lines
2 KiB
PHP
@extends('fipamo-default-v2.base')
|
|
|
|
@section('title', $title)
|
|
|
|
@section('main-content')
|
|
<article>
|
|
<h1>{{ $title }}</h1>
|
|
<p>{!!$content!!}</p>
|
|
</article>
|
|
<section class="page-meta">
|
|
<div>
|
|
<h2>Files</h2>
|
|
@foreach($files as $file)
|
|
@if($file['type'] != 'mp3')
|
|
@php
|
|
$fileName = explode("/", $file['file']);
|
|
@endphp
|
|
<a href="{{ $file['file'] }}">{{ $fileName[6] }}</a>
|
|
@endif
|
|
@endforeach
|
|
</div>
|
|
<div>
|
|
<h2>Sounds</h2>
|
|
@foreach($files as $file)
|
|
@if($file['type'] == 'mp3')
|
|
<audio controls>
|
|
<source src="{{ $file['file'] }}" type="audio/mpeg">
|
|
Your browser does not support the audio element.
|
|
</audio>
|
|
@endif
|
|
@endforeach
|
|
</div>
|
|
<div>
|
|
<h2>Info</h2>
|
|
{{ $meta['who'] }}
|
|
dropped this
|
|
{{ $meta['when'] }}<br/>
|
|
|
|
</div>
|
|
<div>
|
|
<h2>Tags</h2>
|
|
@foreach($tags as $tag)
|
|
@if(isset($dynamicRender))
|
|
@if($dynamicRender == 'true')
|
|
<a href="{{ "/tags/".$tag['slug'] }}">
|
|
{{ $tag['label'] }}
|
|
</a>
|
|
@else
|
|
<a href="{{ "/tags/".$tag['slug'].".html" }}">
|
|
{{ $tag['label'] }}
|
|
</a>
|
|
@endif
|
|
@else
|
|
<a href="{{ "/tags/".$tag['slug'].".html" }}">
|
|
{{ $tag['label'] }}
|
|
</a>
|
|
@endif
|
|
@endforeach
|
|
</div>
|
|
</section>
|
|
@endsection
|