PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.2.3
JetFormBuilder — Dynamic Blocks Form Builder v3.2.3
3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 All 130 releases
← All changes | modules/admin/module.php +5 -47 3.6.43.2.3 View file →
@@ -9,9 +9,8 @@
9 9 }
10 10
11 11 use Jet_Form_Builder\Admin\Exceptions\Not_Found_Page_Exception;
12 12 use Jet_Form_Builder\Admin\Pages\Pages_Manager;
13 -use Jet_Form_Builder\Admin\Tabs_Handlers\Options_Handler;
14 13 use Jet_Form_Builder\Admin\Tabs_Handlers\Tab_Handler_Manager;
15 14 use Jet_Form_Builder\Classes\Http\Utm_Url;
16 15 use Jet_Form_Builder\Classes\Tools;
17 16 use JFB_Components\Module\Base_Module_Dir_It;
@@ -60,44 +59,8 @@
60 59 array( $this, 'modify_plugin_action_links' )
61 60 );
62 61 }
63 62
64 - /**
65 - * Called by `register_activation_hook`
66 - * inside `jetformbuilder/load.php`
67 - *
68 - * @return void
69 - */
70 - public function on_plugin_activate() {
71 - /** @var Options_Handler $options */
72 - $options_tab = Tab_Handler_Manager::instance()->tab( 'options-tab' );
73 -
74 - $options = $options_tab->get_options();
75 - $new_options = array();
76 -
77 - if ( ! isset( $options['disable_next_button'] ) ) {
78 - $new_options['disable_next_button'] = false;
79 - }
80 - if ( ! isset( $options['scroll_on_next'] ) ) {
81 - $new_options['scroll_on_next'] = true;
82 - }
83 - if ( ! isset( $options['auto_focus'] ) ) {
84 - $new_options['auto_focus'] = true;
85 - }
86 -
87 - if ( ! isset( $options['form_records_access_capability'] ) ) {
88 - $new_options['form_records_access_capability'] = 'manage_options';
89 - }
90 -
91 - if ( ! $new_options ) {
92 - return;
93 - }
94 -
95 - $options_tab->update_options(
96 - array_merge( $options, $new_options )
97 - );
98 - }
99 -
100 63 public function admin_footer_text( $footer_text ): string {
101 64 try {
102 65 Pages_Manager::instance()->get_current();
103 66 } catch ( Not_Found_Page_Exception $exception ) {
@@ -131,24 +94,19 @@
131 94 }
132 95
133 96 wp_enqueue_style(
134 97 $this->get_handle( 'go-pro' ),
135 - $this->get_url( 'assets/build/go-pro.css' ),
98 + $this->get_url( 'assets/build/css/go-pro.css' ),
136 99 array(),
137 100 jet_form_builder()->get_version()
138 101 );
139 102
140 - $utm = new Utm_Url( 'plugin' );
141 - $utm->set_medium( 'all_plugins' );
103 + $utm = new Utm_Url( 'wp-dashboard/jet-form-builder-plugins-page' );
142 104 $utm->set_campaign( 'go-pro-button' );
143 - $utm->set_content( $utm->get_license_and_theme() );
144 105
145 106 $url = $utm->add_query( JET_FORM_BUILDER_SITE . '/pricing/' );
146 107
147 - $label = apply_filters(
148 - 'jet-form-builder/admin/go-pro-link-title',
149 - __( 'Go Pro', 'jet-form-builder' )
150 - );
108 + $label = __( 'Go Pro', 'jet-form-builder' );
151 109
152 110 $links['go_pro'] = "<a href=\"{$url}\" target=\"_blank\" class=\"jet-fb-go-pro-link\">{$label}</a>";
153 111
154 112 return $links;
@@ -171,9 +129,9 @@
171 129 $handle = $this->get_handle( 'deactivate' );
172 130
173 131 wp_enqueue_style(
174 132 $handle,
175 - $this->get_url( 'assets/build/deactivate.css' ),
133 + $this->get_url( 'assets/build/css/deactivate.css' ),
176 134 array(),
177 135 jet_form_builder()->get_version()
178 136 );
179 137
@@ -178,9 +136,9 @@
178 136 );
179 137
180 138 wp_enqueue_script(
181 139 $handle,
182 - $this->get_url( 'assets/build/plugins.js' ),
140 + $this->get_url( 'assets/build/js/plugins.js' ),
183 141 array(),
184 142 jet_form_builder()->get_version(),
185 143 true
186 144 );