|
@@ -8,7 +8,7 @@ discard block |
|
|
block discarded – undo |
|
8
|
8
|
use Timber\Post; |
|
9
|
9
|
use Flynt\Utils\Log; |
|
10
|
10
|
|
|
11
|
|
-add_filter('Flynt/addComponentData?name=ListProducts', function ($data) { |
|
|
11
|
+add_filter('Flynt/addComponentData?name=ListProducts', function($data) { |
|
12
|
12
|
$defaultCount = OptionPages::get('globalOptions', 'customPostType', 'product', 'defaultProductsNumber'); |
|
13
|
13
|
$data['productTypesLabel'] = OptionPages::get('translatableOptions', 'customPostType', 'product', 'productTypesLabel'); |
|
14
|
14
|
$data['overviewPage'] = OptionPages::get('translatableOptions', 'customPostType', 'product', 'overviewPage'); |
|
@@ -30,6 +30,6 @@ discard block |
|
|
block discarded – undo |
|
30
|
30
|
return $data; |
|
31
|
31
|
}); |
|
32
|
32
|
|
|
33
|
|
-add_action('wp_enqueue_scripts', function () { |
|
|
33
|
+add_action('wp_enqueue_scripts', function() { |
|
34
|
34
|
Component::enqueueAssets('ListProducts'); |
|
35
|
35
|
}); |
Please login to merge, or discard this patch.