Skip to content

Commit

Permalink
Allow the ability for the page header to be disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mezzair committed May 17, 2020
1 parent 8c18cd5 commit e6a0fae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions config/laravel_pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'admin_middle_ware' => ['web', 'auth'],
'view_pages_route' => '/page/{slug}',
'disable_show_route' => false,
'disable_header_image' => false,

/*
|--------------------------------------------------------------------------
Expand Down
14 changes: 8 additions & 6 deletions src/resources/views/pages/partials/form.blade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<div class="form-row mb-3">
<div class="col">
<div class="custom-file">
<input id="header_image" class="custom-file-input" type="file" name="header_image">
<label for="header_image" class="custom-file-label">Header Image</label>
@if(!config('disable_header_image'))
<div class="form-row mb-3">
<div class="col">
<div class="custom-file">
<input id="header_image" class="custom-file-input" type="file" name="header_image">
<label for="header_image" class="custom-file-label">Header Image</label>
</div>
</div>
</div>
</div>
@endif

<div class="form-row">
<div class="col">
Expand Down

0 comments on commit e6a0fae

Please sign in to comment.