PluginProbe
Boxzilla – WordPress Popup Builder / 3.3.0
Boxzilla – WordPress Popup Builder v3.3.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
boxzilla / boxzilla.php

boxzilla.php in Boxzilla – WordPress Popup Builder 3.3.0, at boxzilla.php

84 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Boxzilla
4 Version: 3.3.0
5 Plugin URI: https://www.boxzillaplugin.com/
6 Description: Call-To-Action Boxes that display after visitors scroll down far enough. Unobtrusive, but highly conversing!
7 Author: ibericode
8 Author URI: https://www.ibericode.com/
9 Text Domain: boxzilla
10 Domain Path: /languages/
11 License: GPL v2
12
13 Boxzilla Plugin
14 Copyright (C) 2013 - 2024, Danny van Kooten, hi@dannyvankooten.com
15
16 This program is free software: you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by
18 the Free Software Foundation, either version 2 of the License, or
19 (at your option) any later version.
20
21 This program is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU General Public License for more details.
25
26 You should have received a copy of the GNU General Public License
27 along with this program. If not, see <http://www.gnu.org/licenses/>.
28 */
29
30 defined('ABSPATH') or exit;
31
32 define( 'BOXZILLA_FILE', __FILE__ );
33 define( 'BOXZILLA_VERSION', '3.3.0' );
34
35 require __DIR__ . '/autoload.php';
36 require __DIR__ . '/src/services.php';
37 require __DIR__ . '/src/licensing/services.php';
38
39 // register activation hook
40 register_activation_hook( __FILE__, array( 'Boxzilla\\Admin\\Installer', 'run' ) );
41
42 // Bootstrap plugin at later action hook
43 add_action(
44 'plugins_loaded',
45 function() {
46 $boxzilla = boxzilla();
47
48 // load default filters
49 require __DIR__ . '/src/default-filters.php';
50 require __DIR__ . '/src/default-actions.php';
51
52 if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
53 $boxzilla['filter.autocomplete']->init();
54 $boxzilla['admin.menu']->init();
55 } elseif ( defined( 'DOING_CRON' ) && DOING_CRON ) {
56 $boxzilla['license_poller']->init();
57 } elseif ( is_admin() ) {
58 $boxzilla['admin']->init();
59 $boxzilla['admin.menu']->init();
60 } else {
61 add_action(
62 'template_redirect',
63 function() use ( $boxzilla ) {
64 $boxzilla['box_loader']->init();
65 }
66 );
67 }
68
69 // license manager
70 if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
71 $boxzilla['license_manager']->init();
72
73 if ( count( $boxzilla->plugins ) > 0 ) {
74 $boxzilla['update_manager']->init();
75 }
76 }
77
78 // for legacy reasons: Boxzilla Theme Pack & Boxzilla WooCommerce used this
79 // we will be removing this in future versions
80 $boxzilla['bootstrapper']->run();
81 },
82 90
83 );
84