Skip to content

Commit

Permalink
guest_mode and no_footer options in the layout template
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Jan 5, 2022
1 parent 11b79b2 commit 59651ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<body class="@if (!Auth::user()) user-is-guest @endif @if (Auth::user() && Auth::user()->isAdmin()) user-is-admin @endif @yield('body_class')" @yield('body_attrs') @if (Auth::user()) data-auth_user_id="{{ Auth::user()->id }}" @endif>
<div id="app">

@if (Auth::user() && empty(app('request')->x_embed))
@if (Auth::user() && empty(app('request')->x_embed) && empty($__env->yieldContent('guest_mode')))

<nav class="navbar navbar-default navbar-static-top">
<div class="container">
Expand Down Expand Up @@ -248,7 +248,8 @@
</div>
@endif

@if (!in_array(Route::currentRouteName(), array('mailboxes.view')) && empty(app('request')->x_embed))
@if (!in_array(Route::currentRouteName(), array('mailboxes.view'))
&& empty(app('request')->x_embed) && empty($__env->yieldContent('no_footer')))
<div class="footer">
@if (!\Eventy::filter('footer.text', ''))
&copy; 2018-{{ date('Y') }} <a href="{{ config('app.freescout_url') }}" target="blank">{{ \Config::get('app.name') }}</a> — {{ __('Free open source help desk & shared mailbox') }}
Expand Down

0 comments on commit 59651ee

Please sign in to comment.