2016-05-19 15:01:28 +01:00
|
|
|
|
@extends('master')
|
|
|
|
|
|
|
|
|
|
@section('title')
|
2017-10-22 16:16:13 +01:00
|
|
|
|
{{ strip_tags($note->getOriginal('note')) }} « Notes «
|
2016-05-19 15:01:28 +01:00
|
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
<div class="h-entry">
|
|
|
|
|
@include('templates.note', ['note' => $note])
|
2017-06-22 16:42:10 +01:00
|
|
|
|
@foreach($note->webmentions->filter(function ($webmention) {
|
|
|
|
|
return ($webmention->type == 'in-reply-to');
|
|
|
|
|
}) as $reply)
|
2016-11-29 20:53:05 +00:00
|
|
|
|
<div class="u-comment h-cite">
|
2017-06-22 15:41:23 +01:00
|
|
|
|
<a class="u-author h-card mini-h-card" href="{{ $reply['author']['properties']['url'][0] }}">
|
|
|
|
|
<img src="{{ $reply['author']['properties']['photo'][0] }}" alt="" class="photo u-photo logo"> <span class="fn">{{ $reply['author']['properties']['name'][0] }}</span>
|
|
|
|
|
</a> said at <a class="dt-published u-url" href="{{ $reply['source'] }}">{{ $reply['published'] }}</a>
|
2016-05-19 15:01:28 +01:00
|
|
|
|
<div class="e-content p-name">
|
|
|
|
|
{!! $reply['reply'] !!}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endforeach
|
2017-06-22 16:42:10 +01:00
|
|
|
|
@if($note->webmentions->filter(function ($webmention) {
|
|
|
|
|
return ($webmention->type == 'like-of');
|
|
|
|
|
})->count() > 0)<h1 class="notes-subtitle">Likes</h1>
|
|
|
|
|
@foreach($note->webmentions->filter(function ($webmention) {
|
|
|
|
|
return ($webmention->type == 'like-of');
|
|
|
|
|
}) as $like)
|
2017-06-22 15:41:23 +01:00
|
|
|
|
<a href="{{ $like['author']['properties']['url'][0] }}"><img src="{{ $like['author']['properties']['photo'][0] }}" alt="profile picture of {{ $like['author']['properties']['name'][0] }}" class="like-photo"></a>
|
2016-05-19 15:01:28 +01:00
|
|
|
|
@endforeach
|
2017-06-22 16:42:10 +01:00
|
|
|
|
@endif
|
|
|
|
|
@if($note->webmentions->filter(function ($webmention) {
|
|
|
|
|
return ($webmention->type == 'repost-of');
|
|
|
|
|
})->count() > 0)<h1 class="notes-subtitle">Reposts</h1>
|
|
|
|
|
@foreach($note->webmentions->filter(function ($webmention) {
|
|
|
|
|
return ($webmention->type == 'repost-of');
|
|
|
|
|
}) as $repost)
|
2017-06-22 15:41:23 +01:00
|
|
|
|
<p><a class="h-card vcard mini-h-card p-author" href="{{ $repost['author']['properties']['url'][0] }}">
|
|
|
|
|
<img src="{{ $repost['author']['properties']['photo'][0] }}" alt="profile picture of {{ $repost['author']['properties']['name'][0] }}" class="photo u-photo logo"> <span class="fn">{{ $repost['author']['properties']['name'][0] }}</span>
|
|
|
|
|
</a> reposted this at <a href="{{ $repost['source'] }}">{{ $repost['published'] }}</a>.</p>
|
2016-05-19 15:01:28 +01:00
|
|
|
|
@endforeach
|
2017-06-22 16:42:10 +01:00
|
|
|
|
@endif
|
2016-10-26 22:00:26 +01:00
|
|
|
|
<!-- these empty tags are for https://brid.gy’s publishing service -->
|
2016-11-29 20:53:05 +00:00
|
|
|
|
<a href="https://brid.gy/publish/twitter"></a>
|
|
|
|
|
<a href="https://brid.gy/publish/facebook"></a>
|
2016-10-26 22:00:26 +01:00
|
|
|
|
</div>
|
2016-05-19 15:01:28 +01:00
|
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
@section('scripts')
|
|
|
|
|
|
2017-02-05 20:51:26 +00:00
|
|
|
|
<script defer src="/assets/js/links.js"></script>
|
|
|
|
|
<link rel="stylesheet" href="/assets/frontend/mapbox-gl.css">
|
|
|
|
|
<script defer src="/assets/js/maps.js"></script>
|
2016-05-19 15:01:28 +01:00
|
|
|
|
|
2016-07-18 10:30:49 +01:00
|
|
|
|
<script src="/assets/prism/prism.js"></script>
|
|
|
|
|
<link rel="stylesheet" href="/assets/prism/prism.css">
|
2016-05-19 15:01:28 +01:00
|
|
|
|
@stop
|