@airfleet/generator-init 0.17.1 → 0.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,25 +20,27 @@ class Setup extends PluginFeatures {
|
|
|
20
20
|
<%_ if (optionsPage === 'framework' ) { _%>
|
|
21
21
|
$options = new Options();
|
|
22
22
|
<%_ } _%>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
23
|
+
parent::__construct(
|
|
24
|
+
[
|
|
25
|
+
new Enqueue( $config ),
|
|
26
|
+
<%_ if (optionsPage === 'framework' ) { _%>
|
|
27
|
+
new Pages( $options ),
|
|
28
|
+
new SettingsLink( $config ),
|
|
29
|
+
<%_ } _%>
|
|
30
|
+
<%_ if (optionsPage === 'acf' ) { _%>
|
|
31
|
+
new AcfAirfleetOptionsSubPage( $config ),
|
|
32
|
+
new AcfSettingsLink( $config ),
|
|
33
|
+
<%_ } _%>
|
|
34
|
+
<%_ if (ajaxVariables.frontend) { _%>
|
|
35
|
+
new AjaxVariables(),
|
|
36
|
+
<%_ } _%>
|
|
37
|
+
<%_ if (ajaxVariables.admin) { _%>
|
|
38
|
+
new AjaxVariablesAdmin(),
|
|
39
|
+
<%_ } _%>
|
|
40
|
+
<%_ if (answers.pluginAcfLocalJson) { _%>
|
|
41
|
+
new LocalJson( $config['path'] . 'acf-json' ),
|
|
42
|
+
<%_ } _%>
|
|
43
|
+
]
|
|
44
|
+
);
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -55,7 +55,7 @@ $<%= name.snake %> = new \Airfleet\Plugins\<%= nameNoAirfleet.pascal %>\Setup(
|
|
|
55
55
|
);
|
|
56
56
|
register_activation_hook( __FILE__, [ $<%= name.snake %>, 'on_activation' ] );
|
|
57
57
|
register_deactivation_hook( __FILE__, [ $<%= name.snake %>, 'on_deactivation' ] );
|
|
58
|
-
register_uninstall_hook( __FILE__,
|
|
58
|
+
register_uninstall_hook( __FILE__, '\Airfleet\Plugins\<%= nameNoAirfleet.pascal %>\Setup::uninstall' );
|
|
59
59
|
$<%= name.snake %>->initialize();
|
|
60
60
|
|
|
61
61
|
/**
|