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:
@ -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>
|
||||
|
Reference in New Issue
Block a user