| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Boxzilla |
| 4 |
Version: 3.1.20 |
| 5 |
Plugin URI: https://boxzillaplugin.com/#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=plugins-page |
| 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://ibericode.com/#utm_source=wp-plugin&utm_medium=boxzilla&utm_campaign=plugins-page |
| 9 |
Text Domain: boxzilla |
| 10 |
Domain Path: /languages/ |
| 11 |
License: GPL v3 |
| 12 |
|
| 13 |
Boxzilla Plugin |
| 14 |
Copyright (C) 2013-2017, 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 3 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 |
if ( ! defined( 'ABSPATH' ) ) { |
| 31 |
header( 'Status: 403 Forbidden' ); |
| 32 |
header( 'HTTP/1.1 403 Forbidden' ); |
| 33 |
exit; |
| 34 |
} |
| 35 |
|
| 36 |
|
| 37 |
/** |
| 38 |
* @ignore |
| 39 |
* @internal |
| 40 |
*/ |
| 41 |
function _load_boxzilla() { |
| 42 |
|
| 43 |
define( 'BOXZILLA_FILE', __FILE__ ); |
| 44 |
define( 'BOXZILLA_VERSION', '3.1.20' ); |
| 45 |
|
| 46 |
require __DIR__ . '/bootstrap.php'; |
| 47 |
} |
| 48 |
|
| 49 |
// Check if we're on PHP 5.2, if so: bail early. |
| 50 |
if( version_compare( PHP_VERSION, '5.3', '<' ) ) { |
| 51 |
require dirname( __FILE__ ) . '/src/class-php-fallback.php'; |
| 52 |
new Boxzilla_PHP_Fallback( 'Boxzilla', plugin_basename( __FILE__ ) ); |
| 53 |
return; |
| 54 |
} |
| 55 |
|
| 56 |
// load autoloader but only if not loaded already (for compat with sitewide autoloader) |
| 57 |
if( ! function_exists( 'boxzilla' ) ) { |
| 58 |
require __DIR__ . '/vendor/autoload.php'; |
| 59 |
} |
| 60 |
|
| 61 |
// register activation hook |
| 62 |
register_activation_hook( __FILE__, array( 'Boxzilla\\Admin\\Installer', 'run' ) ); |
| 63 |
|
| 64 |
// hook into plugins_loaded for boostrapping |
| 65 |
add_action( 'plugins_loaded', '_load_boxzilla', 8 ); |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|