Skip to content

Commit

Permalink
Merge pull request #406
Browse files Browse the repository at this point in the history
Replace breadcrumbs
  • Loading branch information
portableant authored May 25, 2022
2 parents a156abf + cdd6af5 commit 9618a52
Show file tree
Hide file tree
Showing 12 changed files with 788 additions and 90 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"atymic/twitter": "^3.1",
"codeat3/blade-fluentui-system-icons": "^1.24",
"conedevelopment/blade-filters": "^1.0",
"diglactic/laravel-breadcrumbs": "^7.2",
"elasticsearch/elasticsearch": "^7.17.0",
"fitzwilliammuseum/instagram-php-scraper": "master",
"fitzwilliammuseum/maps": "master",
Expand Down
179 changes: 125 additions & 54 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/js/app.js": "/js/app.js?id=1072f3bf5674b0bbd5892213a7f75ff1",
"/css/app.css": "/css/app.css?id=c3fa58bc0f7de5324b34ae95fb25d5fe",
"/css/app.css": "/css/app.css?id=bf846dd8edf2f05e55bd3e13cc3a439d",
"/css/fitzwilliam.css": "/css/fitzwilliam.css?id=77a35cfaed6c45d6581e734762fb43ad"
}
3 changes: 3 additions & 0 deletions resources/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -1087,3 +1087,6 @@ a.text-center.btn.btn-outline-light.btn__book {
.eden {
filter: invert(1) sepia(1) saturate(5) hue-rotate(175deg);
}
.card-img-top {
height: 100% !important;
}
2 changes: 2 additions & 0 deletions resources/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ $yellow: #ffed4a;
$green: #38c172;
$teal: #4dc0b5;
$cyan: #6cb2eb;

$breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='currentColor'/%3E%3C/svg%3E");
10 changes: 7 additions & 3 deletions resources/views/components/viewpoint.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
<div>
@foreach($viewpoint['associated_artworks'] as $image)
<figure class="figure">
<img class="figure-img img-fluid my-2" src="{{$image['ttn_labels_id']['image']['data']['url']}}"
<img class="figure-img img-fluid my-2"
src="{{$image['ttn_labels_id']['image']['data']['url']}}"
alt="{{ $image['ttn_labels_id']['alt_text'] }}"
width="{{ $image['ttn_labels_id']['image']['width'] }}"
height="{{ $image['ttn_labels_id']['image']['height'] }}"
loading="lazy"/>
<figcaption class="figure-caption text-info">{{$image['ttn_labels_id']['image']['title']}}</figcaption>
<figcaption class="figure-caption text-info">
{{$image['ttn_labels_id']['image']['title']}}
</figcaption>
</figure>
@endforeach
</div>
Expand All @@ -25,7 +28,8 @@
{{$person['associated_people_id']['display_name']}}@isset($person['associated_people_id']['associated_role']), {{$person['associated_people_id']['associated_role']}}
@endisset
@if(!empty($person['associated_people_id']['associated_institution']))
<br/>{{$person['associated_people_id']['associated_institution'][0]['partner_organisations_id']['partner_full_name']}}
<br/>
{{$person['associated_people_id']['associated_institution'][0]['partner_organisations_id']['partner_full_name']}}
@endisset
<br/>
@endforeach
Expand Down
27 changes: 3 additions & 24 deletions resources/views/includes/structure/breadcrumb.blade.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
<!-- Breadcrumb done by @sina-rzp -->

<nav aria-label="breadcrumb">
<ol class="breadcrumb p-3">
<li class="breadcrumb-item active" aria-current="page"><a href="{{ route('home') }}">Home</a></li>
@php
$bread = URL::to('/');
$link = Request::path();
$subs = explode("/", $link)
@endphp
@if (Request::path() != '/')
@for($i = 0; $i < count($subs); $i++)
@php
$bread = $bread."/".$subs[$i];
$title = urldecode($subs[$i]);
$title = str_replace("-", " ", $title);
$title = ucwords($title)
@endphp
<li class="breadcrumb-item active" aria-current="page"><a
href="{{ $bread }}">{{ $title }}</a></li>
@endfor
@endif
</ol>
</nav>
<div class="col-md-12 shadow-sm p-3 mx-auto">
{{ Breadcrumbs::render() }}
</div>
3 changes: 1 addition & 2 deletions resources/views/layouts/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@
@include('includes.css.photosphere-css')
@endif

<div class="container-fluid mt-3 mb-3 p-3">
<div class="container-fluid mt-3 mb-3 p-3">
<div class="container">
@include('includes.structure.breadcrumb')
@yield('press-contact')
@yield('content')

@yield('adlib')
@yield('timeline')
</div>
Expand Down
Loading

0 comments on commit 9618a52

Please sign in to comment.