File tree 1 file changed +12
-9
lines changed
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 3
3
4
4
declare (strict_types = 1 );
5
5
6
- namespace Nextgenthemes \ARVE ;
6
+ use const Nextgenthemes \ARVE \VIEW_SCRIPT_HANDLES ;
7
+ use const Nextgenthemes \ARVE \VERSION ;
7
8
8
- require dirname ( __DIR__ ) . '/vendor/nextgenthemes/wp-shared/includes/WP/SettingsData.php ' ;
9
- require dirname ( __DIR__ ) . '/vendor/nextgenthemes/wp-shared/includes/WP/SettingValidator.php ' ;
10
- require dirname ( __DIR__ ) . '/vendor/nextgenthemes/wp-shared/includes/WP/fn-settings.php ' ;
11
- require dirname ( __DIR__ ) . '/advanced-responsive-video-embedder.php ' ;
12
- require dirname ( __DIR__ ) . '/php/fn-misc.php ' ;
13
- require dirname ( __DIR__ ) . '/php/fn-settings.php ' ;
9
+ use function Nextgenthemes \ARVE \settings ;
14
10
15
11
init ();
16
12
17
13
function init (): void {
18
14
15
+ require_once dirname ( __DIR__ ) . '/vendor/nextgenthemes/wp-shared/includes/WP/SettingsData.php ' ;
16
+ require_once dirname ( __DIR__ ) . '/vendor/nextgenthemes/wp-shared/includes/WP/SettingValidator.php ' ;
17
+ require_once dirname ( __DIR__ ) . '/vendor/nextgenthemes/wp-shared/includes/WP/fn-settings.php ' ;
18
+ require_once dirname ( __DIR__ ) . '/advanced-responsive-video-embedder.php ' ;
19
+ require_once dirname ( __DIR__ ) . '/php/fn-misc.php ' ;
20
+ require_once dirname ( __DIR__ ) . '/php/fn-settings.php ' ;
21
+
19
22
echo 'Updating block.json... ' . PHP_EOL ;
20
23
21
24
$ settings = settings ( 'gutenberg_block ' )->get_all ();
22
25
23
- foreach ( $ settings as $ key => $ v ) {
26
+ foreach ( $ settings as $ key => $ setting ) {
24
27
25
28
$ attr [ $ key ] = array (
26
- 'type ' => $ v [ ' type ' ] ,
29
+ 'type ' => $ setting -> type ,
27
30
);
28
31
}
29
32
You can’t perform that action at this time.
0 commit comments