We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -3,7 +3,7 @@ |
||
3 | 3 | <?php |
4 | 4 | // if the column has been cast to Carbon or Date (using attribute casting) |
5 | 5 | // get the value as a date string |
6 | -if (isset($field['value']) && ( $field['value'] instanceof \Carbon\CarbonInterface )) { |
|
6 | +if (isset($field['value']) && ($field['value'] instanceof \Carbon\CarbonInterface)) { |
|
7 | 7 | $field['value'] = $field['value']->toDateTimeString(); |
8 | 8 | } |
9 | 9 | ?> |
@@ -3,11 +3,11 @@ |
||
3 | 3 | <?php |
4 | 4 | // if the column has been cast to Carbon or Date (using attribute casting) |
5 | 5 | // get the value as a date string |
6 | - if (isset($field['value']) && ( $field['value'] instanceof \Carbon\CarbonInterface )) { |
|
6 | + if (isset($field['value']) && ($field['value'] instanceof \Carbon\CarbonInterface)) { |
|
7 | 7 | $field['value'] = $field['value']->format('Y-m-d'); |
8 | 8 | } |
9 | 9 | |
10 | - $field_language = isset($field['date_picker_options']['language'])?$field['date_picker_options']['language']:\App::getLocale(); |
|
10 | + $field_language = isset($field['date_picker_options']['language']) ? $field['date_picker_options']['language'] : \App::getLocale(); |
|
11 | 11 | |
12 | 12 | if (!isset($field['attributes']['style'])) { |
13 | 13 | $field['attributes']['style'] = 'background-color: white!important;'; |
@@ -3,7 +3,7 @@ |
||
3 | 3 | <?php |
4 | 4 | // if the column has been cast to Carbon or Date (using attribute casting) |
5 | 5 | // get the value as a date string |
6 | -if (isset($field['value']) && ( $field['value'] instanceof \Carbon\CarbonInterface )) { |
|
6 | +if (isset($field['value']) && ($field['value'] instanceof \Carbon\CarbonInterface)) { |
|
7 | 7 | $field['value'] = $field['value']->toDateString(); |
8 | 8 | } |
9 | 9 | ?> |
@@ -3,11 +3,11 @@ |
||
3 | 3 | <?php |
4 | 4 | // if the column has been cast to Carbon or Date (using attribute casting) |
5 | 5 | // get the value as a date string |
6 | -if (isset($field['value']) && ( $field['value'] instanceof \Carbon\CarbonInterface )) { |
|
6 | +if (isset($field['value']) && ($field['value'] instanceof \Carbon\CarbonInterface)) { |
|
7 | 7 | $field['value'] = $field['value']->format('Y-m-d H:i:s'); |
8 | 8 | } |
9 | 9 | |
10 | - $field_language = isset($field['datetime_picker_options']['language'])?$field['datetime_picker_options']['language']:\App::getLocale(); |
|
10 | + $field_language = isset($field['datetime_picker_options']['language']) ? $field['datetime_picker_options']['language'] : \App::getLocale(); |
|
11 | 11 | ?> |
12 | 12 | |
13 | 13 | <div @include('crud::inc.field_wrapper_attributes') > |
@@ -5,11 +5,11 @@ discard block |
||
5 | 5 | // Title Block |
6 | 6 | |
7 | 7 | $blocks['select_item'] = [ |
8 | - 'type' => 'select_item', |
|
9 | - 'label' => 'Select Item', |
|
10 | - 'icon' => 'fa fa-hand-o-up', // TODO: make this icon attribute work |
|
11 | - 'fields' => [ |
|
12 | - [ // select_entity |
|
8 | + 'type' => 'select_item', |
|
9 | + 'label' => 'Select Item', |
|
10 | + 'icon' => 'fa fa-hand-o-up', // TODO: make this icon attribute work |
|
11 | + 'fields' => [ |
|
12 | + [ // select_entity |
|
13 | 13 | 'name' => 'entity_type', |
14 | 14 | 'label' => "Type", |
15 | 15 | 'type' => 'select_entity', |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | 'allows_null' => false, |
28 | 28 | 'default' => 'article', |
29 | 29 | 'wrapperAttributes' => [ |
30 | - 'class' => 'form-group col-md-3' |
|
31 | - ], |
|
30 | + 'class' => 'form-group col-md-3' |
|
31 | + ], |
|
32 | 32 | ], |
33 | 33 | [ // select2_entity_item |
34 | 34 | 'label' => "Item", // Table column heading |
@@ -40,48 +40,48 @@ discard block |
||
40 | 40 | 'minimum_input_length' => 2, // minimum characters to type before querying results |
41 | 41 | 'allows_null' => true, |
42 | 42 | 'wrapperAttributes' => [ |
43 | - 'class' => 'form-group col-md-9' |
|
44 | - ], |
|
43 | + 'class' => 'form-group col-md-9' |
|
44 | + ], |
|
45 | 45 | 'fake' => true, |
46 | 46 | ], |
47 | - [ |
|
48 | - 'name' => 'text_block_separator', |
|
49 | - 'type' => 'custom_html', |
|
50 | - 'value' => '<hr>', |
|
51 | - ], |
|
52 | - [ |
|
53 | - 'name' => 'class', |
|
54 | - 'label' => 'Class', |
|
55 | - 'type' => 'text', |
|
56 | - 'wrapperAttributes' => [ |
|
57 | - 'class' => 'form-group col-md-6' |
|
58 | - ], |
|
59 | - ], |
|
60 | - [ |
|
61 | - 'name' => 'id', |
|
62 | - 'label' => 'ID', |
|
63 | - 'type' => 'text', |
|
64 | - 'wrapperAttributes' => [ |
|
65 | - 'class' => 'form-group col-md-6' |
|
66 | - ], |
|
67 | - ], |
|
68 | - [ |
|
69 | - 'label' => 'Background Color', |
|
70 | - 'name' => 'background_color', |
|
71 | - 'type' => 'color_picker', |
|
72 | - 'wrapperAttributes' => [ |
|
73 | - 'class' => 'form-group col-md-6' |
|
74 | - ], |
|
75 | - ], |
|
76 | - [ |
|
77 | - 'label' => 'Background image', |
|
78 | - 'name' => 'background_image', |
|
79 | - 'type' => 'browse', |
|
80 | - 'wrapperAttributes' => [ |
|
81 | - 'class' => 'form-group col-md-6' |
|
82 | - ], |
|
83 | - ], |
|
84 | - ], |
|
47 | + [ |
|
48 | + 'name' => 'text_block_separator', |
|
49 | + 'type' => 'custom_html', |
|
50 | + 'value' => '<hr>', |
|
51 | + ], |
|
52 | + [ |
|
53 | + 'name' => 'class', |
|
54 | + 'label' => 'Class', |
|
55 | + 'type' => 'text', |
|
56 | + 'wrapperAttributes' => [ |
|
57 | + 'class' => 'form-group col-md-6' |
|
58 | + ], |
|
59 | + ], |
|
60 | + [ |
|
61 | + 'name' => 'id', |
|
62 | + 'label' => 'ID', |
|
63 | + 'type' => 'text', |
|
64 | + 'wrapperAttributes' => [ |
|
65 | + 'class' => 'form-group col-md-6' |
|
66 | + ], |
|
67 | + ], |
|
68 | + [ |
|
69 | + 'label' => 'Background Color', |
|
70 | + 'name' => 'background_color', |
|
71 | + 'type' => 'color_picker', |
|
72 | + 'wrapperAttributes' => [ |
|
73 | + 'class' => 'form-group col-md-6' |
|
74 | + ], |
|
75 | + ], |
|
76 | + [ |
|
77 | + 'label' => 'Background image', |
|
78 | + 'name' => 'background_image', |
|
79 | + 'type' => 'browse', |
|
80 | + 'wrapperAttributes' => [ |
|
81 | + 'class' => 'form-group col-md-6' |
|
82 | + ], |
|
83 | + ], |
|
84 | + ], |
|
85 | 85 | ]; |
86 | 86 | |
87 | 87 | ?> |
88 | 88 | \ No newline at end of file |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | 'label' => 'Select Item', |
10 | 10 | 'icon' => 'fa fa-hand-o-up', // TODO: make this icon attribute work |
11 | 11 | 'fields' => [ |
12 | - [ // select_entity |
|
12 | + [// select_entity |
|
13 | 13 | 'name' => 'entity_type', |
14 | 14 | 'label' => "Type", |
15 | 15 | 'type' => 'select_entity', |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | 'class' => 'form-group col-md-3' |
31 | 31 | ], |
32 | 32 | ], |
33 | - [ // select2_entity_item |
|
33 | + [// select2_entity_item |
|
34 | 34 | 'label' => "Item", // Table column heading |
35 | 35 | 'type' => 'select2_entity_item', |
36 | 36 | 'name' => 'select2_entity_item', // the column that contains the ID of that connected entity; |
@@ -5,64 +5,64 @@ |
||
5 | 5 | // Title Block |
6 | 6 | |
7 | 7 | $blocks['title'] = [ |
8 | - 'type' => 'title', |
|
9 | - 'label' => 'Title', |
|
10 | - 'icon' => 'fa fa-text-height', |
|
11 | - 'fields' => [ |
|
12 | - [ |
|
13 | - 'name' => 'content', |
|
14 | - 'label' => 'Content', |
|
15 | - 'type' => 'text', |
|
16 | - ], |
|
17 | - [ |
|
18 | - 'name' => 'text_block_separator', |
|
19 | - 'type' => 'custom_html', |
|
20 | - 'value' => '<hr>', |
|
21 | - ], |
|
22 | - // [ |
|
23 | - // 'name' => 'start_well', |
|
24 | - // 'type' => 'start_div', |
|
25 | - // 'wrapperAttributes' => [ |
|
8 | + 'type' => 'title', |
|
9 | + 'label' => 'Title', |
|
10 | + 'icon' => 'fa fa-text-height', |
|
11 | + 'fields' => [ |
|
12 | + [ |
|
13 | + 'name' => 'content', |
|
14 | + 'label' => 'Content', |
|
15 | + 'type' => 'text', |
|
16 | + ], |
|
17 | + [ |
|
18 | + 'name' => 'text_block_separator', |
|
19 | + 'type' => 'custom_html', |
|
20 | + 'value' => '<hr>', |
|
21 | + ], |
|
22 | + // [ |
|
23 | + // 'name' => 'start_well', |
|
24 | + // 'type' => 'start_div', |
|
25 | + // 'wrapperAttributes' => [ |
|
26 | 26 | // 'class' => 'well well-sm col-md-12 m-t-20 m-b-0' |
27 | 27 | // ], |
28 | - // ], |
|
29 | - [ |
|
30 | - 'name' => 'class', |
|
31 | - 'label' => 'Class', |
|
32 | - 'type' => 'text', |
|
33 | - 'wrapperAttributes' => [ |
|
34 | - 'class' => 'form-group col-md-6' |
|
35 | - ], |
|
36 | - ], |
|
37 | - [ |
|
38 | - 'name' => 'id', |
|
39 | - 'label' => 'ID', |
|
40 | - 'type' => 'text', |
|
41 | - 'wrapperAttributes' => [ |
|
42 | - 'class' => 'form-group col-md-6' |
|
43 | - ], |
|
44 | - ], |
|
45 | - [ |
|
46 | - 'label' => 'Background Color', |
|
47 | - 'name' => 'background_color', |
|
48 | - 'type' => 'color_picker', |
|
49 | - 'wrapperAttributes' => [ |
|
50 | - 'class' => 'form-group col-md-6' |
|
51 | - ], |
|
52 | - ], |
|
53 | - [ |
|
54 | - 'label' => 'Background image', |
|
55 | - 'name' => 'background_image', |
|
56 | - 'type' => 'browse', |
|
57 | - 'wrapperAttributes' => [ |
|
58 | - 'class' => 'form-group col-md-6' |
|
59 | - ], |
|
60 | - ], |
|
61 | - // [ |
|
62 | - // 'name' => 'end_well', |
|
63 | - // 'type' => 'end_div', |
|
64 | - // ], |
|
65 | - ], |
|
28 | + // ], |
|
29 | + [ |
|
30 | + 'name' => 'class', |
|
31 | + 'label' => 'Class', |
|
32 | + 'type' => 'text', |
|
33 | + 'wrapperAttributes' => [ |
|
34 | + 'class' => 'form-group col-md-6' |
|
35 | + ], |
|
36 | + ], |
|
37 | + [ |
|
38 | + 'name' => 'id', |
|
39 | + 'label' => 'ID', |
|
40 | + 'type' => 'text', |
|
41 | + 'wrapperAttributes' => [ |
|
42 | + 'class' => 'form-group col-md-6' |
|
43 | + ], |
|
44 | + ], |
|
45 | + [ |
|
46 | + 'label' => 'Background Color', |
|
47 | + 'name' => 'background_color', |
|
48 | + 'type' => 'color_picker', |
|
49 | + 'wrapperAttributes' => [ |
|
50 | + 'class' => 'form-group col-md-6' |
|
51 | + ], |
|
52 | + ], |
|
53 | + [ |
|
54 | + 'label' => 'Background image', |
|
55 | + 'name' => 'background_image', |
|
56 | + 'type' => 'browse', |
|
57 | + 'wrapperAttributes' => [ |
|
58 | + 'class' => 'form-group col-md-6' |
|
59 | + ], |
|
60 | + ], |
|
61 | + // [ |
|
62 | + // 'name' => 'end_well', |
|
63 | + // 'type' => 'end_div', |
|
64 | + // ], |
|
65 | + ], |
|
66 | 66 | ]; |
67 | 67 | |
68 | 68 | ?> |
69 | 69 | \ No newline at end of file |
@@ -5,75 +5,75 @@ |
||
5 | 5 | // Text Block |
6 | 6 | |
7 | 7 | $blocks['text'] = [ |
8 | - 'type' => 'text', |
|
9 | - 'label' => 'Text', |
|
10 | - 'icon' => 'fa fa-align-left', |
|
11 | - 'fields' => [ |
|
12 | - [ |
|
13 | - 'name' => 'content', |
|
14 | - 'label' => 'Content', |
|
15 | - 'type' => 'ckeditor', |
|
16 | - ], |
|
17 | - [ |
|
18 | - 'name' => 'text_block_separator', |
|
19 | - 'type' => 'custom_html', |
|
20 | - 'value' => '<hr>', |
|
21 | - ], |
|
22 | - [ // title size |
|
23 | - 'name' => 'title_size', |
|
24 | - 'label' => "Title size", |
|
25 | - 'type' => 'select_from_array', |
|
26 | - 'options' => ['h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5'], |
|
27 | - 'allows_null' => false, |
|
28 | - 'default' => 'h1', |
|
29 | - 'wrapperAttributes' => [ |
|
30 | - 'class' => 'form-group col-md-3' |
|
31 | - ], |
|
32 | - ], |
|
33 | - [ // title size |
|
34 | - 'name' => 'title_alignment', |
|
35 | - 'label' => "Align", |
|
36 | - 'type' => 'select_from_array', |
|
37 | - 'options' => ['left' => 'left', 'center' => 'center', 'right' => 'right', 'justify' => 'justify'], |
|
38 | - 'allows_null' => false, |
|
39 | - 'default' => 'left', |
|
40 | - 'wrapperAttributes' => [ |
|
41 | - 'class' => 'form-group col-md-3' |
|
42 | - ], |
|
43 | - ], |
|
44 | - [ // color_picker |
|
45 | - 'label' => 'Text Color', |
|
46 | - 'name' => 'title_text_color', |
|
47 | - 'type' => 'color_picker', |
|
48 | - 'wrapperAttributes' => [ |
|
49 | - 'class' => 'form-group col-md-3' |
|
50 | - ], |
|
51 | - ], |
|
52 | - [ |
|
53 | - 'name' => 'id', |
|
54 | - 'label' => 'ID', |
|
55 | - 'type' => 'text', |
|
56 | - 'wrapperAttributes' => [ |
|
57 | - 'class' => 'form-group col-md-3' |
|
58 | - ], |
|
59 | - ], |
|
60 | - [ |
|
61 | - 'label' => 'Background Color', |
|
62 | - 'name' => 'background_color', |
|
63 | - 'type' => 'color_picker', |
|
64 | - 'wrapperAttributes' => [ |
|
65 | - 'class' => 'form-group col-md-6' |
|
66 | - ], |
|
67 | - ], |
|
68 | - [ |
|
69 | - 'label' => 'Background image', |
|
70 | - 'name' => 'background_image', |
|
71 | - 'type' => 'browse', |
|
72 | - 'wrapperAttributes' => [ |
|
73 | - 'class' => 'form-group col-md-6' |
|
74 | - ], |
|
75 | - ], |
|
76 | - ], |
|
8 | + 'type' => 'text', |
|
9 | + 'label' => 'Text', |
|
10 | + 'icon' => 'fa fa-align-left', |
|
11 | + 'fields' => [ |
|
12 | + [ |
|
13 | + 'name' => 'content', |
|
14 | + 'label' => 'Content', |
|
15 | + 'type' => 'ckeditor', |
|
16 | + ], |
|
17 | + [ |
|
18 | + 'name' => 'text_block_separator', |
|
19 | + 'type' => 'custom_html', |
|
20 | + 'value' => '<hr>', |
|
21 | + ], |
|
22 | + [ // title size |
|
23 | + 'name' => 'title_size', |
|
24 | + 'label' => "Title size", |
|
25 | + 'type' => 'select_from_array', |
|
26 | + 'options' => ['h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5'], |
|
27 | + 'allows_null' => false, |
|
28 | + 'default' => 'h1', |
|
29 | + 'wrapperAttributes' => [ |
|
30 | + 'class' => 'form-group col-md-3' |
|
31 | + ], |
|
32 | + ], |
|
33 | + [ // title size |
|
34 | + 'name' => 'title_alignment', |
|
35 | + 'label' => "Align", |
|
36 | + 'type' => 'select_from_array', |
|
37 | + 'options' => ['left' => 'left', 'center' => 'center', 'right' => 'right', 'justify' => 'justify'], |
|
38 | + 'allows_null' => false, |
|
39 | + 'default' => 'left', |
|
40 | + 'wrapperAttributes' => [ |
|
41 | + 'class' => 'form-group col-md-3' |
|
42 | + ], |
|
43 | + ], |
|
44 | + [ // color_picker |
|
45 | + 'label' => 'Text Color', |
|
46 | + 'name' => 'title_text_color', |
|
47 | + 'type' => 'color_picker', |
|
48 | + 'wrapperAttributes' => [ |
|
49 | + 'class' => 'form-group col-md-3' |
|
50 | + ], |
|
51 | + ], |
|
52 | + [ |
|
53 | + 'name' => 'id', |
|
54 | + 'label' => 'ID', |
|
55 | + 'type' => 'text', |
|
56 | + 'wrapperAttributes' => [ |
|
57 | + 'class' => 'form-group col-md-3' |
|
58 | + ], |
|
59 | + ], |
|
60 | + [ |
|
61 | + 'label' => 'Background Color', |
|
62 | + 'name' => 'background_color', |
|
63 | + 'type' => 'color_picker', |
|
64 | + 'wrapperAttributes' => [ |
|
65 | + 'class' => 'form-group col-md-6' |
|
66 | + ], |
|
67 | + ], |
|
68 | + [ |
|
69 | + 'label' => 'Background image', |
|
70 | + 'name' => 'background_image', |
|
71 | + 'type' => 'browse', |
|
72 | + 'wrapperAttributes' => [ |
|
73 | + 'class' => 'form-group col-md-6' |
|
74 | + ], |
|
75 | + ], |
|
76 | + ], |
|
77 | 77 | ]; |
78 | 78 | |
79 | 79 | ?> |
80 | 80 | \ No newline at end of file |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | 'type' => 'custom_html', |
20 | 20 | 'value' => '<hr>', |
21 | 21 | ], |
22 | - [ // title size |
|
22 | + [// title size |
|
23 | 23 | 'name' => 'title_size', |
24 | 24 | 'label' => "Title size", |
25 | 25 | 'type' => 'select_from_array', |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | 'class' => 'form-group col-md-3' |
31 | 31 | ], |
32 | 32 | ], |
33 | - [ // title size |
|
33 | + [// title size |
|
34 | 34 | 'name' => 'title_alignment', |
35 | 35 | 'label' => "Align", |
36 | 36 | 'type' => 'select_from_array', |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | 'class' => 'form-group col-md-3' |
42 | 42 | ], |
43 | 43 | ], |
44 | - [ // color_picker |
|
44 | + [// color_picker |
|
45 | 45 | 'label' => 'Text Color', |
46 | 46 | 'name' => 'title_text_color', |
47 | 47 | 'type' => 'color_picker', |
@@ -5,52 +5,52 @@ |
||
5 | 5 | // Title Block |
6 | 6 | |
7 | 7 | $blocks['call_to_action'] = [ |
8 | - 'type' => 'call_to_action', |
|
9 | - 'label' => 'Call to action', |
|
10 | - 'icon' => 'fa fa-exclamation-circle', |
|
11 | - 'fields' => [ |
|
12 | - [ |
|
13 | - 'name' => 'title', |
|
14 | - 'label' => 'Title', |
|
15 | - 'type' => 'text', |
|
16 | - ], |
|
17 | - [ |
|
18 | - 'name' => 'description', |
|
19 | - 'label' => 'Description', |
|
20 | - 'type' => 'textarea', |
|
21 | - ], |
|
22 | - [ |
|
23 | - 'name' => 'link', |
|
24 | - 'label' => 'Link', |
|
25 | - 'type' => 'text', |
|
26 | - ], |
|
27 | - [ |
|
28 | - 'name' => 'button_label', |
|
29 | - 'label' => 'Button label', |
|
30 | - 'type' => 'text', |
|
31 | - ], |
|
32 | - [ |
|
33 | - 'name' => 'text_block_separator', |
|
34 | - 'type' => 'custom_html', |
|
35 | - 'value' => '<hr>', |
|
36 | - ], |
|
37 | - [ |
|
38 | - 'label' => 'Background Color', |
|
39 | - 'name' => 'background_color', |
|
40 | - 'type' => 'color_picker', |
|
41 | - 'wrapperAttributes' => [ |
|
42 | - 'class' => 'form-group col-md-6' |
|
43 | - ], |
|
44 | - ], |
|
45 | - [ |
|
46 | - 'label' => 'Background image', |
|
47 | - 'name' => 'background_image', |
|
48 | - 'type' => 'browse', |
|
49 | - 'wrapperAttributes' => [ |
|
50 | - 'class' => 'form-group col-md-6' |
|
51 | - ], |
|
52 | - ], |
|
53 | - ], |
|
8 | + 'type' => 'call_to_action', |
|
9 | + 'label' => 'Call to action', |
|
10 | + 'icon' => 'fa fa-exclamation-circle', |
|
11 | + 'fields' => [ |
|
12 | + [ |
|
13 | + 'name' => 'title', |
|
14 | + 'label' => 'Title', |
|
15 | + 'type' => 'text', |
|
16 | + ], |
|
17 | + [ |
|
18 | + 'name' => 'description', |
|
19 | + 'label' => 'Description', |
|
20 | + 'type' => 'textarea', |
|
21 | + ], |
|
22 | + [ |
|
23 | + 'name' => 'link', |
|
24 | + 'label' => 'Link', |
|
25 | + 'type' => 'text', |
|
26 | + ], |
|
27 | + [ |
|
28 | + 'name' => 'button_label', |
|
29 | + 'label' => 'Button label', |
|
30 | + 'type' => 'text', |
|
31 | + ], |
|
32 | + [ |
|
33 | + 'name' => 'text_block_separator', |
|
34 | + 'type' => 'custom_html', |
|
35 | + 'value' => '<hr>', |
|
36 | + ], |
|
37 | + [ |
|
38 | + 'label' => 'Background Color', |
|
39 | + 'name' => 'background_color', |
|
40 | + 'type' => 'color_picker', |
|
41 | + 'wrapperAttributes' => [ |
|
42 | + 'class' => 'form-group col-md-6' |
|
43 | + ], |
|
44 | + ], |
|
45 | + [ |
|
46 | + 'label' => 'Background image', |
|
47 | + 'name' => 'background_image', |
|
48 | + 'type' => 'browse', |
|
49 | + 'wrapperAttributes' => [ |
|
50 | + 'class' => 'form-group col-md-6' |
|
51 | + ], |
|
52 | + ], |
|
53 | + ], |
|
54 | 54 | ]; |
55 | 55 | |
56 | 56 | ?> |
57 | 57 | \ No newline at end of file |
@@ -5,58 +5,58 @@ discard block |
||
5 | 5 | // Press Block |
6 | 6 | |
7 | 7 | $blocks['press'] = [ |
8 | - 'type' => 'press', |
|
9 | - 'label' => 'Press', |
|
10 | - 'icon' => 'fa fa-newspaper-o', |
|
11 | - 'fields' => [ |
|
12 | - [ |
|
13 | - 'name' => 'title', |
|
14 | - 'label' => 'Title', |
|
15 | - 'type' => 'text', |
|
16 | - ], |
|
17 | - [ |
|
18 | - 'name' => 'description', |
|
19 | - 'label' => 'Description', |
|
20 | - 'type' => 'textarea', |
|
21 | - ], |
|
22 | - [ |
|
23 | - 'name' => 'thumbnail', |
|
24 | - 'label' => 'Thumbnail', |
|
25 | - 'type' => 'browse', |
|
26 | - 'wrapperAttributes' => [ |
|
27 | - 'class' => 'form-group col-md-6' |
|
28 | - ], |
|
29 | - ], |
|
30 | - [ |
|
31 | - 'name' => 'pdf', |
|
32 | - 'label' => 'PDF file', |
|
33 | - 'type' => 'browse', |
|
34 | - 'wrapperAttributes' => [ |
|
35 | - 'class' => 'form-group col-md-6' |
|
36 | - ], |
|
37 | - ], |
|
38 | - [ |
|
39 | - 'name' => 'text_block_separator', |
|
40 | - 'type' => 'custom_html', |
|
41 | - 'value' => '<hr>', |
|
42 | - ], |
|
43 | - [ |
|
44 | - 'label' => 'Background Color', |
|
45 | - 'name' => 'background_color', |
|
46 | - 'type' => 'color_picker', |
|
47 | - 'wrapperAttributes' => [ |
|
48 | - 'class' => 'form-group col-md-6' |
|
49 | - ], |
|
50 | - ], |
|
51 | - [ |
|
52 | - 'label' => 'Background image', |
|
53 | - 'name' => 'background_image', |
|
54 | - 'type' => 'browse', |
|
55 | - 'wrapperAttributes' => [ |
|
56 | - 'class' => 'form-group col-md-6' |
|
57 | - ], |
|
58 | - ], |
|
59 | - [ |
|
8 | + 'type' => 'press', |
|
9 | + 'label' => 'Press', |
|
10 | + 'icon' => 'fa fa-newspaper-o', |
|
11 | + 'fields' => [ |
|
12 | + [ |
|
13 | + 'name' => 'title', |
|
14 | + 'label' => 'Title', |
|
15 | + 'type' => 'text', |
|
16 | + ], |
|
17 | + [ |
|
18 | + 'name' => 'description', |
|
19 | + 'label' => 'Description', |
|
20 | + 'type' => 'textarea', |
|
21 | + ], |
|
22 | + [ |
|
23 | + 'name' => 'thumbnail', |
|
24 | + 'label' => 'Thumbnail', |
|
25 | + 'type' => 'browse', |
|
26 | + 'wrapperAttributes' => [ |
|
27 | + 'class' => 'form-group col-md-6' |
|
28 | + ], |
|
29 | + ], |
|
30 | + [ |
|
31 | + 'name' => 'pdf', |
|
32 | + 'label' => 'PDF file', |
|
33 | + 'type' => 'browse', |
|
34 | + 'wrapperAttributes' => [ |
|
35 | + 'class' => 'form-group col-md-6' |
|
36 | + ], |
|
37 | + ], |
|
38 | + [ |
|
39 | + 'name' => 'text_block_separator', |
|
40 | + 'type' => 'custom_html', |
|
41 | + 'value' => '<hr>', |
|
42 | + ], |
|
43 | + [ |
|
44 | + 'label' => 'Background Color', |
|
45 | + 'name' => 'background_color', |
|
46 | + 'type' => 'color_picker', |
|
47 | + 'wrapperAttributes' => [ |
|
48 | + 'class' => 'form-group col-md-6' |
|
49 | + ], |
|
50 | + ], |
|
51 | + [ |
|
52 | + 'label' => 'Background image', |
|
53 | + 'name' => 'background_image', |
|
54 | + 'type' => 'browse', |
|
55 | + 'wrapperAttributes' => [ |
|
56 | + 'class' => 'form-group col-md-6' |
|
57 | + ], |
|
58 | + ], |
|
59 | + [ |
|
60 | 60 | 'type' => 'keepeek', |
61 | 61 | 'name' => 'another_image', |
62 | 62 | 'label' => 'Another Keepeek Image', |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | ], |
71 | 71 | 'url_controller' => route('keepeek_bridge'), |
72 | 72 | ] |
73 | - ], |
|
73 | + ], |
|
74 | 74 | ]; |
75 | 75 | |
76 | 76 | ?> |
77 | 77 | \ No newline at end of file |