@@ -6,11 +6,11 @@ |
||
6 | 6 | use Flynt\Features\Acf\OptionPages; |
7 | 7 | use Flynt\Features\Components\Component; |
8 | 8 | |
9 | -add_action('wp_enqueue_scripts', function () { |
|
9 | +add_action('wp_enqueue_scripts', function() { |
|
10 | 10 | Component::enqueueAssets('LayoutSingleProduct'); |
11 | 11 | }); |
12 | 12 | |
13 | -add_filter('Flynt/addComponentData?name=LayoutSingleProduct', function ($data) { |
|
13 | +add_filter('Flynt/addComponentData?name=LayoutSingleProduct', function($data) { |
|
14 | 14 | $query = !empty($data['query']) ? $data['query'] : false; |
15 | 15 | $post = Timber::get_post($query); |
16 | 16 | if (!empty($post)) { |