laravel-6 support
This commit is contained in:
@@ -1,22 +1,30 @@
|
||||
@if ($breadcrumbs)
|
||||
<ul class="breadcrumb">
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
@if ($breadcrumb->last)
|
||||
<li class="active">
|
||||
{{ $breadcrumb->title }}
|
||||
</li>
|
||||
@elseif ($breadcrumb->url)
|
||||
<li>
|
||||
<a href="{{ $breadcrumb->url }}">{{ $breadcrumb->title }}</a>
|
||||
<span class="divider">/</span>
|
||||
</li>
|
||||
@else
|
||||
{{-- Using .active to give it the right colour (grey by default) --}}
|
||||
<li class="active">
|
||||
{{ $breadcrumb->title }}
|
||||
<span class="divider">/</span>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
@if (count($breadcrumbs))
|
||||
|
||||
<ul class="breadcrumb">
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
@if ($loop->last)
|
||||
|
||||
<li class="active">
|
||||
{{ $breadcrumb->title }}
|
||||
</li>
|
||||
|
||||
@elseif ($breadcrumb->url)
|
||||
|
||||
<li>
|
||||
<a href="{{ $breadcrumb->url }}">{{ $breadcrumb->title }}</a>
|
||||
<span class="divider">/</span>
|
||||
</li>
|
||||
|
||||
@else
|
||||
|
||||
{{-- Using .active to give it the right colour (grey by default) --}}
|
||||
<li class="active">
|
||||
{{ $breadcrumb->title }}
|
||||
<span class="divider">/</span>
|
||||
</li>
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
@endif
|
||||
|
@@ -1,11 +1,15 @@
|
||||
@if ($breadcrumbs)
|
||||
<ol class="breadcrumb">
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
@if ($breadcrumb->url && !$breadcrumb->last)
|
||||
<li><a href="{{ $breadcrumb->url }}">{{ $breadcrumb->title }}</a></li>
|
||||
@else
|
||||
<li class="active">{{ $breadcrumb->title }}</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ol>
|
||||
@if (count($breadcrumbs))
|
||||
|
||||
<ol class="breadcrumb">
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
|
||||
@if ($breadcrumb->url && !$loop->last)
|
||||
<li><a href="{{ $breadcrumb->url }}">{{ $breadcrumb->title }}</a></li>
|
||||
@else
|
||||
<li class="active">{{ $breadcrumb->title }}</li>
|
||||
@endif
|
||||
|
||||
@endforeach
|
||||
</ol>
|
||||
|
||||
@endif
|
||||
|
15
vendor/davejamesmiller/laravel-breadcrumbs/views/bootstrap4.blade.php
vendored
Normal file
15
vendor/davejamesmiller/laravel-breadcrumbs/views/bootstrap4.blade.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
@if (count($breadcrumbs))
|
||||
|
||||
<ol class="breadcrumb">
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
|
||||
@if ($breadcrumb->url && !$loop->last)
|
||||
<li class="breadcrumb-item"><a href="{{ $breadcrumb->url }}">{{ $breadcrumb->title }}</a></li>
|
||||
@else
|
||||
<li class="breadcrumb-item active">{{ $breadcrumb->title }}</li>
|
||||
@endif
|
||||
|
||||
@endforeach
|
||||
</ol>
|
||||
|
||||
@endif
|
25
vendor/davejamesmiller/laravel-breadcrumbs/views/bulma.blade.php
vendored
Normal file
25
vendor/davejamesmiller/laravel-breadcrumbs/views/bulma.blade.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
@if (count($breadcrumbs))
|
||||
|
||||
<nav class="breadcrumb" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
|
||||
@if ($loop->last)
|
||||
@if ($breadcrumb->url)
|
||||
<li class="is-active"><a href="{{ $breadcrumb->url }}" aria-current="page">{{ $breadcrumb->title }}</a></li>
|
||||
@else
|
||||
<li class="is-active"><a aria-current="page">{{ $breadcrumb->title }}</a></li>
|
||||
@endif
|
||||
@else
|
||||
@if ($breadcrumb->url)
|
||||
<li><a href="{{ $breadcrumb->url }}">{{ $breadcrumb->title }}</a></li>
|
||||
@else
|
||||
<li class="is-active"><a>{{ $breadcrumb->title }}</a></li>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@endforeach
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
@endif
|
19
vendor/davejamesmiller/laravel-breadcrumbs/views/foundation6.blade.php
vendored
Normal file
19
vendor/davejamesmiller/laravel-breadcrumbs/views/foundation6.blade.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
@if (count($breadcrumbs))
|
||||
|
||||
<nav aria-label="You are here:" role="navigation">
|
||||
<ul class="breadcrumbs">
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
|
||||
@if ($loop->last)
|
||||
<li class="current"><span class="show-for-sr">Current:</span> {{ $breadcrumb->title }}</li>
|
||||
@elseif ($breadcrumb->url)
|
||||
<li><a href="{{ $breadcrumb->url }}">{{ $breadcrumb->title }}</a></li>
|
||||
@else
|
||||
<li class="disabled">{{ $breadcrumb->title }}</li>
|
||||
@endif
|
||||
|
||||
@endforeach
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
@endif
|
23
vendor/davejamesmiller/laravel-breadcrumbs/views/json-ld.php
vendored
Normal file
23
vendor/davejamesmiller/laravel-breadcrumbs/views/json-ld.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Request;
|
||||
|
||||
$json = [
|
||||
'@context' => 'http://schema.org',
|
||||
'@type' => 'BreadcrumbList',
|
||||
'itemListElement' => [],
|
||||
];
|
||||
|
||||
foreach ($breadcrumbs as $i => $breadcrumb) {
|
||||
$json['itemListElement'][] = [
|
||||
'@type' => 'ListItem',
|
||||
'position' => $i + 1,
|
||||
'item' => [
|
||||
'@id' => $breadcrumb->url ?: Request::fullUrl(),
|
||||
'name' => $breadcrumb->title,
|
||||
'image' => $breadcrumb->image ?? null,
|
||||
],
|
||||
];
|
||||
}
|
||||
?>
|
||||
<script type="application/ld+json"><?= json_encode($json) ?></script>
|
19
vendor/davejamesmiller/laravel-breadcrumbs/views/materialize.blade.php
vendored
Normal file
19
vendor/davejamesmiller/laravel-breadcrumbs/views/materialize.blade.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
@if (count($breadcrumbs))
|
||||
|
||||
<nav>
|
||||
<div class="nav-wrapper">
|
||||
<div class="col s12">
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
|
||||
@if ($breadcrumb->url && !$loop->last)
|
||||
<a href="{{ $breadcrumb->url }}" class="breadcrumb">{{ $breadcrumb->title }}</a>
|
||||
@else
|
||||
<span class="breadcrumb">{{ $breadcrumb->title }}</span>
|
||||
@endif
|
||||
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@endif
|
13
vendor/davejamesmiller/laravel-breadcrumbs/views/uikit.blade.php
vendored
Normal file
13
vendor/davejamesmiller/laravel-breadcrumbs/views/uikit.blade.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
@if (count($breadcrumbs))
|
||||
<ul class="uk-breadcrumb">
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
@if ($loop->last)
|
||||
<li><span>{{ $breadcrumb->title }}</span></li>
|
||||
@elseif ($breadcrumb->url)
|
||||
<li><a href="{{ $breadcrumb->url }}">{{ $breadcrumb->title }}</a></li>
|
||||
@else
|
||||
<li class="uk-disabled"><a>{{ $breadcrumb->title }}</a></li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
Reference in New Issue
Block a user