@@ -5,11 +5,11 @@ |
||
5 | 5 | use Flynt\Features\Components\Component; |
6 | 6 | use Timber\Timber; |
7 | 7 | |
8 | -add_action('wp_enqueue_scripts', function () { |
|
8 | +add_action('wp_enqueue_scripts', function() { |
|
9 | 9 | Component::enqueueAssets('ListPosts'); |
10 | 10 | }); |
11 | 11 | |
12 | -add_filter('Flynt/addComponentData?name=ListPosts', function ($data, $parentData) { |
|
12 | +add_filter('Flynt/addComponentData?name=ListPosts', function($data, $parentData) { |
|
13 | 13 | $data['isArchive'] = is_home() || is_archive(); |
14 | 14 | $data['pagination'] = (isset($parentData['pagination'])) ? $parentData['pagination'] : null; |
15 | 15 | $args = [ |