Completed
Push — constructionplanless_gutenberg ( 97fb4a )
by Dominik
01:32
created
inc/assets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 use Flynt\Utils\Asset;
4 4
 
5
-add_action('wp_enqueue_scripts', function () {
5
+add_action('wp_enqueue_scripts', function() {
6 6
     Asset::register([
7 7
         'name' => 'console-polyfill',
8 8
         'type' => 'script',
Please login to merge, or discard this patch.
Components/NavigationMain/functions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,19 +7,19 @@  discard block
 block discarded – undo
7 7
 use Timber\Menu;
8 8
 use Flynt\Features\Acf\OptionPages;
9 9
 
10
-add_action('wp_enqueue_scripts', function () {
10
+add_action('wp_enqueue_scripts', function() {
11 11
     Component::enqueueAssets('NavigationMain');
12 12
 });
13 13
 
14
-add_filter('Flynt/addComponentData?name=NavigationMain', function ($data) {
14
+add_filter('Flynt/addComponentData?name=NavigationMain', function($data) {
15 15
     // set max level of the menu
16 16
     $data['maxLevel'] = 0;
17 17
     $data['menuSlug'] = !empty($data['menuSlug']) ? $data['menuSlug'] : 'navigation_main';
18 18
     $data['menu'] = has_nav_menu($data['menuSlug']) ? new Menu($data['menuSlug']) : false;
19 19
 
20 20
     if (!empty($data['menu'])) {
21
-        $data['menu']->items = array_map(function ($item) {
22
-            $item->btnClasses = array_filter($item->classes, function ($class) {
21
+        $data['menu']->items = array_map(function($item) {
22
+            $item->btnClasses = array_filter($item->classes, function($class) {
23 23
                 return stripos(trim($class), 'btn') === 0;
24 24
             });
25 25
             $item->classes = array_diff($item->classes, $item->btnClasses);
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     return $data;
33 33
 });
34 34
 
35
-add_action('init', function () {
35
+add_action('init', function() {
36 36
     register_nav_menus([
37 37
         'navigation_main' => __('Navigation Main', 'flynt-starter-theme')
38 38
     ]);
Please login to merge, or discard this patch.
Components/GridDownloadPortrait/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Utils\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function ($data) {
7
+add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function($data) {
8 8
     Component::enqueueAssets('GridDownloadPortrait');
9 9
 
10 10
     if (!empty($data['items'])) {
11
-        $data['items'] = array_map(function ($item) {
11
+        $data['items'] = array_map(function($item) {
12 12
             if ($item['itemType'] === 'itemFile') {
13 13
                 $fileSize = filesize(get_attached_file($item['file']['id']));
14 14
                 $item['file']['fileSize'] = size_format($fileSize);
Please login to merge, or discard this patch.
Components/GridContentLists/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Utils\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=GridContentLists', function ($data) {
7
+add_filter('Flynt/addComponentData?name=GridContentLists', function($data) {
8 8
     Component::enqueueAssets('GridContentLists');
9 9
 
10 10
     return $data;
Please login to merge, or discard this patch.
Components/HeroCta/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Utils\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=HeroCta', function ($data) {
7
+add_filter('Flynt/addComponentData?name=HeroCta', function($data) {
8 8
     Component::enqueueAssets('HeroCta');
9 9
 
10 10
     return $data;
Please login to merge, or discard this patch.
Components/GridPosts/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Utils\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=GridPosts', function ($data) {
7
+add_filter('Flynt/addComponentData?name=GridPosts', function($data) {
8 8
     Component::enqueueAssets('GridPosts');
9 9
 
10 10
     return $data;
Please login to merge, or discard this patch.
Components/BlockWysiwyg/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Utils\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=BlockWysiwyg', function ($data) {
7
+add_filter('Flynt/addComponentData?name=BlockWysiwyg', function($data) {
8 8
     Component::enqueueAssets('BlockWysiwyg');
9 9
 
10 10
     return $data;
Please login to merge, or discard this patch.
Components/ListPosts/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Utils\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=ListPosts', function ($data) {
7
+add_filter('Flynt/addComponentData?name=ListPosts', function($data) {
8 8
     Component::enqueueAssets('ListPosts');
9 9
     $data['isArchive'] = is_home() || is_archive();
10 10
 
Please login to merge, or discard this patch.
Components/HeroImage/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Utils\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=HeroImage', function ($data) {
7
+add_filter('Flynt/addComponentData?name=HeroImage', function($data) {
8 8
     Component::enqueueAssets('HeroImage', [
9 9
         [
10 10
             'name' => 'lazysizes',
Please login to merge, or discard this patch.