Skip to content

Commit ac29c9c

Browse files
committed
Removed placeholder values for blocks
1 parent 75f60ad commit ac29c9c

10 files changed

+44
-44
lines changed

config/page-blocks.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@
101101
'display_name' => 'Button Text',
102102
'partial' => 'voyager::formfields.text',
103103
'required' => 0,
104-
'placeholder' => 'Learn More',
104+
'placeholder' => '',
105105
],
106106
'link' => [
107107
'field' => 'link',
108108
'display_name' => 'Link',
109109
'partial' => 'voyager::formfields.text',
110110
'required' => 0,
111-
'placeholder' => '#',
111+
'placeholder' => '',
112112
],
113113
'br_4' => [
114114
'field' => 'br_4',
@@ -216,14 +216,14 @@
216216
'display_name' => "Button Column {$col}: Text",
217217
'partial' => 'voyager::formfields.text',
218218
'required' => 0,
219-
'placeholder' => 'Learn More',
219+
'placeholder' => '',
220220
];
221221
$blocks[$block]['fields']["link_{$col}"] = [
222222
'field' => "link_{$col}",
223223
'display_name' => "Column {$col}: Link",
224224
'partial' => 'voyager::formfields.text',
225225
'required' => 0,
226-
'placeholder' => '#',
226+
'placeholder' => '',
227227
];
228228
$blocks[$block]['fields']["br_{$col}_3"] = [
229229
'field' => "br_{$col}_3",
@@ -268,7 +268,7 @@
268268
'display_name' => "Link for Image {$col}",
269269
'partial' => 'voyager::formfields.text',
270270
'required' => 0,
271-
'placeholder' => '#',
271+
'placeholder' => '',
272272
];
273273
$blocks['image_row']['fields']["br_{$col}"] = [
274274
'field' => "br_{$col}",

resources/views/blocks/callout.blade.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- CALLOUT BLOCK -->
22
<div class="page-block @if (in_array($blockData->spaces, [0, 2])) page-block-space-bottom @endif @if (in_array($blockData->spaces, [1, 2])) page-block-space-top @endif">
33
<div
4-
class="callout callout-size-{{ $blockData->size or '0' }} background-image @if ($blockData->fade_background === 'on') fade-background @endif"
4+
class="callout callout-size-{{ $blockData->size }} background-image @if ($blockData->fade_background === 'on') fade-background @endif"
55
style="background-image: url({{ imageUrl($blockData->background_image, 1600, 750, ['crop' => false]) }});"
66
>
77
<div
@@ -10,17 +10,17 @@ class="grid-container column text-center"
1010
>
1111
@if (!empty($blockData->title))
1212
@if ($blockData->size > 1) <h1> @else <h2> @endif
13-
{{ $blockData->title or '' }}
13+
{{ $blockData->title }}
1414
@if ($blockData->size > 1) </h1> @else </h2> @endif
1515
@endif
1616

1717
@if (!empty($blockData->content))
18-
<p class="lead">{{ $blockData->content or '' }}</p>
18+
<p class="lead">{{ $blockData->content }}</p>
1919
@endif
2020

2121
@if (!empty($blockData->link))
22-
<a href="{{ $blockData->link or '#' }}" class="button light large">
23-
{{ $blockData->button_text or 'Learn More' }}
22+
<a href="{{ $blockData->link }}" class="button light large">
23+
{{ $blockData->button_text }}
2424
</a>
2525
@endif
2626
</div> <!-- /.container -->

resources/views/blocks/cards_one_column.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111
<div class="block-image-text-content">
1212
@if (!empty($blockData->title_1))
13-
<h4>{{ $blockData->title_1 or '' }}</h4>
13+
<h4>{{ $blockData->title_1 }}</h4>
1414
@endif
1515

1616
@if (!empty($blockData->content_1))
17-
<p>{{ $blockData->content_1 or '' }}</p>
17+
<p>{{ $blockData->content_1 }}</p>
1818
@endif
1919

2020
@if (!empty($blockData->link_1))
21-
<a href="{{ $blockData->link_1 or '' }}" class="button round">{{ $blockData->button_text_1 or 'Learn More' }}</a>
21+
<a href="{{ $blockData->link_1 }}" class="button round">{{ $blockData->button_text_1 }}</a>
2222
@endif
2323
</div> <!-- /.block-image-text-content -->
2424

resources/views/blocks/cards_three_columns.blade.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
<div class="cell small-12 medium-4" @if (!empty($blockData->animate)) data-scrollreveal @endif>
66
<div class="card">
77
@if (!empty($blockData->image_1))
8-
@if (!empty($blockData->link_1))<a href="{{ $blockData->link_1 or '' }}">@endif
8+
@if (!empty($blockData->link_1))<a href="{{ $blockData->link_1 }}">@endif
99
<img src="{{ imageUrl($blockData->image_1, 370, 245) }}">
1010
@if (!empty($blockData->link_1))</a>@endif
1111
@endif
1212

1313
<div class="card-section">
1414
@if (!empty($blockData->title_1))
15-
<h4>{{ $blockData->title_1 or '' }}</h4>
15+
<h4>{{ $blockData->title_1 }}</h4>
1616
@endif
1717

1818
@if (!empty($blockData->content_1))
19-
<p>{{ $blockData->content_1 or '' }}</p>
19+
<p>{{ $blockData->content_1 }}</p>
2020
@endif
2121

2222
@if (!empty($blockData->link_1))
23-
<a href="{{ $blockData->link_1 or '' }}" class="button">{{ $blockData->button_text_1 or 'Learn More' }}</a>
23+
<a href="{{ $blockData->link_1 }}" class="button">{{ $blockData->button_text_1 }}</a>
2424
@endif
2525
</div> <!-- /.card-section -->
2626
</div> <!-- /.card -->
@@ -29,22 +29,22 @@
2929
<div class="cell small-12 medium-4" @if (!empty($blockData->animate)) data-scrollreveal @endif>
3030
<div class="card">
3131
@if (!empty($blockData->image_2))
32-
@if (!empty($blockData->link_2))<a href="{{ $blockData->link_2 or '' }}">@endif
32+
@if (!empty($blockData->link_2))<a href="{{ $blockData->link_2 }}">@endif
3333
<img src="{{ imageUrl($blockData->image_2, 370, 245) }}">
3434
@if (!empty($blockData->link_2))</a>@endif
3535
@endif
3636

3737
<div class="card-section">
3838
@if (!empty($blockData->title_2))
39-
<h4>{{ $blockData->title_2 or '' }}</h4>
39+
<h4>{{ $blockData->title_2 }}</h4>
4040
@endif
4141

4242
@if (!empty($blockData->content_2))
43-
<p>{{ $blockData->content_2 or '' }}</p>
43+
<p>{{ $blockData->content_2 }}</p>
4444
@endif
4545

4646
@if (!empty($blockData->link_2))
47-
<a href="{{ $blockData->link_2 or '' }}" class="button">{{ $blockData->button_text_2 or 'Learn More' }}</a>
47+
<a href="{{ $blockData->link_2 }}" class="button">{{ $blockData->button_text_2 }}</a>
4848
@endif
4949
</div> <!-- /.card-section -->
5050
</div> <!-- /.card -->
@@ -53,22 +53,22 @@
5353
<div class="cell small-12 medium-4" @if (!empty($blockData->animate)) data-scrollreveal @endif>
5454
<div class="card">
5555
@if (!empty($blockData->image_3))
56-
@if (!empty($blockData->link_3))<a href="{{ $blockData->link_3 or '' }}">@endif
56+
@if (!empty($blockData->link_3))<a href="{{ $blockData->link_3 }}">@endif
5757
<img src="{{ imageUrl($blockData->image_3, 370, 245) }}">
5858
@if (!empty($blockData->link_3))</a>@endif
5959
@endif
6060

6161
<div class="card-section">
6262
@if (!empty($blockData->title_3))
63-
<h4>{{ $blockData->title_3 or '' }}</h4>
63+
<h4>{{ $blockData->title_3 }}</h4>
6464
@endif
6565

6666
@if (!empty($blockData->content_3))
67-
<p>{{ $blockData->content_3 or '' }}</p>
67+
<p>{{ $blockData->content_3 }}</p>
6868
@endif
6969

7070
@if (!empty($blockData->link_3))
71-
<a href="{{ $blockData->link_3 or '' }}" class="button">{{ $blockData->button_text_3 or 'Learn More' }}</a>
71+
<a href="{{ $blockData->link_3 }}" class="button">{{ $blockData->button_text_3 }}</a>
7272
@endif
7373
</div> <!-- /.card-section -->
7474
</div> <!-- /.card -->

resources/views/blocks/cards_two_columns.blade.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212

1313
<div class="card-section">
1414
@if (!empty($blockData->title_1))
15-
<h4>{{ $blockData->title_1 or '' }}</h4>
15+
<h4>{{ $blockData->title_1 }}</h4>
1616
@endif
1717

1818
@if (!empty($blockData->content_1))
19-
<p>{{ $blockData->content_1 or '' }}</p>
19+
<p>{{ $blockData->content_1 }}</p>
2020
@endif
2121

2222
@if (!empty($blockData->link_1))
23-
<a href="{{ $blockData->link_1 or '' }}" class="button">{{ $blockData->button_text_1 or 'Learn More' }}</a>
23+
<a href="{{ $blockData->link_1 }}" class="button">{{ $blockData->button_text_1 }}</a>
2424
@endif
2525
</div> <!-- /.card-section -->
2626
</div> <!-- /.card -->
@@ -36,15 +36,15 @@
3636

3737
<div class="card-section">
3838
@if (!empty($blockData->title_2))
39-
<h4>{{ $blockData->title_2 or '' }}</h4>
39+
<h4>{{ $blockData->title_2 }}</h4>
4040
@endif
4141

4242
@if (!empty($blockData->content_2))
43-
<p>{{ $blockData->content_2 or '' }}</p>
43+
<p>{{ $blockData->content_2 }}</p>
4444
@endif
4545

4646
@if (!empty($blockData->link_2))
47-
<a href="{{ $blockData->link_2 or '' }}" class="button">{{ $blockData->button_text_2 or 'Learn More' }}</a>
47+
<a href="{{ $blockData->link_2 }}" class="button">{{ $blockData->button_text_2 }}</a>
4848
@endif
4949
</div> <!-- /.card-section -->
5050
</div> <!-- /.card -->

resources/views/blocks/content_four_columns.blade.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
<div class="grid-container">
44
<div class="grid-x grid-padding-x">
55
<div class="cell small-12 medium-3" @if (!empty($blockData->animate)) data-scrollreveal @endif>
6-
{!! $blockData->html_content_1 or '' !!}
6+
{!! $blockData->html_content_1 !!}
77
</div> <!-- /.cell -->
88

99
<div class="cell small-12 medium-3" @if (!empty($blockData->animate)) data-scrollreveal @endif>
10-
{!! $blockData->html_content_2 or '' !!}
10+
{!! $blockData->html_content_2 !!}
1111
</div> <!-- /.cell -->
1212

1313
<div class="cell small-12 medium-3" @if (!empty($blockData->animate)) data-scrollreveal @endif>
14-
{!! $blockData->html_content_3 or '' !!}
14+
{!! $blockData->html_content_3 !!}
1515
</div> <!-- /.cell -->
1616

1717
<div class="cell small-12 medium-3" @if (!empty($blockData->animate)) data-scrollreveal @endif>
18-
{!! $blockData->html_content_4 or '' !!}
18+
{!! $blockData->html_content_4 !!}
1919
</div> <!-- /.cell -->
2020
</div> <!-- /.grid -->
2121
</div> <!-- /.container -->

resources/views/blocks/content_one_column.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="grid-container">
44
<div class="grid-x grid-padding-x">
55
<div class="cell small-12" @if (!empty($blockData->animate)) data-scrollreveal @endif>
6-
{!! $blockData->html_content_1 or '' !!}
6+
{!! $blockData->html_content_1 !!}
77
</div> <!-- /.cell -->
88
</div> <!-- /.grid -->
99
</div> <!-- /.container -->

resources/views/blocks/content_three_columns.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<div class="grid-container">
44
<div class="grid-x grid-padding-x">
55
<div class="cell small-12 medium-4" @if (!empty($blockData->animate)) data-scrollreveal @endif>
6-
{!! $blockData->html_content_1 or '' !!}
6+
{!! $blockData->html_content_1 !!}
77
</div> <!-- /.cell -->
88

99
<div class="cell small-12 medium-4" @if (!empty($blockData->animate)) data-scrollreveal @endif>
10-
{!! $blockData->html_content_2 or '' !!}
10+
{!! $blockData->html_content_2 !!}
1111
</div> <!-- /.cell -->
1212

1313
<div class="cell small-12 medium-4" @if (!empty($blockData->animate)) data-scrollreveal @endif>
14-
{!! $blockData->html_content_3 or '' !!}
14+
{!! $blockData->html_content_3 !!}
1515
</div> <!-- /.cell -->
1616
</div> <!-- /.grid -->
1717
</div> <!-- /.container -->

resources/views/blocks/content_two_columns.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<div class="grid-container">
44
<div class="grid-x grid-padding-x">
55
<div class="cell small-12 medium-6" @if (!empty($blockData->animate)) data-scrollreveal @endif>
6-
{!! $blockData->html_content_1 or '' !!}
6+
{!! $blockData->html_content_1 !!}
77
</div> <!-- /.cell -->
88

99
<div class="cell small-12 medium-6" @if (!empty($blockData->animate)) data-scrollreveal @endif>
10-
{!! $blockData->html_content_2 or '' !!}
10+
{!! $blockData->html_content_2 !!}
1111
</div> <!-- /.cell -->
1212
</div> <!-- /.grid -->
1313
</div> <!-- /.container -->

resources/views/blocks/testimonial.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ class="cell medium-8 medium-offset-2"
1010
@if (!empty($blockData->animate)) data-scrollreveal @endif
1111
>
1212
@if (!empty($blockData->content))
13-
<h3 class="featured-testimonial-quote">{{ $blockData->content or '' }}</h3>
13+
<h3 class="featured-testimonial-quote">{{ $blockData->content }}</h3>
1414
@endif
1515

1616
@if (!empty($blockData->title))
1717
<p class="lead">
18-
{{ $blockData->title or '' }}
18+
{{ $blockData->title }}
1919
@if (!empty($blockData->sub_title))
20-
<cite>{{ $blockData->sub_title or '' }}</cite>
20+
<cite>{{ $blockData->sub_title }}</cite>
2121
@endif
2222
</p>
2323
@endif

0 commit comments

Comments
 (0)