mirror of
https://github.com/flarum/core.git
synced 2025-08-01 22:20:21 +02:00
chore: use @php
in Blade templates (#3172)
* chore: remove comment * chore: use `@php` in blade templates * chore: use `@php` in blade templates
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<div>
|
||||
@foreach ($posts as $post)
|
||||
<div>
|
||||
<?php $user = ! empty($post->relationships->user->data) ? $getResource($post->relationships->user->data) : null; ?>
|
||||
@php $user = ! empty($post->relationships->user->data) ? $getResource($post->relationships->user->data) : null; @endphp
|
||||
<h3>{{ $user ? $user->attributes->displayName : $translator->trans('core.lib.username.deleted_text') }}</h3>
|
||||
<div class="Post-body">
|
||||
{!! $post->attributes->contentHtml !!}
|
||||
|
Reference in New Issue
Block a user