File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed
includes/elements/exhibitions Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 17
17
<x-exhibition-cta :exhibition =" $exhibition" ></x-exhibition-cta >
18
18
19
19
@include (' support.components.components-repeater' , [' page' => $exhibition ] )
20
- {{-- {{ dd($exhibition) }} --}}
21
20
22
- @if (! empty ($exhibition [' exhibition_files ' ]) )
23
- @include (' includes.elements.exhibitions.files' )
21
+ @if (! empty ($exhibition [' related_documents ' ]) )
22
+ @include (' includes.elements.exhibitions.files' , [ ' source ' => $exhibition [ ' related_documents ' ]] )
24
23
@endif
25
24
26
25
@if ($reposition_curators == false && (! empty ($exhibition [' associated_curators' ]) || ! empty ($exhibition [' external_curators' ])) )
Original file line number Diff line number Diff line change 1
- @if (! empty ($page_template ) )
2
- @if (! empty ($exhibition [' exhibition_files' ]) )
3
- <x-exhibition-files :files =" $exhibition['exhibition_files']" ></x-exhibition-files >
4
- @endif
5
- @else
6
- @section (' exhibitions-files' )
7
- @if (! empty ($exhibition [' exhibition_files' ]) )
8
- <x-exhibition-files :files =" $exhibition['exhibition_files']" ></x-exhibition-files >
9
- @endif
10
- @endsection
1
+ @if (! isset ($source ) )
2
+ @php
3
+ $source = $exhibition [' exhibition_files' ]
4
+ @endphp
5
+ @endif
6
+ @if (! empty ($source ) )
7
+ <x-exhibition-files :files =" $source" ></x-exhibition-files >
11
8
@endif
You can’t perform that action at this time.
0 commit comments