PluginProbe
Boxzilla – WordPress Popup Builder / 3.1.4
Boxzilla – WordPress Popup Builder v3.1.4
3.4.11 3.4.10 3.4.9 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 trunk 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 All 72 releases
← All changes | src/class-loader.php +2 -11 3.0.23.1.4 View file →
@@ -235,19 +235,10 @@
235 235 * Load plugin styles
236 236 */
237 237 public function load_assets() {
238 238 $pre_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
239 + wp_enqueue_script('boxzilla', $this->plugin->url('/assets/js/script' . $pre_suffix . '.js' ), array(), $this->plugin->version(), true );
239 240
240 - // stylesheets
241 - wp_register_style( 'boxzilla', $this->plugin->url( '/assets/css/styles' . $pre_suffix . '.css' ), array(), $this->plugin->version() );
242 -
243 - // scripts
244 - wp_register_script( 'boxzilla',$this->plugin->url( '/assets/js/script' . $pre_suffix . '.js' ), array( 'jquery' ), $this->plugin->version(), true );
245 -
246 - // Finally, enqueue style.
247 - wp_enqueue_style( 'boxzilla' );
248 - wp_enqueue_script( 'boxzilla' );
249 -
250 241 $this->pass_box_options();
251 242
252 243 do_action( 'boxzilla_load_assets', $this );
253 244 }
@@ -295,9 +286,9 @@
295 286 $plugin_options = $this->options;
296 287 $boxes = $this->get_matched_boxes();
297 288
298 289 $data = array(
299 - 'testMode' => (boolean) $plugin_options['test_mode'],
290 + 'testMode' => (bool) $plugin_options['test_mode'],
300 291 'boxes' => array_map( function(Box $box) { return $box->get_client_options(); }, $boxes ),
301 292 );
302 293
303 294 wp_localize_script( 'boxzilla', 'boxzilla_options', $data );