Render likes using templates
This commit is contained in:
parent
acbb958475
commit
bcb9998504
4 changed files with 28 additions and 43 deletions
19
resources/views/templates/like.blade.php
Normal file
19
resources/views/templates/like.blade.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<div class="h-entry">
|
||||
<div class="h-cite u-like-of">
|
||||
Liked <a class="u-url" href="{{ $like->url }}">a post</a>
|
||||
@isset($like->author_name)
|
||||
by <span class="p-author h-card">
|
||||
@isset($like->author_url)
|
||||
<a class="u-url p-name" href="{{ $like->author_url }}">{{ $like->author_name }}</a>
|
||||
@else
|
||||
<span class="p-name">{{ $like->author_name }}</span>
|
||||
@endisset
|
||||
</span>
|
||||
@endisset
|
||||
@isset($like->content)
|
||||
<blockquote class="e-content">
|
||||
{!! $like->content !!}
|
||||
</blockquote>
|
||||
@endisset
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue