Skip to content

Commit

Permalink
views
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Jun 27, 2022
1 parent a8d7018 commit 93b3db3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/views/public/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

</div>

<div id="map" class="map" data-url="/{{ $page->uri($lang) }}/places-json" data-button-label="@lang('Read more')"></div>
<div id="map" class="map" data-url="{{ url($page->uri().'/places-json') }}" data-button-label="@lang('Read more')"></div>

<div class="page-body-container">

Expand Down
6 changes: 3 additions & 3 deletions resources/views/public/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
</header>
<div class="place-body">
@include('places::public._json-ld', ['place' => $model])
@empty(!$model->latitude && $model->longitude)
<div class="place-map" id="map" data-url="/{{ $page->uri($lang) }}/places-json/{{ $model->id }}" style="height: 500px"></div>
@endempty
@if(!empty($model->latitude) && !empty($model->longitude))
<div class="place-map" id="map" data-url="{{ url($page->uri().'/places-json/'.$model->id) }}" style="height: 500px"></div>
@endif
@empty(!$model->image)
<picture class="place-picture">
<img class="place-picture-image" src="{{ $model->present()->image(2000) }}" width="{{ $model->image->width }}" height="{{ $model->image->height }}" alt="">
Expand Down

0 comments on commit 93b3db3

Please sign in to comment.