| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: SpinupWP |
| 4 |
Plugin URI: https://spinupwp.com |
| 5 |
Description: SpinupWP helper plugin. |
| 6 |
Author: Delicious Brains |
| 7 |
Version: 1.0 |
| 8 |
Network: True |
| 9 |
Text Domain: spinupwp |
| 10 |
Requires PHP: 7.1 |
| 11 |
Requires WP: 4.7 |
| 12 |
|
| 13 |
// Copyright (c) 2019 Delicious Brains. All rights reserved. |
| 14 |
// |
| 15 |
// Released under the GPL license |
| 16 |
// http://www.opensource.org/licenses/gpl-license.php |
| 17 |
// |
| 18 |
// ********************************************************************** |
| 19 |
// This program is distributed in the hope that it will be useful, but |
| 20 |
// WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 22 |
// ********************************************************************** |
| 23 |
*/ |
| 24 |
|
| 25 |
// Exit if accessed directly |
| 26 |
if ( ! defined( 'ABSPATH' ) ) { |
| 27 |
exit; |
| 28 |
} |
| 29 |
|
| 30 |
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) { |
| 31 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 32 |
} |
| 33 |
|
| 34 |
/** |
| 35 |
* The main SpinupWP function. |
| 36 |
* |
| 37 |
* @return \DeliciousBrains\SpinupWp\Plugin |
| 38 |
*/ |
| 39 |
function spinupwp() |
| 40 |
{ |
| 41 |
if ( isset( $GLOBALS['spinupwp'] ) && $GLOBALS['spinupwp'] instanceof \DeliciousBrains\SpinupWp\Plugin ) { |
| 42 |
return $GLOBALS['spinupwp']; |
| 43 |
} |
| 44 |
|
| 45 |
$GLOBALS['spinupwp'] = new \DeliciousBrains\SpinupWp\Plugin( __FILE__ ); |
| 46 |
$GLOBALS['spinupwp']->run(); |
| 47 |
|
| 48 |
return $GLOBALS['spinupwp']; |
| 49 |
} |
| 50 |
|
| 51 |
spinupwp(); |
| 52 |
|