@@ -6,15 +6,15 @@ |
||
6 | 6 | add_filter('acf/fields/wysiwyg/toolbars', function ($toolbars) { |
7 | 7 | $toolbars['product'] = []; |
8 | 8 | $toolbars['product'][1] = [ |
9 | - 'bold', |
|
10 | - 'italic', |
|
11 | - 'underline', |
|
12 | - '|', |
|
13 | - 'link', |
|
14 | - 'unlink', |
|
15 | - '|', |
|
16 | - 'undo', |
|
17 | - 'redo', |
|
9 | + 'bold', |
|
10 | + 'italic', |
|
11 | + 'underline', |
|
12 | + '|', |
|
13 | + 'link', |
|
14 | + 'unlink', |
|
15 | + '|', |
|
16 | + 'undo', |
|
17 | + 'redo', |
|
18 | 18 | ]; |
19 | 19 | return $toolbars; |
20 | 20 | }); |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Flynt\Features\ProductTinyMce; |
4 | 4 | |
5 | -add_action('init', function () { |
|
6 | - add_filter('acf/fields/wysiwyg/toolbars', function ($toolbars) { |
|
5 | +add_action('init', function() { |
|
6 | + add_filter('acf/fields/wysiwyg/toolbars', function($toolbars) { |
|
7 | 7 | $toolbars['product'] = []; |
8 | 8 | $toolbars['product'][1] = [ |
9 | 9 | 'bold', |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Flynt\Features\Navigation; |
4 | 4 | |
5 | -add_action('init', function () { |
|
5 | +add_action('init', function() { |
|
6 | 6 | register_nav_menus([ |
7 | 7 | 'navigation_main' => __('Navigation Main', 'flynt-theme'), |
8 | 8 | 'navigation_footer' => __('Navigation Footer', 'flynt-theme') |
@@ -9,10 +9,10 @@ |
||
9 | 9 | $manager = AdminNoticeManager::getInstance(); |
10 | 10 | $messages = ['Please fill Some Feature Number']; |
11 | 11 | $options = [ |
12 | - 'type' => 'error', |
|
13 | - 'title' => 'Some Product Feature', |
|
14 | - 'dismissible' => true, |
|
15 | - 'filenames' => 'functions.php' |
|
12 | + 'type' => 'error', |
|
13 | + 'title' => 'Some Product Feature', |
|
14 | + 'dismissible' => true, |
|
15 | + 'filenames' => 'functions.php' |
|
16 | 16 | ]; |
17 | 17 | $manager->addNotice($messages, $options); |
18 | 18 | } |
@@ -3,7 +3,7 @@ |
||
3 | 3 | use Flynt\Features\Acf\OptionPages; |
4 | 4 | use Flynt\Features\AdminNotices\AdminNoticeManager; |
5 | 5 | |
6 | -add_action('init', function () { |
|
6 | +add_action('init', function() { |
|
7 | 7 | $someFeatureNumber = OptionPages::getOption('globalOptions', 'feature', 'someProductFeature', 'someFeatureNumber'); |
8 | 8 | if (!$someFeatureNumber) { |
9 | 9 | $manager = AdminNoticeManager::getInstance(); |
@@ -52,7 +52,7 @@ |
||
52 | 52 | if (is_array($value)) { |
53 | 53 | // Loop through array and apply translations while keeping keys intact |
54 | 54 | // NOTE: assuming it's a single dimensional array |
55 | - return array_reduce(array_keys($value), function ($carry, $key) use ($value) { |
|
55 | + return array_reduce(array_keys($value), function($carry, $key) use ($value) { |
|
56 | 56 | return array_merge($carry, [ |
57 | 57 | $key => _x($value[$key], $key, 'flynt-theme') |
58 | 58 | ]); |