-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the views to move logic to data layer
- Loading branch information
1 parent
648bc31
commit 2ebc62c
Showing
4 changed files
with
7 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
@php | ||
$authorObject = Hyde\Framework\Services\AuthorService::find($author); | ||
@endphp | ||
by author | ||
<address itemprop="author" itemscope itemtype="https://schema.org/Person" aria-label="The post author" style="display: inline;"> | ||
@if($authorObject && $authorObject->website) | ||
<a href="{{ $authorObject->website }}" rel="author" itemprop="url" aria-label="The author's website"> | ||
@if($post->author->website) | ||
<a href="{{ $post->author->website }}" rel="author" itemprop="url" aria-label="The author's website"> | ||
@endif | ||
<span itemprop="name" aria-label="The author's name" {{ $authorObject && $authorObject->username ? 'title=@'.$authorObject->username.'' : '' }}>{{ $authorObject->name ?? $author }}</span> | ||
@if($authorObject && $authorObject->website) | ||
<span itemprop="name" aria-label="The author's name" {{ $post->author->username ? 'title=@'.$post->author->username.'' : '' }}>{{ $post->author->name ?? $post->author->username }}</span> | ||
@if($post->author->website) | ||
</a> | ||
@endif | ||
</address> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
in the category "{{ $category }}" | ||
in the category "{{ $post->category }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters