Skip to content

Commit

Permalink
Merge pull request #694 from FitzwilliamMuseum/hotfix/14475-exhibitio…
Browse files Browse the repository at this point in the history
…n-files-component

fix: files component add to new exhibition template
  • Loading branch information
ostafinskim authored Jul 15, 2024
2 parents 56ab429 + e602080 commit 52d53d0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion resources/views/exhibitions/templates/details-2024.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
<x-exhibition-cta :exhibition="$exhibition"></x-exhibition-cta>

@include('support.components.components-repeater', ['page' => $exhibition])

{{-- {{ dd($exhibition) }} --}}

@if (!empty($exhibition['exhibition_files']))
@include('includes.elements.exhibitions.files')
@endif

@if($reposition_curators == false && (!empty($exhibition['associated_curators']) || !empty($exhibition['external_curators'])))
@include('exhibitions.components.curators')
@endif
Expand Down
12 changes: 9 additions & 3 deletions resources/views/includes/elements/exhibitions/files.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@section('exhibitions-files')
@if(!empty($exhibition['exhibition_files']))
@if (!empty($page_template))
@if (!empty($exhibition['exhibition_files']))
<x-exhibition-files :files="$exhibition['exhibition_files']"></x-exhibition-files>
@endif
@endsection
@else
@section('exhibitions-files')
@if (!empty($exhibition['exhibition_files']))
<x-exhibition-files :files="$exhibition['exhibition_files']"></x-exhibition-files>
@endif
@endsection
@endif

0 comments on commit 52d53d0

Please sign in to comment.