mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 12:48:28 +08: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:
parent
bb817d9a90
commit
86d23a5de2
|
@ -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 !!}
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
{{-- TODO: Change below to @php when Laravel is upgraded --}}
|
||||
<?php
|
||||
@php
|
||||
$primaryColor = $settings->get('theme_primary_color', '#000');
|
||||
?>
|
||||
@endphp
|
||||
|
||||
<!doctype html>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
|
Loading…
Reference in New Issue
Block a user