We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a58280 commit 942c931Copy full SHA for 942c931
src/Console/stubs/views/block.stub
@@ -1,15 +1,21 @@
1
-<div {{ $attributes }}>
2
- @if ($items)
3
- <ul>
4
- @foreach ($items as $item)
5
- <li>{{ $item['item'] }}</li>
6
- @endforeach
7
- </ul>
8
- @else
9
- <p>{{ $block->preview ? 'Add an item...' : 'No items found!' }}</p>
10
- @endif
+@unless ($block->preview)
+ <div {{ $attributes }}>
+@endunless
11
12
- <div>
13
- <InnerBlocks template="{{ $block->template }}" />
14
- </div>
+@if ($items)
+ <ul>
+ @foreach ($items as $item)
+ <li>{{ $item['item'] }}</li>
+ @endforeach
+ </ul>
+@else
+ <p>{{ $block->preview ? 'Add an item...' : 'No items found!' }}</p>
+@endif
+
15
+<div>
16
+ <InnerBlocks template="{{ $block->template }}" />
17
</div>
18
19
20
+ </div>
21
0 commit comments