@@ -5,7 +5,7 @@ |
||
5 | 5 | use Flynt\Api; |
6 | 6 | use Flynt\Utils\Options; |
7 | 7 | |
8 | -add_filter('Flynt/addComponentData?name=SliderImageGallery', function ($data) { |
|
8 | +add_filter('Flynt/addComponentData?name=SliderImageGallery', function($data) { |
|
9 | 9 | $data['jsonData'] = [ |
10 | 10 | 'options' => Options::get('translatableOptions', 'feature', 'SliderOptions') |
11 | 11 | ]; |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | const POST_TYPE = 'post'; |
10 | 10 | const FILTER_BY_TAXONOMY = 'category'; |
11 | 11 | |
12 | -add_filter('Flynt/addComponentData?name=GridPostsArchive', function ($data) { |
|
12 | +add_filter('Flynt/addComponentData?name=GridPostsArchive', function($data) { |
|
13 | 13 | $postType = POST_TYPE; |
14 | 14 | $taxonomy = FILTER_BY_TAXONOMY; |
15 | 15 | $terms = get_terms([ |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | ]); |
19 | 19 | $queriedObject = get_queried_object(); |
20 | 20 | if (count($terms) > 1) { |
21 | - $data['terms'] = array_map(function ($term) use ($queriedObject) { |
|
21 | + $data['terms'] = array_map(function($term) use ($queriedObject) { |
|
22 | 22 | $timberTerm = new Term($term); |
23 | 23 | $timberTerm->isActive = $queriedObject->taxonomy === $term->taxonomy && $queriedObject->term_id === $term->term_id; |
24 | 24 | return $timberTerm; |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $data['isHome'] = true; |
36 | 36 | $data['title'] = $queriedObject->post_title; |
37 | 37 | } else { |
38 | - $data['title'] = get_the_archive_title(); |
|
38 | + $data['title'] = get_the_archive_title(); |
|
39 | 39 | $data['description'] = get_the_archive_description(); |
40 | 40 | } |
41 | 41 |