fipamo/content/themes/fipamo-default-v2/archive.blade.php

37 lines
1.5 KiB
PHP
Raw Permalink Normal View History

@extends('fipamo-default-v2.base')
@section('title', $title)
@section('main-content')
<article>
<h1>{{ $title }}</h1>
<div role="archives">
@foreach($archive as $item)
<div role="archive-$item">
<h2>{{ $item['year'] }}</h2>
@foreach($item['year_data'] as $data)
<div role="archive-month">
<h3>{{ $data['full_month'] }}</h3>
@foreach($data['pages'] as $page)
@php
$title = urldecode($page['title']);
@endphp
@if(isset($dynamicRender))
@if($dynamicRender == 'true')
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $title }}</a><br/>
@else
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'].".html" }}">{{ $title }}</a><br/>
@endif
@else
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $title }}</a><br/>
@endif
@endforeach
</div>
@endforeach
</div>
@endforeach
</div>
</article>
@endsection