Update breadcrumbs for PHP 7.2 #1079

This commit is contained in:
James Cole 2017-12-31 11:10:36 +01:00
parent b73884160a
commit e2bd1f6544
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 17 additions and 1 deletions

View File

@ -18,7 +18,7 @@ return [
|
*/
'view' => 'breadcrumbs::bootstrap3',
'view' => 'partials/breadcrumbs',
/*
|--------------------------------------------------------------------------

View File

@ -0,0 +1,16 @@
{% if breadcrumbs|length > 0 %}
<ol class="breadcrumb">
{% for breadcrumb in breadcrumbs %}
{% if breadcrumb.url and not loop.last %}
<li><a href="{{ breadcrumb.url }}">{{ breadcrumb.title }}</a></li>
{% else %}
<li class="active">{{ breadcrumb.title }}</li>
{% endif %}
{% endfor %}
</ol>
{% endif %}