mirror of
https://github.com/flarum/framework.git
synced 2025-03-26 00:35:16 +08:00
Simplify a few unnecessary Arr::get() calls
This commit is contained in:
parent
9c09fe8465
commit
2b5939d538
@ -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>
|
||||
|
@ -1,4 +1,4 @@
|
||||
{!! \Illuminate\Support\Arr::get($forum, 'headerHtml') !!}
|
||||
{!! $forum['headerHtml'] !!}
|
||||
|
||||
<div id="app" class="App">
|
||||
|
||||
@ -10,11 +10,11 @@
|
||||
<div id="header-navigation" class="Header-navigation"></div>
|
||||
<div class="container">
|
||||
<h1 class="Header-title">
|
||||
<a href="{{ \Illuminate\Support\Arr::get($forum, 'baseUrl') }}" id="home-link">
|
||||
@if ($logo = \Illuminate\Support\Arr::get($forum, 'logoUrl'))
|
||||
<img src="{{ $logo }}" alt="{{ \Illuminate\Support\Arr::get($forum, 'title') }}" class="Header-logo">
|
||||
<a href="{{ $forum['baseUrl'] }}" id="home-link">
|
||||
@if ($forum['logoUrl'])
|
||||
<img src="{{ $forum['logoUrl'] }}" alt="{{ $forum['title'] }}" class="Header-logo">
|
||||
@else
|
||||
{{ \Illuminate\Support\Arr::get($forum, 'title') }}
|
||||
{{ $forum['title'] }}
|
||||
@endif
|
||||
</a>
|
||||
</h1>
|
||||
@ -39,4 +39,4 @@
|
||||
|
||||
</div>
|
||||
|
||||
{!! \Illuminate\Support\Arr::get($forum, 'footerHtml') !!}
|
||||
{!! $forum['footerHtml'] !!}
|
||||
|
Loading…
x
Reference in New Issue
Block a user