@@ -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 | if ($queriedObject) { |
24 | 24 | $timberTerm->isActive = $queriedObject->taxonomy === $term->taxonomy && $queriedObject->term_id === $term->term_id; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $data['isHome'] = true; |
38 | 38 | $data['title'] = $queriedObject->post_title ?? get_bloginfo('name'); |
39 | 39 | } else { |
40 | - $data['title'] = get_the_archive_title(); |
|
40 | + $data['title'] = get_the_archive_title(); |
|
41 | 41 | $data['description'] = get_the_archive_description(); |
42 | 42 | } |
43 | 43 |
@@ -385,12 +385,12 @@ |
||
385 | 385 | 'type' => 'text', |
386 | 386 | 'required' => 1, |
387 | 387 | 'default_value' => ',' |
388 | - ], |
|
389 | - [ |
|
388 | + ], |
|
389 | + [ |
|
390 | 390 | 'label' => 'Thousands Separator', |
391 | 391 | 'name' => 'thousandsSeparator', |
392 | 392 | 'type' => 'text', |
393 | 393 | 'required' => 1, |
394 | 394 | 'default_value' => '.' |
395 | - ] |
|
395 | + ] |
|
396 | 396 | ]); |