|
@@ -4,11 +4,11 @@ |
|
|
block discarded – undo |
|
4
|
4
|
|
|
5
|
5
|
use Flynt\Features\Components\Component; |
|
6
|
6
|
|
|
7
|
|
-add_action('wp_enqueue_scripts', function () { |
|
|
7
|
+add_action('wp_enqueue_scripts', function() { |
|
8
|
8
|
Component::enqueueAssets('ListPosts'); |
|
9
|
9
|
}); |
|
10
|
10
|
|
|
11
|
|
-add_filter('Flynt/addComponentData?name=ListPosts', function ($data, $parentData) { |
|
|
11
|
+add_filter('Flynt/addComponentData?name=ListPosts', function($data, $parentData) { |
|
12
|
12
|
$data['isArchive'] = is_home() || is_archive(); |
|
13
|
13
|
|
|
14
|
14
|
$data['pagination'] = (isset($parentData['pagination'])) ? $parentData['pagination'] : null; |
Please login to merge, or discard this patch.