Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

feature: added uikit layout to breadcrumbs #198

Merged
merged 1 commit into from
Oct 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ The possible values are:
- `breadcrumbs::bulma` – [Bulma](http://bulma.io/documentation/components/breadcrumb/)
- `breadcrumbs::foundation6` – [Foundation 6](http://foundation.zurb.com/sites/docs/breadcrumbs.html)
- `breadcrumbs::materialize` – [Materialize](http://materializecss.com/breadcrumbs.html)
- `breadcrumbs::uikit` – [UiKit](https://getuikit.com/docs/breadcrumb)
- `breadcrumbs::json-ld` – [JSON-LD Structured Data](https://developers.google.com/search/docs/data-types/breadcrumbs) (<script> tag, no visible output)
- The path to a custom view: e.g. `partials.breadcrumbs`

Expand Down
1 change: 1 addition & 0 deletions config/breadcrumbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
| - 'breadcrumbs::bulma' - Bulma
| - 'breadcrumbs::foundation6' - Foundation 6
| - 'breadcrumbs::materialize' - Materialize
| - 'breadcrumbs::uikit' - UiKit
| - 'breadcrumbs::json-ld' - JSON-LD Structured Data
|
| Or a custom view, e.g. '_partials/breadcrumbs'.
Expand Down
13 changes: 13 additions & 0 deletions views/uikit.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@if (count($breadcrumbs))
<ul class="uk-breadcrumb">
@foreach ($breadcrumbs as $breadcrumb)
<li>
@if ($breadcrumb->url && !$loop->last)
<a href="{{ $breadcrumb->url }}">{{ $breadcrumb->title }}</a>
@else
<span>{{ $breadcrumb->title }}</span>
@endif
</li>
@endforeach
</ul>
@endif