Skip to content

Commit 9bd8916

Browse files
committed
Merge branch 'master' of github.com:appstract/laravel-bootstrap-components
2 parents c4fe693 + d8d9fb6 commit 9bd8916

File tree

8 files changed

+73
-9
lines changed

8 files changed

+73
-9
lines changed

config/bootstrap-components.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
return [
44

5-
// Bootstrap version
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Bootstrap version
8+
|--------------------------------------------------------------------------
9+
*/
610

711
'version' => 4,
12+
813
];
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="btn-group {{ $class or '' }}" role="group">
2+
{{ $slot }}
3+
</div>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<div class="dropdown">
2+
<button
3+
class="btn btn-default dropdown-toggle"
4+
type="button"
5+
id="dropdownMenu1"
6+
data-toggle="dropdown"
7+
aria-haspopup="true"
8+
aria-expanded="true"
9+
>
10+
{{ $button }}
11+
@istrue($caret, '<span class="caret"></span>')
12+
</button>
13+
14+
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
15+
{{ $slot }}
16+
</ul>
17+
</div>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="input-group {{ $class or '' }}">
2+
{{ $slot }}
3+
</div>

resources/views/bs4/badge.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<span
2-
class="badge badge-{{ $severity }}
2+
class="
3+
badge
4+
badge-{{ $severity }}
35
{{ $class or '' }}
46
@istrue($pill, 'badge-pill')
57
"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<ol class="breadcrumb {{ $class or '' }}">
2+
{{ $slot }}
3+
</ol>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<div id="{{ $id or 'carousel' }}" class="carousel slide {{ $class or '' }}" data-ride="carousel">
2+
@istrue($indicators)
3+
<ol class="carousel-indicators">
4+
@isset($items)
5+
@foreach($items as $item)
6+
<li data-target="#{{ $id or 'carousel' }}" data-slide-to="{{ $loop->index }}"></li>
7+
@endforeach
8+
@else
9+
{{ $indicators }}
10+
@endisset
11+
</ol>
12+
@endistrue
13+
14+
<div class="carousel-inner" role="listbox">
15+
@isset($items)
16+
@foreach($items as $item)
17+
<div class="carousel-item @istrue($loop->first, 'active')">{{ $item }}</div>
18+
@endforeach
19+
@endisset
20+
21+
{{ $slot }}
22+
</div>
23+
24+
@istrue($controls)
25+
<a class="carousel-control-prev" href="#{{ $id or 'carousel' }}" role="button" data-slide="prev">
26+
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
27+
<span class="sr-only">Previous</span>
28+
</a>
29+
30+
<a class="carousel-control-next" href="#{{ $id or 'carousel' }}" role="button" data-slide="next">
31+
<span class="carousel-control-next-icon" aria-hidden="true"></span>
32+
<span class="sr-only">Next</span>
33+
</a>
34+
@endistrue
35+
</div>

resources/views/bs4/jumbotron.blade.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@ class="jumbotron
44
@istrue($fullwidth, 'jumbotron-fluid')
55
"
66
>
7-
@istrue($fullwidth)
8-
<div class="container">
9-
@endistrue
7+
@istrue($fullwidth, '<div class="container">')
108

119
@isset($heading)
1210
<h1 class="display-3">{{ $heading }}</h1>
1311
@endisset
1412

15-
{{ $slot }}
13+
{{ $slot }}
1614

17-
@istrue($fullwidth)
18-
</div>
19-
@endistrue
15+
@istrue($fullwidth, '</div>')
2016
</div>

0 commit comments

Comments
 (0)