PluginProbe
Boxzilla – WordPress Popup Builder / 3.4.0
Boxzilla – WordPress Popup Builder v3.4.0
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 | boxzilla.php +39 -39 3.4.83.4.0 View file →
@@ -1,9 +1,8 @@
1 1 <?php
2 -
3 2 /*
4 3 Plugin Name: Boxzilla
5 -Version: 3.4.8
4 +Version: 3.4.0
6 5 Plugin URI: https://www.boxzillaplugin.com/
7 6 Description: Call-To-Action Boxes that display after visitors scroll down far enough. Unobtrusive, but highly conversing!
8 7 Author: ibericode
9 8 Author URI: https://www.ibericode.com/
@@ -32,56 +31,57 @@
32 31
33 32 // Exit if not loaded inside a WordPress context
34 33 defined('ABSPATH') or exit;
35 34
36 -// Exit if PHP lower than 7.4
37 -PHP_VERSION_ID >= 70400 or exit;
35 +// Exit if PHP lower than 7.2
36 +PHP_VERSION_ID >= 70200 or exit;
38 37
39 -define('BOXZILLA_FILE', __FILE__);
40 -define('BOXZILLA_DIR', __DIR__);
41 -define('BOXZILLA_VERSION', '3.4.8');
38 +define( 'BOXZILLA_FILE', __FILE__ );
39 +define( 'BOXZILLA_DIR', __DIR__ );
40 +define( 'BOXZILLA_VERSION', '3.3.1' );
42 41
43 42 require __DIR__ . '/autoload.php';
44 43 require __DIR__ . '/src/services.php';
45 44 require __DIR__ . '/src/licensing/services.php';
46 45
46 +
47 47 // register activation hook
48 -register_activation_hook(__FILE__, [ 'Boxzilla\\Admin\\Installer', 'run' ]);
48 +register_activation_hook( __FILE__, array( 'Boxzilla\\Admin\\Installer', 'run' ) );
49 49
50 50 // Bootstrap plugin at later action hook
51 51 add_action(
52 - 'plugins_loaded',
53 - function () {
54 - $boxzilla = boxzilla();
52 + 'plugins_loaded',
53 + function() {
54 + $boxzilla = boxzilla();
55 55
56 - // load default filters
57 - require __DIR__ . '/src/default-filters.php';
58 - require __DIR__ . '/src/default-actions.php';
56 + // load default filters
57 + require __DIR__ . '/src/default-filters.php';
58 + require __DIR__ . '/src/default-actions.php';
59 59
60 - if (wp_doing_ajax()) {
61 - $boxzilla['filter.autocomplete']->init();
62 - $boxzilla['admin.menu']->init();
63 - } elseif (wp_doing_cron()) {
64 - $boxzilla['license_poller']->init();
65 - } elseif (is_admin()) {
66 - $boxzilla['admin']->init();
67 - $boxzilla['admin.menu']->init();
68 - } else {
69 - add_action(
70 - 'template_redirect',
71 - function () use ($boxzilla) {
72 - $boxzilla['box_loader']->init();
73 - }
74 - );
75 - }
60 + if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
61 + $boxzilla['filter.autocomplete']->init();
62 + $boxzilla['admin.menu']->init();
63 + } elseif ( defined( 'DOING_CRON' ) && DOING_CRON ) {
64 + $boxzilla['license_poller']->init();
65 + } elseif ( is_admin() ) {
66 + $boxzilla['admin']->init();
67 + $boxzilla['admin.menu']->init();
68 + } else {
69 + add_action(
70 + 'template_redirect',
71 + function() use ( $boxzilla ) {
72 + $boxzilla['box_loader']->init();
73 + }
74 + );
75 + }
76 76
77 - // license manager
78 - if (is_admin() || wp_doing_cron() || ( defined('WP_CLI') && WP_CLI )) {
79 - $boxzilla['license_manager']->init();
77 + // license manager
78 + if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
79 + $boxzilla['license_manager']->init();
80 80
81 - if (count($boxzilla->plugins) > 0) {
82 - $boxzilla['update_manager']->init();
83 - }
84 - }
85 - },
86 - 90
81 + if ( count( $boxzilla->plugins ) > 0 ) {
82 + $boxzilla['update_manager']->init();
83 + }
84 + }
85 + },
86 + 90
87 87 );