1
0
mirror of https://github.com/flarum/core.git synced 2025-07-16 14:26:25 +02:00

Simplify a few unnecessary Arr::get() calls

This commit is contained in:
Franz Liedke
2020-07-24 22:56:31 +02:00
parent 9c09fe8465
commit 2b5939d538
2 changed files with 10 additions and 11 deletions

View File

@ -8,12 +8,11 @@
<div id="header-navigation" class="Header-navigation"></div>
<div class="container">
<h1 class="Header-title">
<a href="{{ \Illuminate\Support\Arr::get($forum, 'baseUrl') }}">
<?php $title = \Illuminate\Support\Arr::get($forum, 'title'); ?>
@if ($logo = \Illuminate\Support\Arr::get($forum, 'logoUrl'))
<img src="{{ $logo }}" alt="{{ $title }}" class="Header-logo">
<a href="{{ $forum['baseUrl'] }}">
@if ($forum['logoUrl'])
<img src="{{ $forum['logoUrl'] }}" alt="{{ $forum['title'] }}" class="Header-logo">
@else
{{ $title }}
{{ $forum['title'] }}
@endif
</a>
</h1>