@@ -6,7 +6,7 @@ |
||
6 | 6 | use Flynt\Utils\Options; |
7 | 7 | use Timber\Timber; |
8 | 8 | |
9 | -add_filter('Flynt/addComponentData?name=ListSearchResults', function ($data) { |
|
9 | +add_filter('Flynt/addComponentData?name=ListSearchResults', function($data) { |
|
10 | 10 | global $wp_query; |
11 | 11 | $searchQuery = get_search_query(); |
12 | 12 | $data['searchTerm'] = $searchQuery; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt; |
6 | 6 | use Timber\Timber; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=GridPostsSlider', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=GridPostsSlider', function($data) { |
|
9 | 9 | $posts = Timber::get_posts([ |
10 | 10 | 'post_type' => 'post', |
11 | 11 | 'posts_per_page' => -1, |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | use Flynt\Utils\Asset; |
4 | 4 | |
5 | -add_action('wp_enqueue_scripts', function () { |
|
5 | +add_action('wp_enqueue_scripts', function() { |
|
6 | 6 | Asset::register([ |
7 | 7 | 'name' => 'vendor', |
8 | 8 | 'type' => 'script', |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | } |
65 | 65 | }); |
66 | 66 | |
67 | -add_action('admin_enqueue_scripts', function () { |
|
67 | +add_action('admin_enqueue_scripts', function() { |
|
68 | 68 | Asset::register([ |
69 | 69 | 'name' => 'vendorAdmin', |
70 | 70 | 'type' => 'script', |