@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=BlockNotFound', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=BlockNotFound', function($data) { |
|
9 | 9 | Component::enqueueAssets('BlockNotFound'); |
10 | 10 | |
11 | 11 | return $data; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=GridListSteps', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=GridListSteps', function($data) { |
|
9 | 9 | Component::enqueueAssets('GridListSteps'); |
10 | 10 | |
11 | 11 | return $data; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=BlockImage', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=BlockImage', function($data) { |
|
9 | 9 | Component::enqueueAssets('BlockImage'); |
10 | 10 | |
11 | 11 | return $data; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=SliderImages', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=SliderImages', function($data) { |
|
9 | 9 | Component::enqueueAssets('SliderImages', [ |
10 | 10 | [ |
11 | 11 | 'name' => 'slick-carousel', |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=SliderImageGallery', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=SliderImageGallery', function($data) { |
|
9 | 9 | Component::enqueueAssets('SliderImageGallery', [ |
10 | 10 | [ |
11 | 11 | 'name' => 'slick-carousel', |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Utils\Component; |
6 | 6 | use Flynt\Utils\Options; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=BlockCookieNotice', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=BlockCookieNotice', function($data) { |
|
9 | 9 | Component::enqueueAssets('BlockCookieNotice'); |
10 | 10 | |
11 | 11 | return $data; |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | use ACFComposer\ACFComposer; |
4 | 4 | |
5 | -add_action('Flynt/afterRegisterComponents', function () { |
|
5 | +add_action('Flynt/afterRegisterComponents', function() { |
|
6 | 6 | ACFComposer::registerFieldGroup([ |
7 | 7 | 'name' => 'postComponents', |
8 | 8 | 'title' => 'Post Components', |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | use ACFComposer\ACFComposer; |
4 | 4 | |
5 | -add_action('Flynt/afterRegisterComponents', function () { |
|
5 | +add_action('Flynt/afterRegisterComponents', function() { |
|
6 | 6 | ACFComposer::registerFieldGroup([ |
7 | 7 | 'name' => 'pageComponents', |
8 | 8 | 'title' => 'Page Components', |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return is_null($output) ? '' : $output; |
45 | 45 | } |
46 | 46 | |
47 | -add_filter('Flynt/renderComponent', function ($output, $componentName, $data) { |
|
47 | +add_filter('Flynt/renderComponent', function($output, $componentName, $data) { |
|
48 | 48 | return apply_filters( |
49 | 49 | "Flynt/renderComponent?name={$componentName}", |
50 | 50 | $output, |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | ); |
54 | 54 | }, 10, 3); |
55 | 55 | |
56 | -add_filter('Flynt/addComponentData', function ($data, $componentName) { |
|
56 | +add_filter('Flynt/addComponentData', function($data, $componentName) { |
|
57 | 57 | return apply_filters( |
58 | 58 | "Flynt/addComponentData?name={$componentName}", |
59 | 59 | $data, |